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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    135 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X