PureBytes Links
Trading Reference Links
|
Hello,
to backtest this, load into AA , In settings window , position should be
set to LONG .
//ENTER LONG
downband=EMA(C,13)-ATR(5)*0.618;
Buy=Ref(C,-1)< downband AND C > downband;
//CLOSE LONG
upband=EMA(C,13)+ATR(5)*0.618;
downband=EMA(C,13)-ATR(5)*0.618;
Sell=(Ref(C,-1)> upband AND C< upband) OR
C< ValueWhen(Ref(C,-1)<downband AND C>downband,L,1);
Buy=ExRem(Buy,Sell);
Sell=ExRem(Sell,Buy);
Filter=1;
AddColumn(Buy,"buy");
AddColumn(Sell,"sell");
Inwind wrote:
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT
[Click Here!]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|