is it okay to have short and longs in the same strategy?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
error message on entry ()
Collapse
X
-
error message on entry ()
i recieved an error message this morning. i'm not sure what it means.
is it okay to have short and longs in the same strategy?Tags: None
-
Hello SteveReiza,
Thank you for your inquiry.
From the Managed Approach help guide page:
Methods that generate orders to enter a position will be ignored if:- A position is open and an order submitted by a non market order exit method (ExitLongLimit() for example) is active and the order is used to open a position in the opposite direction
- A position is open and an order submitted by a set method (SetStopLoss() for example) is active and the order is used to open a position in the opposite direction
- A position is open and two or more Entry methods to reverse the position are entered together. In this case the second Entry order will be ignored.
- The strategy position is flat and an order submitted by an enter method (EnterLongLimit() for example) is active and the order is used to open a position in the opposite direction
- The entry signal name is not unique
You should also review the scenarios listed above and compare them to your script to ensure that the strategy is not falling into one of these scenarios.
Managed Approach Internal Order Handling Rules: https://ninjatrader.com/support/helpGuides/nt8/managed_approach.htm
It is okay to have a strategy use both EnterLong() and EnterShort(), if this is what you mean. The way you use them must follow the internal order handling rules.
Please let me know if you have any other questions.
-
thanks for the reply. i do have all my entries in the strategy as enter long limit. then i have the limit price as the ask. do you think that is what' s causing it? putting the ask +1 tick will that fix it?
Comment
-
Hello,
Without seeing the entirety of the script I would not be able to say for certain what exactly in your code is against the Managed Approach Internal Order Handling Rules. This error message would only be caused if your strategy is violating one of the rules mentioned in my previous post.
I recommend debugging the script possibly using prints and enabling TraceOrders. TraceOrders will let us know if any orders are being ignored and not being submitted when the condition to place the orders is evaluating as true. You can alsoadd prints to the script that print out the Signal Name of the Entry orders to ensure the Signal Names are unique.
Comment
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
30 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
124 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
64 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
41 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment