Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
ADD order instead of UPDATE
Collapse
X
-
Hello Uregon,
Thanks for your post.
I am not sure I fully understand your question. Please provide a brief description explaining your goal.
Are you wanting to have the strategy place a limit order that is waiting to fill?
I look forward to assisting further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
NinjaTrader_BrandonH Hi Brandon, well Ninjatrader update the position size each new trade coming in. And I´d looking forward to implement in my strategy that all next coming trades are in ADD mode.
Comment
-
Hello Uregon,
Thanks for your note.
I am still not understanding exactly what you are wanting to accomplish.
Please provide a brief description detailing exactly what you want the strategy to do.
When you say 'ADD mode', what are you referring to?
Is the screenshot you shared showing prints in the Output window from a NinjaScript strategy? If so, what exactly are you printing out in your Print() statement? How is the Print() statement being called?
When an order is submitted and filled, NinjaTrader will update strategy position and account position information for the strategy that placed the order and the account that the order was placed on.
Are you trying to develop a NinjaScript strategy that places a certain order, such as a limit order?
I look forward to assisting further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
NinjaTrader_BrandonH
When I place an order the NT log shows:
Instrument='@NAS100' Account='Sim101' Average price=12525.99 Quantity=1 Market position=Long Operation=Operation_Add
For the first trade. And when a second trade is coming in, NT switch to update the position instead of add:
Instrument='@NAS100' Account='Sim101' Average price=12525.865 Quantity=2 Market position=Long Operation=Update
I´d like to have Operation_Add onevery new trade is coming in.
Can I set it up in the NT strategy?
As Example:
EnterLong(1, "") Operation_Add;
Is there any code like this?
If you can find it out and help me with it, you solved my last case for my business and I´m very very thankful for that! <3
Thank you Brandon
Comment
-
Hello Uregon,
Thanks for your note.
I understand that you are looking at the Position's 'Operation' information in the Log tab of the Control Center.
It would not be possible to control the position's 'Operation' information in a NinjaScript.
When you are in a flat position for a certain instrument and an order is placed on that instrument, the 'Operation' you are referring to will be 'Add' in the Log tab of the Control Center.
When you are already in a position, say a 1 long position, and another long order is placed, the 'Operation' will be 'Update' since it is updating the position quantity to 2 long.
Say you are in a position of 1 Long and place a sell order or close the long position, the 'Operation' will be 'Remove' since you are going from a 1 Long position to a Flat position.
Let us know if we may further assist.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
50 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
126 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment