Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Checking Account position quantity for primary instrument from within the strategy

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Checking Account position quantity for primary instrument from within the strategy

    Is there a way to do this?

    The strategy accumulates a position, and exits on certain conditions.
    Due to historical calculation the real quantity accumulated in account is often different to strategy position but the strategy would exit the strategy calculated position.

    Please don't refer me to Syncing Account Positions options here https://ninjatrader.com/support/help...g_account_posi tions.htm

    Unless, Adopt Account Position would achieve what i'm asking?
    if it is then what does this mean? can i have an example of what i would need to change/handle manually?

    "Only set to true if you have specifically programmed your strategy to be able to adopt account positions."

    thanks
    Last edited by madb123; 05-28-2024, 04:19 AM.

    #2
    Hello madb123,

    You can get the account position or quantity with PositionAccount.MarketPosition and PositionAccount.Quantity.

    Below is a link to the help guide.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    32 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    195 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    359 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    278 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X