Hi guys, i dont knw how to put my question exactly in simple words so i give u example. I like to trade in stocks which hav huge 2 days range, means huge diff betwwen high n low of last 2 days. So i use this afl to scan for such stocks at evening on eod data n choose them for next day intra trading.
H = HHV(H, 2) ;
L = LLV(L, 2) ;
R= H-L;
SetOption("NoDefaultColumns", True);
AddTextColumn(Name(), "Symbol");
AddColumn(DateTime(), "Date", formatDateTime);
AddColumn(C, "CMP", 1.2);
Filter = R>30 AND C>300 AND C< 400 AND V > 150000 ;
now R is the diff between high n low of last 2 days. Instead of editing R, n Close prices i.e C every time , it would b better if i just write like this
Filter = R> 10% AND C > 200 AND V=150000 :
but writing R> 10% doesnt work. So i hav to edit R every time wen i keep going up with C. ex
Filter= R>40 and C>400 and C<500
so pls tell me wats the syntex used for %age in alfs so that i put it with R n scan all stocks of that range at same time rather tahn editing R n C everytime. Thanks
H = HHV(H, 2) ;
L = LLV(L, 2) ;
R= H-L;
SetOption("NoDefaultColumns", True);
AddTextColumn(Name(), "Symbol");
AddColumn(DateTime(), "Date", formatDateTime);
AddColumn(C, "CMP", 1.2);
Filter = R>30 AND C>300 AND C< 400 AND V > 150000 ;
now R is the diff between high n low of last 2 days. Instead of editing R, n Close prices i.e C every time , it would b better if i just write like this
Filter = R> 10% AND C > 200 AND V=150000 :
but writing R> 10% doesnt work. So i hav to edit R every time wen i keep going up with C. ex
Filter= R>40 and C>400 and C<500
so pls tell me wats the syntex used for %age in alfs so that i put it with R n scan all stocks of that range at same time rather tahn editing R n C everytime. Thanks