Can you please help me code the Exponential moving average of the past 8 days. I will like to show on price
Regards
There you go:
MyEma = Average[8,1](close)
RETURN MyEma AS "Ema8"
but if you just want it to be plotted on your chart, you could do it yourself with no programming required, by simply adding the built-in (predefined) Exponential Moving Average to your chart, then selecting 8 periods.
Thanks for your prompt reply. I think I sent the wrong question.
Can you please help me code the EMA 8 of the Daily pivot on price.
Regards
Now I got it:
// Daily Pivot
Timeframe(Daily,UpdateOnClose)
MyPivot = (high + low + close) /3 //Daily Pivot
MyEma = Average[8,1](MyPivot) //Ema8 of Daily Pivot
Timeframe(default)
RETURN MyEma AS "Ema8 Pivot"
Thanks a million . Appreciated