Hi All, I was trying to generate an AFL which indicated buy signals when there is a 1% change b/w the close price of adjacent bars in an 1 minute chart. It worked in EOD data but failed in 1minute data please help. Code is written below! thanks in advance
_SECTION_BEGIN("Unnamed 17");
for(i=0;i<BarCount-1;i++)
{
a=Close[i];
b=Close[i+1];
Ca=b-a;
d=.01*a;
if(Ca>d)
{
Buy1=Close[i+1];
Buy=Buy1;
}
}
_SECTION_END();
