![]() |
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
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Mar 2011
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,399
Thanks: 252
Thanked 969 times in 952 posts
|
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
NinjaTrader Customer Service |
|
|
|
|
|
#3 | |
|
Member
Join Date: Mar 2011
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
|
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,399
Thanks: 252
Thanked 969 times in 952 posts
|
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?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Mar 2011
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,399
Thanks: 252
Thanked 969 times in 952 posts
|
Ok, sounds good - I will check into it shortly.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Member
Join Date: Aug 2011
Posts: 36
Thanks: 4
Thanked 4 times in 3 posts
|
Any update on this issue that might help us folk looking at market replay in general?
|
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,778
Thanks: 158
Thanked 565 times in 556 posts
|
dojidubbs,
Bertrand will be following up on Monday.
Matthew
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,399
Thanks: 252
Thanked 969 times in 952 posts
|
dojidubbs, sorry I don't recall the specifics at this time - what issue are you running into?
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#10 |
|
Member
Join Date: Aug 2011
Posts: 36
Thanks: 4
Thanked 4 times in 3 posts
|
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 |
|
|
|
|
|
#11 |
|
Member
Join Date: Mar 2011
Posts: 44
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#12 |
|
Junior Member
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
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? |
|
|
|
|
|
#13 |
|
NinjaTrader Customer Service
Join Date: Jun 2009
Location: Denver, CO
Posts: 3,149
Thanks: 10
Thanked 89 times in 81 posts
|
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.
Austin
NinjaTrader Customer Service |
|
|
|
|
|
#14 |
|
Junior Member
Join Date: Sep 2009
Posts: 4
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#15 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
![]() |
| Tags |
| accuracy, data, replay |
| Thread Tools | |
| Display Modes | |
|
|
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 |