NexusFi: Find Your Edge


Home Menu

 





Multiple Orders


Discussion in NinjaTrader

Updated
    1. trending_up 1,159 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
RichSteps
Miami, FL
 
Posts: 16 since Jun 2022
Thanks Given: 0
Thanks Received: 9

Hey,

I'm having an issue and was wondering if anyone can help me.

Lets say I want to ADD to a position. Instead of adding it to the existing order - it creates a new order and messes up my average cost.

I want to combine ALL orders.

Thank you!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Warsh Rate Hike at 40%, Iran June 15 Expires Tonight at …
Prediction Markets & Event Contracts
After $87M Settles NO: Irans Nuclear Redline Sets Up the …
Prediction Markets & Event Contracts
Hormuz Surges From 14% to 26.5% Intraday as Irans Answer …
Prediction Markets & Event Contracts
Roland Garros Final Day: $3M on Zverev at 80.5% -- Leban …
Prediction Markets & Event Contracts
Thanks Mike. Godspeed.
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
8 thanks
Darmok and Jalad at Tanagra
1 thanks
  #2 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,117


RichSteps View Post
Hey,

I'm having an issue and was wondering if anyone can help me.

Lets say I want to ADD to a position. Instead of adding it to the existing order - it creates a new order and messes up my average cost.

I want to combine ALL orders.

Thank you!


I understand you wish to add to a position.

- To create that position you have sent an order to the exchange. When the order was filled that resulted in a position. At the same time the order was removed.
- When you add to that position, you send a new order to the exchange. Quite obviously, the old order cannot be modified any more, because it is already closed.

Orders are not related to your average cost. So they cannot mess it up. In case you enter a position and then add to a position, you will always get filled at at least two different prices.
Thus the resulting position needs to be calculated from from the different fill prices. This is typically done by the brokers and NinjaTrader cannot control the way the broker does it.

In short, orders are not related to how an average fill price is calculated.

What do you mean with "I want to combine all orders"? Why do you think that "combining" orders would change the average fill price?


Reply With Quote
Thanked by:




Last Updated on February 19, 2023


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts