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 carnitron, Today, 08:42 PM
|
0 responses
5 views
0 likes
|
Last Post
by carnitron
Today, 08:42 PM
|
||
Started by strategist007, Today, 07:51 PM
|
0 responses
6 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,974 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
8 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
||
Started by rhyminkevin, Today, 04:58 PM
|
4 responses
58 views
0 likes
|
Last Post
by dp8282
Today, 06:13 PM
|
Comment