Plz help in writing AFL code !!!

#1
Hi all,

I m trying to write a afl code (to scan or explore or backtest a given condition) which scans for a specified condition in a particular bar only. like, finding doji in the 1st hour bar of a day. so i want to write a code which scans only 1st hour bar of all days in hourly time frame not other bar or say 1st 5 min bar of all days in 5 min time frame not other bars - for whichever condition i specify.

I dont know what to do like which condition to put in filter, or something else.

plz, some1 help.

thanks n regards
Rajesh.
 
#3
u can use Hour() function to do that...define ur conditions and add :

AND Hour()==10 and minute==59 or so ur condition requires..

let me know if other help needed..
 

Similar threads