NinjaTrader Support Forum  

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 09-20-2010, 03:01 AM   #1
SMuhr
Member
 
Join Date: Dec 2009
Posts: 87
Thanks: 0
Thanked 0 times in 0 posts
Default MarketReplay Vs Live

Good morning,

I am running the same strategy with the same parameter in Live (AMP) and I replayed it with MarketReplay.

MarketReplay : Up window
Real Time Data Feed : Down window



The problem is that I do not have the same entry signal... Why ?
MarketReplay buy at 6249.5 and Live at 6251.0.
It is wired because the entry signal in live chart is out of the candle...

What can I do to have the same entry signal in MarketReplay and Live ?

Regards,
S
Last edited by SMuhr; 09-20-2010 at 03:57 AM.
SMuhr is offline  
Reply With Quote
Old 09-20-2010, 04:35 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,555
Thanks: 261
Thanked 1,013 times in 994 posts
Default

SMuhr, what entry order type are you using here? Although Market Replay and Live results are normally close togehter, this is still not an exact process and different fills can and do occur as you're trading in a live market environment.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 09-20-2010, 04:44 AM   #3
SMuhr
Member
 
Join Date: Dec 2009
Posts: 87
Thanks: 0
Thanked 0 times in 0 posts
Default

I use EnterLong() EnterShort() to place order.
When I use MarketReplay, there are no delay ? (Exchange & execution)

Thank you,
S
SMuhr is offline  
Reply With Quote
Old 09-20-2010, 05:08 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,555
Thanks: 261
Thanked 1,013 times in 994 posts
Default

With Market orders the fill 'outside' the bar is entirely possible - you can set delay's for your Market Replay testing under Tools > Options > Simulator.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 09-20-2010, 05:13 AM   #5
SMuhr
Member
 
Join Date: Dec 2009
Posts: 87
Thanks: 0
Thanked 0 times in 0 posts
Default

On the NT documentation it's written :

Quote:
*Delays are not used when connected to a Market Replay
http://www.ninjatrader.com/support/h...ulator_tab.htm

I suppose that I have a such difference because between MarketReplay and Live Feed because of the simulator delay.
SMuhr is offline  
Reply With Quote
Old 09-20-2010, 06:40 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,555
Thanks: 261
Thanked 1,013 times in 994 posts
Default

Sorry SMuhr - you're correct - those are ineffective in replay. This will contribute to the differences you've seen.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 09-20-2010, 07:04 AM   #7
SMuhr
Member
 
Join Date: Dec 2009
Posts: 87
Thanks: 0
Thanked 0 times in 0 posts
Default

Is there a workound like directly coding a delay on the Strategy?

Thx
SMuhr is offline  
Reply With Quote
Old 09-20-2010, 07:10 AM   #8
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,555
Thanks: 261
Thanked 1,013 times in 994 posts
Default

Hmm - to extra 'stress test' your strategy you could for example submit the entry simply one 30 tick bar later and see how it's holding up then.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 09-20-2010, 07:17 AM   #9
SMuhr
Member
 
Join Date: Dec 2009
Posts: 87
Thanks: 0
Thanked 0 times in 0 posts
Default

Why not
Thank you !!
SMuhr 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
Crash during MarketReplay SMuhr Version 7 Beta General Questions & Bug Reports 1 09-13-2010 06:13 AM
OnStartUp + MarketReplay cls71 Version 7 Beta General Questions & Bug Reports 3 07-19-2010 09:45 AM
older MarketReplay data zweistein Version 7 Beta General Questions & Bug Reports 1 02-15-2010 10:35 AM
MarketReplay vs SessionTemplate ATI user Version 7 Beta General Questions & Bug Reports 5 11-30-2009 12:23 PM
Settrailstop not working in MarketReplay ? kissandfly General Programming 2 12-17-2008 04:18 PM


All times are GMT -6. The time now is 09:19 PM.