Hi,
My question concerns how EMAs are calculated in eSignal’s Basic Studies. Wikipedia indicates that an EMA is calculated according to:
EMA(t) = alpha x price(t) + (1 – alpha) x EMA(t-1)
Where:
alpha = 2/(N+1) and N is the length of the EMA
This works for my EMA and MACD calculations and I am able to reproduce the values of the eSignal Basic Studies in a spreadsheet. However, the formula does not work for my RSI calculations – even after several hundred trading periods to allow the calculation to settle down. The only way it appears to work is if I change alpha to:
alpha = 1/N
With this change, my calculated RSI figures match the eSignal figures.
Is there a technical reason for this difference, or have I misunderstood something?
Many thanks,
Trader08
My question concerns how EMAs are calculated in eSignal’s Basic Studies. Wikipedia indicates that an EMA is calculated according to:
EMA(t) = alpha x price(t) + (1 – alpha) x EMA(t-1)
Where:
alpha = 2/(N+1) and N is the length of the EMA
This works for my EMA and MACD calculations and I am able to reproduce the values of the eSignal Basic Studies in a spreadsheet. However, the formula does not work for my RSI calculations – even after several hundred trading periods to allow the calculation to settle down. The only way it appears to work is if I change alpha to:
alpha = 1/N
With this change, my calculated RSI figures match the eSignal figures.
Is there a technical reason for this difference, or have I misunderstood something?
Many thanks,
Trader08
Comment