Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 cmtjoancolmenero, Today, 02:31 PM
    2 responses
    6 views
    0 likes
    Last Post cmtjoancolmenero  
    Started by tradebot, Today, 01:25 PM
    2 responses
    8 views
    0 likes
    Last Post tradebot  
    Started by merc410, Today, 03:41 AM
    4 responses
    27 views
    0 likes
    Last Post merc410
    by merc410
     
    Started by Graci117, Yesterday, 11:40 PM
    2 responses
    18 views
    0 likes
    Last Post Graci117  
    Started by Taddypole, Today, 02:25 PM
    0 responses
    3 views
    0 likes
    Last Post Taddypole  
    Working...
    X