Volume Study

Hi,
I am wondering if someone can help. I am attempting to come up with a script, and coding is new to me, for a scan to find stocks that have volume today that is less than the volume of each of the last two days. Once I can get this right I would like to add another variable such as and is above the 20ma. So far the best I have come up with is below but it is not correct. I can’t quite get scripting right to just look back at actual volume and compare the current day to each of the last two days so have used the script below. I would appreciate any help.

plot1=((VOL(OFFSET=0) < (1.08 *VOL(OFFSET=1))) and (VOL(OFFSET=0) < (1.08 * VOL(OFFSET=2))));

Regards

Les

Hi Les,

As you are doing a scan with a true / false condition you don’t need the Plot1, so remove that and it should work.

Also, another way to look at offsets is to use the square brackets method, so this will achieve the same result:

VOL()<(1.08 * VOL()[1]) and VOL()<(1.08 * VOL()[2])

Thankyou Darren, I will give this a go.