NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 08-27-2010, 04:30 PM   #1
symphys
Senior Member
 
Join Date: Feb 2010
Posts: 190
Thanks: 0
Thanked 0 times in 0 posts
Default Limit Orders above Market are not filled with historical data

I use the UnManaged approach in my strategy and submit profit target in OnExecution with

Code:
Go long OnExecution...
pt = SubmitOrder(0, OrderAction.Sell, OrderType.Limit, quant, ptPrice ...)
If the strategy later decides to change this order it is modified by

Code:
ChangeOrder(pt, quant, newptPrice, 0);
I do not check whether newptPrice is currently above or below market, because Limit orders above will be filled at current price.
This works in SIM and MarketReplay. But for historical data it just closes the position at the newptPrice even if the market is above.
Last edited by symphys; 08-27-2010 at 05:02 PM.
symphys is offline  
Old 08-27-2010, 04:37 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

Yes, historical data will fill you at the limit price. Suggest you try using the liberal fill algorithm.
NinjaTrader_Josh is offline  
Old 08-27-2010, 04:59 PM   #3
symphys
Senior Member
 
Join Date: Feb 2010
Posts: 190
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks! I see. Rtfm to me I guess :-) ...
symphys 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
Time triggered orders (Market/Limit on Open and Market/Limit on Close) ggingembre SuperDOM and other Order Entry Windows 1 03-02-2010 10:52 AM
my limit orders immediately filled at market .? mini_me SuperDOM and other Order Entry Windows 6 05-31-2009 11:24 AM
orders filled outside of market malcolm Strategy Development 4 11-13-2008 10:53 AM
Limit orders filled at different price Richard Von SuperDOM and other Order Entry Windows 4 01-28-2008 12:02 PM
Managing partially filled limit orders EvolveK Automated Trading 1 10-30-2007 11:17 AM


All times are GMT -6. The time now is 03:44 AM.