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!
Rate:=2 / (Pds+1);
M:=If(Cum(1)=1, C, PREV*(1-Rate) + C*Rate );
I like to use the 5 EMA of the WEEKLY closing data as part of my filtering system
...to see if it is moving up or down?
I can calculate this in Excel.. but it’s just a bit fiddly to incorporate with daily data. I’d like to keep my spreadsheet simpler.
Would anyone know which daily EMA is...