Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Change position.quantity
Collapse
X
-
Change position.quantity
Hello, im running an strategy and once the position is open I want to increase the number of contracts in the possition, in the ui its as easy as click con buy or shell but I cant find how to do it in scripting. Can somebody help me about this? Thanks in advance.
Tags: None
-
Hello espacioint,
Welcome to the NinjaTrader forums!
To increase the position size after an entry has been filled, send a new order in the same direction.
The EntriesPerDirection should be increased to the total number of orders you want to submit into the position. Set this to a high number like 9999 if you want to allow are large amount entries into the same position.
Or alternatively, use unique signal names for the entries and set EntryHandling to .UniqueEntries.
Below are links to examples.
How do I set up Strategy builder to scale out of a 3 contract order? Say close 1 @ 5 ticks, close 1 @ 15 ticks and trail 1 at 25 ticks? Do you have a video
I am also including a link to a forum post with helpful resources on getting started with NinjaScript and C#.
Chelsea B.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
88 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