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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
32 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
195 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
356 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
277 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|

Comment