hi,
I would like to understand why does MT4 draw an EMA line from the very First bar.
I always thought like other MA's there must be some calculation points before the first EMA is finally calculated.
Look at the pic below:
I reduced on purpose the Bars in the Chart to 35 so to see all there is: applied are Mas(21) all 4 MT4 types.
as you see: only the Aqua (EMA) starts from the very first point.
According to other resources The first EMA should be starting later.
http://fxtrade.oanda.com/learn/forex...moving-average ( you are calculating your first EMA value where there is no previous day’s EMA, use SMA instead.)
http://stockcharts.com/school/doku.p...oving_averages
(An exponential moving average (EMA) has to start somewhere so a simple moving average is used as the previous period's EMA in the first calculation.)
Mainly I'm asking because I tried iMAOnArray with only a selected numbers of bars: the results are not usable
There are also discrepancies with the SMMA.
Only SMA and LWMA seems to be doing as I expected it.
Thanks
I would like to understand why does MT4 draw an EMA line from the very First bar.
I always thought like other MA's there must be some calculation points before the first EMA is finally calculated.
Look at the pic below:
I reduced on purpose the Bars in the Chart to 35 so to see all there is: applied are Mas(21) all 4 MT4 types.
as you see: only the Aqua (EMA) starts from the very first point.
According to other resources The first EMA should be starting later.
http://fxtrade.oanda.com/learn/forex...moving-average ( you are calculating your first EMA value where there is no previous day’s EMA, use SMA instead.)
http://stockcharts.com/school/doku.p...oving_averages
(An exponential moving average (EMA) has to start somewhere so a simple moving average is used as the previous period's EMA in the first calculation.)
Mainly I'm asking because I tried iMAOnArray with only a selected numbers of bars: the results are not usable
There are also discrepancies with the SMMA.
Only SMA and LWMA seems to be doing as I expected it.
Thanks
__Thanks__ MJ