Hi guys, i wanted to knw if its possible to scan diffrent time frames simultaneosly with single AFL. For example i want to scan for stocks in which 5ema cross 13 ema on 5 mint, and stoch is up on 5-15n 30 mint. Now this is afl n i can scan stoch condition on 5 mint only , not on 15 n 30.
x = EMA(Close,13);
y = EMA (Close,5);
Buy=Cross(y,x)
AND (
( StochK( 5, 3)>StochD( 5, 3, 3 ))
AND StochK( 5, 3 ) < 80
);
Sell= Cross(x,y)
AND (
( StochK( 5,3) < StochD(5,3,3))
AND StochK (5,3) > 20
);
Filter=(Volume>50000) AND (Buy OR Sell) AND (Close>200);
AddColumn(Close,"Close",1.4);
AddColumn(Buy,"buy",1.2);
AddColumn(Sell,"sell",1.2);
Now in automatic analysis- setting-general-periodicity, i can choose time frames , but i want all these conditions met from single afl so that i dont hav to change periodicity for every scan. Can sum1 help me pls