[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] AFL



PureBytes Links

Trading Reference Links

X = 3; // howmany bars in a row
cond = H > ref(C,-1); // or whatever you condition is

// generate a buy on the Xth matching day
buy = iif(sum(cond,X) == X, 1, 0);



On Sat, 5 Oct 2002 12:46, Harold Harper wrote:
> How would I write this in AFL:
>
> If a condition is true X number of days in row, buy
>
> ??
>
> Thanks in advance.
>
> Harold Harper
> harold@xxxx


-- 
Nigel





  • References:
    • AFL
      • From: Harold Harper