![]() |
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Feb 2010
Posts: 190
Thanks: 0
Thanked 0 times in 0 posts
|
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 ...) Code:
ChangeOrder(pt, quant, newptPrice, 0); 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.
|
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Yes, historical data will fill you at the limit price. Suggest you try using the liberal fill algorithm.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Feb 2010
Posts: 190
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks! I see. Rtfm to me I guess :-) ...
|
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
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 |