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 CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
58 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
34 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
195 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
359 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
281 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
Comment