If not can it be done manually without restarting the strategy?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Increase quantities/entries of contracts programmatically
Collapse
X
-
Increase quantities/entries of contracts programmatically
Is there way to increase the number of ES contracts while a startegy is running programmatically? perhaps based on account balance or another logic?
If not can it be done manually without restarting the strategy?Tags: None
-
This is great thanks. I assume this can change quantity at runtime and is checked before an order is placed.
Can this be done in startegy builder? Without unlocking code?
The other option - Can it be done manually without restarting strategy?
Comment
-
Hi, thanks for the follow up.
The quantity can not be changed from the user interface after you enable it. The quantity would need to be calculated within the strategy code. The account data can not be accessed through the strategy builder, and the builder would not be able to dynamically change the quantity of the order, so the strategy will need to be unlocked to complete this.
Best regards,
-ChrisL
Comment
-
Understood. Thank you very much. Still learning NT. Concern was bars required before trading starts if I restart startegy. Not sure if it will keep waiting for 20 bars for example.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
566 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
330 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
547 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
548 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment