Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to add market replay capability to a custom indicator
Collapse
X
-
Hi kv712,
When you look at your Data Series properties, do you see a "Tick Replay" checkbox?
If not, search for how to enable tick replay on charts to enable this checkbox. Once it is checked then it will work for you.
Regards,
Steven
Note of caution: This setting will take more resources and CPU when loading or refreshing the chart.Last edited by StevenL; 02-13-2022, 01:33 PM.
-
Hi Steve,Originally posted by StevenL View PostHi kv712,
When you look at your Data Series properties, do you see a "Tick Replay" checkbox?
If not, search for how to enable tick replay on charts to enable this checkbox. Once it is checked then it will work for you.
Regards,
Steven
Note of caution: This setting will take more resources and CPU when loading or refreshing the chart.
Thank you replying. Tick replay is already enabled. I believe the indicator is not programmed to work with market replay and needs to be modified to do so. I am no programmer so seeking help here.
Comment
-
Hello kv712,
The OnMarketData() section looks pretty small which would be the part affected by TickReplay and likely wouldn't bee too much work to change.
All of the calls to ask and bid are all already occurring on the last update (as TickReplay only updates with the last).
Are you using print to show that the e.Ask and e.Bid are not available on e.Last updates?Chelsea B.NinjaTrader Customer Service
Comment
-
Hi Chelsea,
Thank you for replying. I have not coded this indicator so I am not sure. I am in very early stages of leaning how to code. Can you suggest what changes I need to make and where to make them in the script so it works with market replay and to move that bid.ask volume column to the left? Thanks.
Comment
-
Hello kv712,
I think you need to understand specifically what is not working.
Below is a link to a forum post that demonstrates using Print() to understand behavior.
https://ninjatrader.com/support/foru...040#post786040
With TickReplay enabled, print e.Time, and e.Ask to the output window in the condition where e.MarketDataType equals MarketDataType.Last. Do you see this appearing for historical data?
I am also including a link to the help guide on market data arguments.
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
597 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
555 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment