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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
62 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
134 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
75 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
50 views
0 likes
|
Last Post
|
Comment