Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Order quantities not in sync with Strategy
Collapse
X
-
Order quantities not in sync with Strategy
NinjaTrader Support, I have my order quantities explicitly defined in my strategy, however I am getting executions of 3 contracts when my strategy only indicates 2. I have the order quantity defined to be handled by the strategy but for some reason it still doesn't stay in sync. Please see my code and order executions attached:Last edited by omermirza; 08-07-2024, 08:29 AM.Tags: None
-
Hello omermirza,
The conditions you have shown are all individual conditions, in the situation where multiple conditions become true in the same update that could cause what you are seeing. You could also see additional positions if you have specified a higher entries per direction, that will allow additional entries into the same direction if one of your conditions to enter becomes true after the other had already become true.
-
Hello omermirza,
Your conditions are execution from top to bottom so every condition you have in the image will be checked in a single OnBarUpdate event. If any of those conditions become true within that same event they will submit orders because the position is still flat within that one event. To find out if that is happening you can use Print statements in your conditions to verify they are not becoming true within the same event.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
55 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
132 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|

Comment