Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Strategy placed orders set LMT as exits. How to change to MKT?
Collapse
X
-
Strategy placed orders set LMT as exits. How to change to MKT?
When I make a strategy do an automated long order, it sets the profit target stop to a LMT order. Is there a way to make it a market order exit?
Tags: None
-
Hello MatthewLesko,
Thank you for your post.
If you would like to have your strategy submit a Market-If-Touched (MIT) order as seen in the screenshot provided, you could call EnterLongMIT() instead of EnterLong(). EnterLongMIT() generates a buy MIT order to enter a long position. If you are using the Strategy Builder, you would select 'Enter long position by a market-if-touched order' in the Order Management folder when creating an Action.
See the help guide documentation below for more information.
EnterLongMIT() - https://ninjatrader.com/support/help...terlongmit.htm
Let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
- Likes 1
-
Is that for entering the trade or exiting?Originally posted by NinjaTrader_BrandonH View PostHello MatthewLesko,
Thank you for your post.
If you would like to have your strategy submit a Market-If-Touched (MIT) order as seen in the screenshot provided, you could call EnterLongMIT() instead of EnterLong(). EnterLongMIT() generates a buy MIT order to enter a long position. If you are using the Strategy Builder, you would select 'Enter long position by a market-if-touched order' in the Order Management folder when creating an Action.
See the help guide documentation below for more information.
EnterLongMIT() - https://ninjatrader.com/support/help...terlongmit.htm
Let us know if we may assist further.
I think it's "SetProfitTarget" under Stops and Actions of strategy that I'm wanting to be a MIT not a LMT
Comment
-
Hello MatthewLesko,
Thank you for your note.
EnterLongMIT() would be used to enter a long position. To exit a long position with an MIT order, you would need to use ExitLongMIT().
If you would like to make SetProfitTarget() an MIT order instead of a Limit order, you would need to unlock your code from the Strategy Builder using the 'Unlock code' button and use the following syntax for SetProfitTarget(). This syntax for SetProfitTarget() allows you to specify a bool to determine if SetProfitTarget() is a MIT order. Setting the isMIT bool to true means that SetProfitTarget() would place an MIT order.
SetProfitTarget(string fromEntrySignal, CalculationMode mode, double value, bool isMIT)
See the help guide documentation below for more information about Managed Approach order methods and SetProfitTarget().
Managed Approach Order methods - https://ninjatrader.com/support/help...d_approach.htm
SetProfitTarget() - https://ninjatrader.com/support/help...ofittarget.htm
Let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
110 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
59 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
37 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
41 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
78 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment