a = ma(c,10);
b = ma(c,20);
d = cross(a,b) and V*C>500000;
dd = sum(d,20)>0;
Filter = dd;
addcolumn(C*V,"indic. t/o");
Thanks Gringotts but I am looking to add other criteria to the scan based on what price is doing at the moment.
ie moving average cross anywhere within last 20 days and inside bar today.