Login Page - Create Account

Support Board


Date/Time: Sat, 17 May 2025 14:34:06 +0000



Post From: SMA/EMA calculation explanation for different timeframe bars.

[2024-04-30 03:47:06]
beanthehacker - Posts: 34
Hello,

I have SMA/EMA on a 1 minute chart. I use the Study/Price Overlay to add those to my 1 second chart, but let me get to that point later below. What I want to know first is how these are calculated, example:

For 6 min EMA, if time is say 08:35:35 then will 6 min EMA be calculated using data from 08:29:35 till 08:35:35, or will it be 5 mins from 08:30-08:35 and 35 seconds of the current minute?


Coming to the second part, this calculation is important because when I backtest using bar based backtest where there's no option to link the charts on replays, then the EMA values are incorrect since they're rounded off from the minute chart and not constantly changing like it would in live trading.


Thank you for your help.