Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Prevent automated strategies to place order when initial margin req not met

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

    Prevent automated strategies to place order when initial margin req not met

    Hi,

    I am trying to prevent my automated strategies to place orders when initial margin requirements are not met.

    I am using NinjaTrader Brokerage and Continuum.

    When I use GetAccountValue(AccountItem.CashValue), it does not take into account the margin that is used by the currently open positions.
    Since GetAccountValue(AccountItem.BuyingPower) returns always 0 (not supported), I don't find a way to achieve this.

    Does anyone know how this can be solved ?

    #2
    Hello Pvtrade,

    Thank you for your inquiry.

    Unfortunately, initial margin information is not provided by Continuum connections.

    With Continuum, these values are provided (values exclude commissions):
    • Cash Value
    • Realized PnL


    For more information about what information is provided by each connectivity provider, please take a look at this link from the NinjaTrader help guide: http://ninjatrader.com/support/helpG...counts_tab.htm

    As this is not provided, the initial margin requirement would need to be calculated manually.

    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    571 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    330 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    548 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    549 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X