Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
SubmitOrderUnmanaged from an Indicator
Collapse
X
-
-
I know this is an old thread, but I'm struggling with contract limits when placing orders like this via an indicator. It seems like Ninja incorrectly calculates the number of contracts allowed. I have my own indicator with this issue, but I was able to reproduce it with the provided indicator in this thread ProfitChaseStopTrailIndicatorExample.
All you have to do is change the number of contracts to 10 in the indicator and then set the account to have a max number of 10 contracts allowed. This will cause the TP and SL to fail to be filled. This indicator is following what I understand to be the correct behavior of waiting until the market order is filled before trying to place the TP and SL orders...
Any advice would be appreciated.
Comment
-
Hello Blaze212,
The ProfitChaseStopTrailIndicatorExample was a simple example only designed to work with one contract.
If you have multiple contracts you need logic in the Account.ExecutionUpdate event handler method to change the quantity of the exit orders on each part fill of the entry.
The example below provides similar logic for a strategy of tracking part fills that could be adapted to the addon approach.
Chelsea B.NinjaTrader Customer Service
Comment
-
If I wait for the market order to be Filled then I wouldn't have to deal with any of the partially filled order logic, right?
I could just ignore the Partially Filled state, and then when Filled hits submit my bracket orders, that should eliminate any too many open contact type errors, right?
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
89 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
135 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
68 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
119 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
69 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment