NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Suggestions and Feedback > Suggestions And Feedback

Suggestions And Feedback New feature suggestions and feedback.

Reply
 
Thread Tools Display Modes
Old 12-20-2007, 07:00 AM   #1
whitmark
Certified NinjaScript Consultant
 
Join Date: Nov 2005
Location: Virginia, USA
Posts: 441
Thanks: 0
Thanked 12 times in 7 posts
Send a message via Skype™ to whitmark
Default Level1 Market Replay from Historical Tick Data Cache

The improvements in Market Replay speeds are very useful but the greatest bottleneck now is the availability of recorded Market Replay data. It can be very hard to capture contiguous streams of data for a full day much less for weeks at a time with internet feed disconnects, application crashes, and other undesirable events that interrupt the recording of this data. It would be very desirable to be able to load the data cache with tick data (bid, ask, and last price/volume) and then be able to populate a Level1 Market Replay file for playback. I have used a similar feature in another trading package with my eSignal feed and I find it invaluable in enabling my forward testing activities with the assurance that I have a complete sample of tick history.

Perhaps the Market Replay infrustructure cannot accommodate this type of "forced recording" in which case I would recommend an alternative data source of "Data Replay" be considered. Unfortunately, Level2 will not be available for historical download unless the respective exchange makes it available in an easy to use format, so personal recording is the only viable option for now.

Any additional thoughts on this idea are most welcome.

Regards,

Whitmark
whitmark is offline  
Reply With Quote
Old 12-20-2007, 07:42 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Thanks for sharing your thoughts.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 12-20-2007, 03:23 PM   #3
KBJ
Senior Member
 
Join Date: Mar 2007
Location: , Florida, USA
Posts: 663
Thanks: 36
Thanked 7 times in 6 posts
Default

