Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Bars.TickCount for previous bar
Collapse
X
-
Hello cutzpr,
There is not series of tick counts. You would need to save this with custom C# logic.
You could save this to your own custom series.
https://ninjatrader.com/support/helpGuides/nt8/en-us/?iseriest.htm
https://ninjatrader.com/support/helpGuides/nt8/en-us/?tickcount.htm
Chelsea B.NinjaTrader Customer Service
-
Hello cutzpr,
The data used for TickReplay is historical tick data that is stamped by the provider with the ask and bid the moment the tick was produced.
To use this enable TickReplay in Tools > Options > Market data > Real-time > Show Tick Replay. Then enable TickReplay in the Data Series window for the chart or in the strategy parameters (if not on a chart). Then set Calculate to .OnEachTick in State.SetDefaults.
Below is a public link to the help guide.
In the script this causes OnBarUpdate to trigger for each tick historically and OnMarketData to update historically.
The ask and bid can be found in OnMarketData with marketDataUpdate.Ask/marketDataUpdate.Bid.
Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
181 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
334 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
258 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
358 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
187 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment