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

Re: [amibroker] AFL (Beginner Question)



PureBytes Links

Trading Reference Links

Name ????

Periods=15;
shift=2;

BollHigh = BBandTop(Close, Periods, shift);
bolllower = BBandBot(Close, Periods, shift);


final= BollLower <= LLV(bollLower,-4) OR Ref(BollLower,-1) <=
LLV(bollLower,-4) AND (Close <= LLV(C,-4) OR Ref(C,-1) <= LLV(C,-4));

Plot(final,"",4,2);

Anthony

520001085531-0001@xxxx wrote:

> Hi, could someone please convert the followingformula to AFL (Boll is
> BollingerBands): (BollLower <= lowest_BollLower[4] or
> BollLower[1] <= lowest_BollLower[4])
> and (close <= lowest_close[4] or close[1] <=
> lowest_close[4]) Explanation: close [1] means yesterday
> lowest_close[4] means lowest close of the past 4 days upto (incl.)
> yesterday Thanks
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT

>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.