- Joined
- 10 February 2015
- Posts
- 5
- Reactions
- 0
Does anyone know the full AFL code to create a custom EMA?
Alternatively, if somone could help me convert the following Metastock formula, it would be most appreciated!
Pds:= 200;
Rate:=2 / (Pds+1);
M:=If(Cum(1)=1, C, PREV*(1-Rate) + C*Rate );
ValueWhen(1,Cum(1)>=Pds,M);
Alternatively, if somone could help me convert the following Metastock formula, it would be most appreciated!
Pds:= 200;
Rate:=2 / (Pds+1);
M:=If(Cum(1)=1, C, PREV*(1-Rate) + C*Rate );
ValueWhen(1,Cum(1)>=Pds,M);