If the data formats that NinjaTrader uses for Market Replay file datastreams are available, it would be possible to make some standalone utilities which would merge datastreams from various sources (e.g., different users' saved datastreams).

Then perhaps a data repository for the community could be developed and people could pool their data.

Ideally, we'd also want to have a means for comparing saved data as well, so that we could verify that saved datastreams are consistent to one another which might help prevent data errors.
KBJ is offline  
Reply With Quote
Old 12-20-2007, 03:42 PM   #4
NinjaTrader_Chris
Guest
 
Posts: n/a
Default Suggestions and Feedback

Hello,

Thank you for your suggestions. I have forward them to development and will have them add it to our future enhancment list.
 
Reply With Quote
Old 12-20-2007, 08:28 PM   #5
zoltran
Senior Member
 
Join Date: Nov 2005
Location: , Ontario, Canada
Posts: 400
Thanks: 0
Thanked 0 times in 0 posts
Default

Didn't NT used to keep daily replay files arround?

Why was this stopped? I'm guessing some sort of legal or support issue.
zoltran is offline  
Reply With Quote
Old 12-20-2007, 11:54 PM   #6
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Last we had some sample replay files for a few days. However, they never where up to current which is why the stop providing these files.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 08-16-2008, 07:55 AM   #7
Red Fish
Member
 
Join Date: Aug 2008
Location: London
Posts: 30
Thanks: 0
Thanked 0 times in 0 posts
Default Replaying historical data or converting historical data for replay

Whatever happened to this idea? To be honest when I first signed up to Ninja Trader that is what I thought I was getting, a way of replaying history so that I could hone my skills of entering the market in the same time period every day...my trading method is time of day dependent which means it takes years to develop the skill and experience necessary, something backtesting never really gives you.

I was in search of a simulator that might pack in years of trading experience into months, but that doesn't seem what NT is about. A shame because I think its popularity would be far greater with that facility. Can't we get a working converter to at least convert text files into the .ntm files NT uses?
Red Fish is offline  
Reply With Quote
Old 08-16-2008, 09:56 AM   #8
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

There is no such converter at this time.
NinjaTrader_Ray is offline  
Reply With Quote
Old 08-16-2008, 02:50 PM   #9
hemlock
Senior Member
 
Join Date: Nov 2007
Location: Michigan, USA
Posts: 116
Thanks: 1
Thanked 0 times in 0 posts
Default

I would be willing to write a converter for everyone to use if the format of the tick replay files was released to the public.

Ken
hemlock is offline  
Reply With Quote
Old 08-18-2008, 04:59 AM   #10
whitmark
Certified NinjaScript Consultant
 
Join Date: Nov 2005
Location: Virginia, USA
Posts: 441
Thanks: 0
Thanked 12 times in 7 posts
Send a message via Skype™ to whitmark
Default

I had heard the guys at Money Flow Bars had a "History Player" built for them but didn't realize until now that they are offering it for sale.

http://www.moneyflowbars.com/historyplayer.html

Anyone have any experience with it?
whitmark is offline  
Reply With Quote
Old 08-18-2008, 06:42 AM   #11
hemlock
Senior Member
 
Join Date: Nov 2007
Location: Michigan, USA
Posts: 116
Thanks: 1
Thanked 0 times in 0 posts
Default

Whitmark, Had not seen the MoneyFlow app. Here is another:

http://www.ninjatrader-support.com/v...ead.php?t=6147

I don't think either replays multiple instruments. That would be quite useful for my purposes.
hemlock is offline  
Reply With Quote
Old 08-25-2008, 10:48 AM   #12
whitmark
Certified NinjaScript Consultant
 
Join Date: Nov 2005
Location: Virginia, USA
Posts: 441
Thanks: 0
Thanked 12 times in 7 posts
Send a message via Skype™ to whitmark
Default

Thanks Hemlock, I had not noticed VitimanC's utility before. Kudos to VitimanC for making this generous contribution to the forum. The existence of more than one tool to do this does suggest a need for this type of functionality and potentially a very useful platform extension.

In the attached exhibit is my "old school" way of doing this, albeit using a tick server from another platform to show there are several ways to do this. However, there are currently some limitations in Ninja from fully enabling this functionality.

In the attached example, I am simultaneously pushing ticks for the ES and YM continuous contracts from a data cache that was updated with eSignal bid/ask/last data. Shown are two source charts (but this could also be setup as a single source chart) and does require the use of a custom indicator to push ticks to NinjaTrader across the Ninja ATI. On the left are the two source charts set to tick update and the tick player (simulation server). On the right are two Ninja charts that are being updated simultaneously with bid/ask/last data tick by tick via the External Data Feed. The SampleMACrossOver strategy is used on both charts.

When operating in this manner to facilitate larger scale forward testing runs when Market Replay data is not available or not convenient to work with, it’s important to keep in mind:
  • The External Data Feed was designed to accept realtime data and therefore it has some issues when working with historically datetime stamped data. It has been my experience that only tick data will work in this mode, and not minute or daily data. It is my understanding from a historical post that you can change your PC clock’s time to fake out Ninja into thinking the data is realtime vs historical data, but I have no firsthand experience doing this. See the attached link:

    http://www.ninjatrader-support.com/v...ead.php?t=3618
  • When streaming tick data via the External Data Feed, the data cache for the symbol you are updating will be modified. So either, backup your data or better yet, stream the data to another symbol that you have created in the Instrument Manager exclusively for this purpose.
  • If you rerun the historical data over the same period multiple times at faster replay speeds, it’s likely you will get duplicate key errors in your data cache that you would have to repair which is another reason to back up your primary data and only use a throwaway symbol for this replay purpose.
  • I have been getting inconsistent trade marker display behavior, sometimes plotting, sometimes not, that I have not been able to pin down yet. At one point, since Ninja thought it was historical data, I was getting the historical green and red position lines on “realtime” entries and exits.
Obviously, use this or similar approaches at your own risk, since its likley unsupported operations. I would certainly welcome more direct platform support for this type of operation and sharing of experiences with others who are would like to see longterm, uninterruped forward testing possible.

Regards,

Whitmark
Attached Images
File Type: jpg Neo to Ninja Historical Player 75.jpg (89.7 KB, 143 views)
whitmark is offline  
Reply With Quote
Old 11-22-2008, 03:01 PM   #13
whitmark
Certified NinjaScript Consultant
 
Join Date: Nov 2005
Location: Virginia, USA
Posts: 441
Thanks: 0
Thanked 12 times in 7 posts
Send a message via Skype™ to whitmark
Default

In NT7, will there be the ability to drive NinjaTrader with external historical bid/ask/last data through the ATI for testing purposes and not require a rollback of the computer clock?

Thanks
whitmark is offline  
Reply With Quote
Old 11-22-2008, 03:39 PM   #14
whitmark
Certified NinjaScript Consultant
 
Join Date: Nov 2005
Location: Virginia, USA
Posts: 441
Thanks: 0
Thanked 12 times in 7 posts
Send a message via Skype™ to whitmark
Default

I did some tests using 6.5.1000.7 and it looks like its working fine with the Ninja chart correctly building both tick- and time-based bars. Thank you!
whitmark is offline  
Reply With Quote
Old 07-28-2009, 02:57 AM   #15
DangerBoy
Senior Member
 
Join Date: Apr 2009
Location: UK
Posts: 191
Thanks: 1
Thanked 3 times in 3 posts
Default

Mark,

Funny how we all end up down the same paths

I was just about to start myself a big project of writing an external simulation server to feed ninja as I've come to realise the current market replay feature is not sufficient for my needs due to the constant interruptions in the replay data as well as the recorder player having limited flexibility in navigating the recorded data.

Luckily I stumbled across this post of yours beforehand and the information in it is invaluble. I can see we face similar challenges but you've gone the route of using an existing sim server to feed Ninja which I actually think is a great option since it means not having to write all the feeder code from a custom data base etc.

I had a couple of questions for you, as I've never used Neo, how is the flexiblity of the recorder navigation bar, does it manage to do everything you need.

Specifically for debugging purposes I would like to do things like set repeat play loops and be able to define stops and starts, navigate to a specific point in time by typing in the actual date and time. I can see from the picture that you are able to navigate forward one time period at a time tick/minute etc. which looks great as I need that also. Also with the Nero Sim server can one import your own bid/ask tick level information?

Anything you would say to look out for? I'm thinking in the end this may be the solution for myself also.

Also a question to NT guys regarding the design of this replayer. I'm asking the question more from a point of view that perhaps there are some challenges in this set up that I have overlooked and you have already faced and it's the reasoning behind the current design.

Why do we have a different repository for replay data from actual data?

Surely ideal scenario is we have one data repository that stores all necessary information including Bid/ask etc., this repository can be loaded via the NT import feature. The replay feature will then allow replay of this data from any point in time to any point in time with a flexible recorder bar that allows good navigation of data, as the Nero Sim bar seems to do. Can you give a bit more detailed direction of where NT7 is going with this feature, as I would hate to go to all the work of figuring out Nero and writing external feeder connections, Neo indicators etc., when NT7 will be sorting out this area of weakness.

I have seen in Rays update notes that continuous playback will be possible over multiple days but no mention of whether the recorder will be abolished and we'll be able to import our own Bid/Ask info and whether the existing recorder navigator bar is going to be polished up a bit?

Thanks for your help.

Cheers
Ross
DangerBoy is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart not displaying tick data after historical tick data import Big D Miscellaneous Support 17 10-18-2010 03:14 AM
Generating market replay files from historical data Rollins Miscellaneous Support 1 12-02-2007 11:38 AM
Flushing the historical cache ThePatientOne Charting 7 10-02-2007 09:57 AM
How to Replay historical data readgetpaid Connecting 1 09-07-2007 06:12 AM
Market Replay and Historical Data ForexResearch Miscellaneous Support 9 07-21-2007 10:52 AM


All times are GMT -6. The time now is 10:04 PM.