NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > Application Technical Support > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 08-12-2011, 05:23 AM   #1
jtfancher
Member
 
Join Date: Mar 2011
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
Default Accuracy of Replay vs. Actual Data

Attached is a brief file example of a big problem that I have with Market Replay data generating significantly different trades than the actual trading itself. The discrepancies are far beyond any slippage issues.

I am running two strategies on SIM - one on GC, CL, and TF. And another on 6e,6a and ZB.

The file shows trades from about 7:45 - 10:30 last night which was intentionally chosen as a slow period. During the more normal, higher volume hours the problem is greatly exaggerated with a Market Replay showing far greater profitability that actual.

My actual data is Zenfire/Mirus and the Market Replay data is what I get from File-Utilities-Download Replay Data.

Thank you.
Attached Files
File Type: zip NinjaTrader Grid 8_12_2011 12_00 AM.zip (532 Bytes, 14 views)
jtfancher is offline  
Reply With Quote
Old 08-12-2011, 05:30 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,399
Thanks: 252
Thanked 969 times in 952 posts
Default

jtfancher, unfortunately I could not open the file you attached for us here : could you please recheck the attachment? What simulator settings are you using then under Tools > Options > Simulator and with which speed did you replay?

Please also check this link here for overwiew of common discrepancies seen :

http://www.ninjatrader.com/support/h...ime_vs_bac.htm
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 08-12-2011, 05:50 AM   #3
jtfancher
Member
 
Join Date: Mar 2011
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
jtfancher, unfortunately I could not open the file you attached for us here : could you please recheck the attachment? What simulator settings are you using then under Tools > Options > Simulator and with which speed did you replay?

Please also check this link here for overwiew of common discrepancies seen :

http://www.ninjatrader.com/support/h...ime_vs_bac.htm
Bertrand - the file I was sending is Excel which doesn't seem to be supported directly so I zipped it. Here is a picture of my SIM settings. I have this problem no matter what speed I run.
Attached Images
File Type: png 2011-08-12_0746.png (47.5 KB, 26 views)
jtfancher is offline  
Reply With Quote
Old 08-12-2011, 05:56 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,399
Thanks: 252
Thanked 969 times in 952 posts
Default

jtfancher, yes, but if I open your zip there's only a link / shortcut incluced and not the actual underlying file.

The simulator settings are looking ok, are you trading any large size with this strategy? What order types do you use / simulate?
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 08-12-2011, 06:02 AM   #5
jtfancher
Member
 
Join Date: Mar 2011
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
Default

Bertrand - I am not sure why the file zips like that. I am going to send you an unzipped version to the support@nt address. I am only trading 1 contract each. Both use only limit and stop orders.
jtfancher is offline  
Reply With Quote
Old 08-12-2011, 06:05 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,399
Thanks: 252
Thanked 969 times in 952 posts
Default

Ok, sounds good - I will check into it shortly.
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 09-04-2011, 03:46 AM   #7
dojidubbs
Member
 
Join Date: Aug 2011
Posts: 36
Thanks: 4
Thanked 4 times in 3 posts
Default

Any update on this issue that might help us folk looking at market replay in general?
dojidubbs is offline  
Reply With Quote
Old 09-04-2011, 11:33 AM   #8
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,778
Thanks: 158
Thanked 565 times in 556 posts
Default

dojidubbs,

Bertrand will be following up on Monday.
NinjaTrader_Matthew is offline  
Reply With Quote
Old 09-05-2011, 08:36 AM   #9
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,399
Thanks: 252
Thanked 969 times in 952 posts
Default

dojidubbs, sorry I don't recall the specifics at this time - what issue are you running into?
NinjaTrader_Bertrand is online now  
Reply With Quote
Old 09-05-2011, 10:37 AM   #10
dojidubbs
Member
 
Join Date: Aug 2011
Posts: 36
Thanks: 4
Thanked 4 times in 3 posts
Default

No specific issue. I was just looking at market replay in general, and saw this item. Perhaps if jffancher is still watching the thread, he can give us an update on why Market Replay was generating different trades than the actual trading.

Thx
dojidubbs is offline  
Reply With Quote
Old 09-06-2011, 08:47 AM   #11
jtfancher
Member
 
Join Date: Mar 2011
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
Default

Market replay gives me vastly different results versus trading when the markets are open. Ninja apparently makes assumptions about how fills take place. Often in replay, stop orders are filled at favorable prices versus my order level which virtually never occurs in real trading.
jtfancher is offline  
Reply With Quote
Old 10-14-2011, 05:24 PM   #12
temerson
Junior Member
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default

I am having the same issue with market replay on CL. It shows more positive slippage than negative slippage. I use a fixed stop loss of $40. Only long entries are used so all stops are "sell stops".

Avg Loss - $37.69 Note: If there was negative slippage, I would expect avg loss to be > $40
# of Trades - 860

Looking through trade data, most losing trades are at -$40. There is a bias toward positive slippage (ie -$30) as opposed to negative slippage (-$50). Is it realistic for me to expect positive slippage when I start trading this live?
temerson is offline  
Reply With Quote
Old 10-16-2011, 12:04 PM   #13
NinjaTrader_Austin
NinjaTrader Customer Service
 
NinjaTrader_Austin's Avatar
 
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
Default

temerson, please try running the strategy live on a simulation account and let us know what sort of slippage you run into - this will give a more accurate representation of trading live than market replay.
NinjaTrader_Austin is offline  
Reply With Quote
Old 10-17-2011, 04:16 PM   #14
temerson
Junior Member
 
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
Default

I ran the strategy 2 ways for 10-17-2011 with CL Nov contract:
1. simulation mode with interactive brokers as data feed
2. market replay with data downloaded through ninjatrader

There are huge discrepancies with slippage. Using sim mode with IB data feed shows an overall negative slippage, whereas market replay shows overall positive slippage. This results in a net loss of $350 in sim mode with IB and a profit of $260 using market replay. I'm not sure why market replay is giving overall positive slippage in all my tests; this seems unreasonable.

I have included the order grid with combined orders from market replay and sim mode in .csv format.

Any help will be much appreciated.
Attached Files
File Type: txt Slippage NinjaTrader Grid 10_17_2011 4_01 PM.txt (19.7 KB, 6 views)
temerson is offline  
Reply With Quote
Old 10-17-2011, 04:40 PM   #15
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

temerson,

I show a lot of the same values in this example so overall looking pretty good. The simulator engine on Sim 101 is identical to the simulator engine on market replay.

The data is not the same on your live feed compared to market replay downloadable files. It's a different source for data, and the potential for latency or any upstream issues make it extremely challenging to match up identically.

If you wanted to playback the same data live in market replay, record on your local machine. Click Tools > Options > Data > Check Record for market replay. That way you're working with the same data that you previously streamed live to your computer.
NinjaTrader_RyanM is offline  
Reply With Quote
Reply

Tags
accuracy, data, replay

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
Market Replay Speed vs.Accuracy jtfancher ATM Strategies (Discretionary Trading) 1 08-08-2011 07:50 AM
Lag with market replay connection - does this reflect actual lag? AntiMatter Miscellaneous Support 3 02-25-2011 08:58 AM
Accuracy of strats on Market Replay data lookOutBelow Automated Trading 8 10-24-2010 01:10 AM
Market Replay Recorder -- Does it record actual DOM bid x ask data? naked SuperDOM and other Order Entry Windows 3 11-15-2009 12:21 PM
data merge accuracy? Bogan7 Miscellaneous Support 1 12-20-2007 12:03 AM


All times are GMT -6. The time now is 08:38 AM.