![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2007
Location: , ,
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
|
I am using the SetProfitTarget function to set profit targets for my entries. Is it possible that I can set the order to execute as a market order instead of a limit order at the profit target using SetProfitTarget? I can do this manually by having the system detect when the profit target is hit then send a market order to exit, but being able to use SetProfitTarget would make things much easier.
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
>> Is it possible that I can set the order to execute as a market order instead of a limit order at the profit target using SetProfitTarget?
Unfortunately this is not supported.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2008
Location: Chicago
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
|
Just keep polling in the update loop for the price on every tick in NinjaSript. When you see the price you want on the bid or ask, just exit with a market order.
TW |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Converting to Market Orders | PHOLAN | Automated Trading | 12 | 06-01-2008 03:12 PM |
| Market and limit orders | Infinity | SuperDOM and other Order Entry Windows | 1 | 04-01-2008 01:53 PM |
| Question about Stop Market orders | uptick | Miscellaneous Support | 0 | 07-13-2005 07:52 AM |
| Market Orders in DOM Window | Savage1701 | Miscellaneous Support | 1 | 04-11-2005 07:20 AM |
| Market at time orders | ddunne82 | Miscellaneous Support | 3 | 04-05-2005 06:02 AM |