PureBytes Links
Trading Reference Links
|
//ENTER LONG
Dp=(Close-MA(C,20))/StDev(C,20);
Buy=dp>0;
//Close LONG
Dp=(Close-MA(C,20))/StDev(C,20);
Sell=dp<0;
//-----------------------
//TS2
//ENTER LONG
Dp=(Close-MA(C,20))/StDev(C,20);
Buy=dp>MA(dp,20);
//Close LONG
Dp=(Close-MA(C,20))/StDev(C,20);
Sell=dp<MA(dp,20);
//------------------------
//TS3
//ENTER LONG
Dp=(Close-MA(C,20))/StDev(C,20);
Buy=Ref(dp,-1)<-0.2 AND dp>-0.2;
//Close LONG
Dp=(Close-MA(C,20))/StDev(C,20);
Sell=Ref(dp,-1)>0.2 AND dp<0.2;
//-----------------------
//TS4
//ENTER LONG
Dp=(Close-MA(C,20))/StDev(C,20);
Buy=Ref(dp,-1)<-0.2 AND dp>-0.2;
//Close LONG
Dp=(Close-MA(C,20))/StDev(C,20);
Sell=Ref(dp,-1)>=0 AND dp<0;
Inwind wrote:
> Can someone please convert this Metastock's formula into AFL -
> ThanksENTER LONG
> Dp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);
> dp>0
> CLOSE LONG
> Dp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);
> dp<0 ----------------------- TS2 ENTER LONG
> Dp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);
> dp>Mov(dp,20,S)
> CLOSE LONG
> Dp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);
> dp<Mov(dp,20,S) ------------------------ TS3 ENTER LONG
> Dp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);
> Ref(dp,-1)<-0.2 AND dp>-0.2
> CLOSE LONG
> Dp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);
> Ref(dp,-1)>0.2 AND dp<0.2 ----------------------- TS4 ENTER LONG
> Dp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);
> Ref(dp,-1)<-0.2 AND dp>-0.2
> CLOSE LONG
> Dp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);
> Ref(dp,-1)>=0 AND dp<0 ThanksPeter
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT
[Click Here!]
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|