Hi Meg --

Are there bars where the price changes 1% in one minute?  Try lower the size
of the change required to trigger the signal.

Thanks,
Howard


On Sun, Aug 22, 2010 at 9:22 AM, Meg Nath <[email protected]> wrote:

>
>
>
> 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();
>
>
>
>  
>

Reply via email to