Thanks.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SMA issue
Collapse
X
-
SMA issue
Hi, on the attached 1 minute chart, I'm using a 10 SMA and on the 3 second chart a 200 SMA. I'm wondering why they don't calculate to the same levels (see blue price markers). I've tried using the "on price change" setting and the "on each tick" setting, but neither makes them match. The further away price is from the line, the larger the difference between the calculations.
Thanks.
Tags: None
-
Hello,
Thanks for the post.
I would not expect a 10 period SMA on a 1 minute chart to match the value of a 200 period SMA on a 3 second chart. The reason for this is because by default, the data used to calculate the SMA is the close of each bar. The close of the 200, 3 second bars on average will be much different than the close of the 10, 1 minute bars.
The closest I could get the SMAs to match was by changing the Input Series to select the 'Weighted' price type rather than the 'Close' price type. With this setting, the two SMAs matched within a few cents of each other at all times. Here are some screenshots showing the setting I used:Otherwise, the only way to ensure the two values match exactly would be to use a hidden data series to plot the SMA on one of the charts.
For this example, I put a hidden 1 Minute Data Series on my 3 second chart, and then applied a 10 period SMA to that 1 minute data series:Here are the Data Series settings for that chart with the hidden Data Series:And here are the indicator settings:Please let me know if you have any further questions.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
60 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
39 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
21 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
23 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
51 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment