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

Help to convert Metastock formula



PureBytes Links

Trading Reference Links

Not ever having used Metastock, I need some assistance to translate 
this formula to AFL:

Name: VMOVSTOP:
Formulae: Periods:= Input ("periods",5,30,15);
M:= Mov(((C/Ref(C,-1))-1,14,E);
SD:= Stdev(((C/RefC,-1))-1,14);
R:= M-(2.364)*(SD);
Stop:=Mov((C*Exp(R)*1),periods,E);
If(C>Ref(C,-1),Stop,PREVIOUS)