Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
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 rhyminkevin, Today, 04:58 PM
|
1 response
29 views
0 likes
|
Last Post
by Anfedport
Today, 05:11 PM
|
||
Started by iceman2018, Today, 05:07 PM
|
0 responses
4 views
0 likes
|
Last Post
by iceman2018
Today, 05:07 PM
|
||
Started by lightsun47, Today, 03:51 PM
|
0 responses
7 views
0 likes
|
Last Post
by lightsun47
Today, 03:51 PM
|
||
Started by 00nevest, Today, 02:27 PM
|
1 response
14 views
0 likes
|
Last Post
by 00nevest
Today, 03:48 PM
|
||
Started by futtrader, 04-21-2024, 01:50 AM
|
4 responses
49 views
0 likes
|
Last Post
by futtrader
Today, 03:01 PM
|
Comment