Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Can AddOn Get Tick Replay Data
Collapse
X
-
Can AddOn Get Tick Replay Data
I am familiar with using BarsRequests with an AddOn, but would like to be able to retrieve TickReplay data to see how each historical trade is marked. Is there any way to request this type of historical data stream? Is the only way to request the bid/ask/price data and merge them together? Is there any example showing the recommended manner to do so?
Tags: None
-
Hello aslane,
TickReplay is not data itself. TickReplay allows OnBarUpdate to run with Calculate.OnEachTick or .OnPriceChange in historical data with a NinjaScript Strategy or Indicator.
https://ninjatrader.com/support/help...ick_replay.htm
TickReplay uses historical tick data, which can be retrieved with a bars request.
TickReplay does not affect addons as these do not have an internal OnBarUpdate method updated by NinjaTrader.
Addons cannot place orders with historical data. These can place orders in real-time only.Chelsea B.NinjaTrader Customer Service
-
I understand it is not data, so, I guess I did not explain adequately.
I am trying to get the historical data stream with the bid/ask price to do calculations like Cumulative Delta in an AddOn. In the AddOn I can get historical bars, but I did not see a way to get the historical OnMarketData stream with the bid/ask. Hence the TickReplay question.
So how can an AddOn get the historical market data stream with bid/ask values at the time of each trade?
Comment
-
Hello aslane,
If you are referring to market data updates in OnMarketData() this would be from the MarketData event handler assigned to the account. However, this does not show historically, as TickReplay is a tool for Indicators and Strategies.
https://ninjatrader.com/support/help...ick_replay.htm
https://ninjatrader.com/support/help...marketdata.htm
For historical data you would need to BarsRequest ask and bid Bars.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by benmarkal, Yesterday, 12:52 PM
|
3 responses
22 views
0 likes
|
Last Post Today, 05:22 AM | ||
Started by helpwanted, Today, 03:06 AM
|
1 response
18 views
0 likes
|
Last Post Today, 03:35 AM | ||
Started by Brevo, Today, 01:45 AM
|
0 responses
11 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
244 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
Comment