I wonder, if some possibility to read market data with add-on. Is there any API for that? Or maybe you can provide me the market replay file format. In short, any way to get access to market replay data.....
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
Accessing market replay data
Collapse
X
-
Accessing market replay data
I need to gather some statistics from market replay data. The only way I see is to make a strategy and run it with market replay and caclulate statistics on each tick. But it is extremely slow and inappropriate for me.
I wonder, if some possibility to read market data with add-on. Is there any API for that? Or maybe you can provide me the market replay file format. In short, any way to get access to market replay data.....Tags: None
-
Hello,
Thank you for the post.
The Replay data specifically can only be Played back, there are no other options to reiterate over that type of data otherwise.
You can iterate over Historical data in a loop but this is not the same as playing back the recorded replay data as it is only historical data. Also for placing trades or other strategy specific calculations, the strategy would physically need to run for that to occur.
In the case you need to gather statistic information from a strategies trades in Playback, the only option to speed this process up would be to use the faster speeds of playback and allow the strategy to trade.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
-
Hello,
The format of the reply data would not be something I could detail, this is an internal format that development has created. This data is processed specifically by NinjaTrader and would not be in a format that is able to be read outside of the platform.
Unfortunately, the only way to playback Replay data would be to use the Playback connection.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
-
Maybe I can export somehow market replay data to any understandable format (for ex. CSV) ? Does NT have ability to export data?
Comment
-
Hello,
Yes, there is the ability to export Historical data using the Historical data manager but this would not be the same data as Replay data.
You can transfer replay data from one pc to another but it would require NinjaTrader to read it.
The only way I could see you being able to export the replay data specifically would be if you made a script that collects this data while you are playing in replay and stores it in a format you can use.
I look forward to being of further assistance.JesseNinjaTrader Customer Service
Comment
-
I still insist on my idea with getting market data. And I achieved some results. As it seems there are simple ways to get market data:
Code:var aInst = Instrument.GetInstrument("EURUSD"); MarketReplay.DumpMarketData(aInst, new DateTime(2017, 6, 19), new DateTime(2017, 6, 20),@"C:\Temp\MR\test1.csv"); MarketReplay.DumpMarketDepth(aInst, new DateTime(2017, 6, 19), new DateTime(2017, 6, 20),@"C:\Temp\MR\test2.csv");
I want to simplify the process and omit parsing CSV file, so I tried this method:
Code:var aInst = Instrument.GetInstrument("EURUSD"); var aMr = new MarketReplay(aInst, new DateTime(2017, 6, 19)); aMr.Start(); while (aMr.MoveNext()) { }
I very much ask you to contact the developers and send me their response. I see that the task of obtaining market data can be easily solved (although it is not documented), just need a little help
Comment
-
Comment
-
Your conversation is really helpful
It reminds me of a position I were in sometimes ago
thanks for the info though!
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Stanfillirenfro, Today, 07:23 AM
|
1 response
4 views
0 likes
|
Last Post Today, 07:37 AM | ||
Started by cmtjoancolmenero, Yesterday, 03:58 PM
|
2 responses
21 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by olisav57, Yesterday, 07:39 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by cocoescala, 10-12-2018, 11:02 PM
|
7 responses
944 views
0 likes
|
Last Post
by Jquiroz1975
Today, 07:21 AM
|
||
Started by oviejo, Today, 12:28 AM
|
1 response
12 views
0 likes
|
Last Post Today, 07:20 AM |
Comment