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

metastock versus afl



PureBytes Links

Trading Reference Links


Can someone please 
convert this Metastock's formula into AFL - Thanks
ENTER 
LONGDp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);dp>0
 
CLOSE LONGDp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);dp<0
 
-----------------------
 
TS2
 
ENTER 
LONGDp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);dp>Mov(dp,20,S)
 
CLOSE 
LONGDp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);dp<Mov(dp,20,S)
 
------------------------
 
TS3
 
ENTER LONGDp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);Ref(dp,-1)<-0.2 
AND dp>-0.2
 
CLOSE LONGDp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);Ref(dp,-1)>0.2 
AND dp<0.2
 
-----------------------
 
TS4
 
ENTER LONGDp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);Ref(dp,-1)<-0.2 
AND dp>-0.2
 
CLOSE LONGDp:=(CLOSE-Mov(C,20,S))/Stdev(C,20);Ref(dp,-1)>=0 
AND dp<0
 

Thanks 
Peter