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

Re: [amibroker] AFL to scan for sar going from bear to bull



PureBytes Links

Trading Reference Links

Hello, Derek

I have been trying a few things, load into AA, apply to all stocks, n
last quotations and n=1, click explore, you will have some information
in the results list ,

current ticker, current date, Date of the last flip ( switch), current
mode ( bull , or bear for SAR() ) ,Switch (1 equals Bull, 0 equals Bear)
and the value of the close when the flip ( switch) occurred.

Anthony

CondBull=SAR()<C;//bull
condbear=SAR()>C;//bear

switch=Flip(Condbull,Condbear);
price=ValueWhen(Flip(Condbull,Condbear),C);
DateNumb=ValueWhen(switch,DateNum());
Filter=1;;
Buy=0;
AddColumn(DateNumb,"DateOFflip");
AddColumn(Condbull,"Bull");
AddColumn(Condbear,"Bear");
AddColumn(switch,"switch");
AddColumn(price,"close");

dereklebrun wrote:

> Hi,
> what is the way to tell AFL to scan for all stocks where parabolic
> SAR just turned from bear to bull and vice et versa ?
>
> Thanks,
> Derek
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT


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