Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Moving Average data is behind by 5 minutes
Collapse
X
-
Moving Average data is behind by 5 minutes
Im new to ninjatrader and ninjascript. I am trying to test out a crossover strategy but there seems to be a delay from when the crossover happens to when the trade executes. I understand that the strategy waits for the close and then enters but It seems to be about 2 candles behind. When I test this same strategy on other platforms such as Thinkorswim or tradingview, It works as intended. And the Crossovers seem to be different on ninja than on thinkorswim and tradingview.
-
You need to tell each indicator that you use (moving averages in this case) to update on EACH TICK or on PRICE CHANGE not on BAR CLOSE. When the bar closes the indicator updates normally in NT which makes it lagging - hence why your averages don't touch the candles until it is the next candle, and why they are lagging so incredibly.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
87 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
128 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
65 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
117 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
67 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment