Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to access broker account fields?

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

    How to access broker account fields?

    Hi!

    Can you do something similar in Ninja Script (NT7) to access generic broker account fields?

    BrokerInfo bInfo = DataManager.GetBrokerInfo(provider);
    BrokerAccount bAccount = bInfo.Accounts[account];
    double cushion = Convert.ToDouble(bAccount.Fields["Cushion"].Value);


    Thanks!

    #2
    Hi biamplified,

    The supported fields available for access to account information are...
    AccountItem.BuyingPower
    AccountItem.CashValue
    AccountItem.RealizedProfitLoss

    by calling GetAccountValue()

    More info at - http://www.ninjatrader.com/support/h...countvalue.htm
    TimNinjaTrader Customer Service

    Comment


      #3
      Hi Tim,

      thanks for your response!

      In NT 7, I can also see the following AccountItems:
      ExcessEquity, InitialMargin, InitialMarginOvernight, MaintenanceMargin, MaintenanceMarginOvernight, NetLiquidation, NetLiquidationByCurrency, TotalCashBalance, Unknown

      Could you please add "Cushion", too?

      Regards,
      Oliver

      Btw: What is AccountItem.Unknown? :-)
      Last edited by biamplified; 06-28-2010, 10:05 AM.

      Comment


        #4
        Hi biamplified,

        Unfortunately, access to those are not supported.
        TimNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        104 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        52 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        34 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        38 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        74 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X