NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical NinjaTrader 6.5 Archive > Historical NinjaTrader 6.5 Beta Threads

 
 
Thread Tools Display Modes
Old 02-10-2008, 07:34 AM   #1
MJT
Senior Member
 
Join Date: Jun 2006
Posts: 111
Thanks: 0
Thanked 1 time in 1 post
Default Market Replay

When running Market Replay I have noticed two issues.
1. Alerts within an indicator fire every second when there is new data, even though the alert is set to rearm at 60 seconds. The alert works as expected on live data connection.

2. Stop/Limit orders are frequently being filled at a price better than expected. Orders were placed on a Range Bar chart, but I have attached a 1-tick chart to illustrate the issue. A Stop Limit Buy order was placed with Stop=710.7 and Limit=710.7, but it is filled at 710.6 even though on the 1-tick chart the price did not go back down below 710.7 after the order should have been triggered. However using the data box I can see the trade times down to seconds, and the price was as low as 710.4 during the same 1-second period as the trade triggered ~ just before the trigger not after it.
Is this just a limitation of Market Replay, or is it a bug?
Attached Images
File Type: jpg Replay1.jpg (63.9 KB, 29 views)
MJT is offline  
Old 02-10-2008, 08:52 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

1) Will look into

2) This is expected since the execution is plotted on the first bar of the same time stamp. You will notice that there are a lot of bars with the same time stamp. Its also possible that the fill might be a tick better. This is just due to the simulation engine and current price of the market as the order gets filled.
NinjaTrader_Ray is offline  
Old 02-10-2008, 10:47 AM   #3
ryker
Senior Member
 
Join Date: Dec 2007
Location: Guernsey (UK)
Posts: 152
Thanks: 0
Thanked 2 times in 1 post
Default

Hello,
I have another issue while trying to replay, got the attached error message...
This is happening after a strategy has generated an order and I went back in time before the order. Now it's showing this message everytime I try to start the strategy while on replay.
Attached Images
File Type: png replay.png (8.7 KB, 20 views)
ryker is offline  
Old 02-10-2008, 10:20 PM   #4
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

This is a bug which will be fixed next NT6.5 beta.
NinjaTrader_Dierk is offline  
Old 02-10-2008, 10:31 PM   #5
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

>> 1. Alerts within an indicator fire every second when there is new data, even though the alert is set to rearm at 60 seconds. The alert works as expected on live data connection.
Could you please mail me a simple as possible indicator and step-by-step guide on how to set up a reproducible scenario to "dierk AT ninjatrader DOT com". Thanks
NinjaTrader_Dierk is offline  
Old 02-11-2008, 06:17 AM   #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

This is a bug which will be fixed with next NT6.5 beta. Thanks for providing the sample indicator.
NinjaTrader_Dierk is offline  
Old 02-13-2008, 01:53 AM   #7
MJT
Senior Member
 
Join Date: Jun 2006
Posts: 111
Thanks: 0
Thanked 1 time in 1 post
Default

Reference the first post of this thread, and my point No.2 and attached chart showing a Stop Limit order being filled, when in the real world a fill would be very unlikley (it fills me at a price the market was at before the order become active, but that fill price occurred during the 1-second time stamp period of the order).
I have just run the same replay file in v6.0.1000.8, set the same Stop Limit order, and the order was NOT filled. This is the expected outcome looking at the 1-tick chart.

Could you please look again at this issue?
thanks,
MJT is offline  
Old 02-13-2008, 06:57 AM   #8
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Default

6.0.XXX will behave very differently than 6.5 since the simulation engine was not in sync with the replay. We changed this in 6.5.
NinjaTrader_Ray is offline  
Old 02-21-2008, 04:42 AM   #9
MJT
Senior Member
 
Join Date: Jun 2006
Posts: 111
Thanks: 0
Thanked 1 time in 1 post
Default Market Replay and Simulator

Should the Simulator "Delay comm. (msec)" parameter be applicable when running a replay connection?
In trying to make my replay fills more realistic I increased this value (eventually to as much as 5000) but it appears the order reaches a Working state immediately. If I run in sim mode with a live data feed, there is a significant delay while the order is in a pending state, as expected.
MJT is offline  
Old 02-21-2008, 05:27 AM   #10
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

On NT6.5 the delay options if effective. Reason: In order to achieve reproducible results on different replay speeds we had to remove this option on replay.
NinjaTrader_Dierk is offline  
Old 02-21-2008, 06:57 AM   #11
MJT
Senior Member
 
Join Date: Jun 2006
Posts: 111
Thanks: 0
Thanked 1 time in 1 post
Default

I understand the need for replay to work at faster speeds, but it is a pity that the delay cannot be used. My experience of v6.5 replay is that it is too optimistic in giving me good fills, compared to real life.

Would it be poosible to have the delay reinstated, but have it automatically disable when the replay speed is inreased above 1x ??
MJT is offline  
Old 02-21-2008, 07:31 AM   #12
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

Unfortunately not, since it's a "pick your poison" scenario. We went for the current approach since this was requested by the majority of users. Sorry...
NinjaTrader_Dierk is offline  
 

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 NinjaTrader_Josh Miscellaneous Support 68 02-27-2009 10:23 AM
NT 6.5.0.4 Market Replay Bug ATI user Historical NinjaTrader 6.5 Beta Threads 1 11-28-2007 11:06 PM
Market data for market replay function grd974 Miscellaneous Support 1 05-26-2007 09:02 AM
Market replay saroj Miscellaneous Support 6 06-13-2006 09:16 AM
Market Replay Brightstar Charting 7 12-16-2005 10:31 PM


All times are GMT -6. The time now is 06:34 PM.