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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    45 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X