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 Brevo, Today, 01:45 AM
        0 responses
        6 views
        0 likes
        Last Post Brevo
        by Brevo
         
        Started by aussugardefender, Today, 01:07 AM
        0 responses
        3 views
        0 likes
        Last Post aussugardefender  
        Started by pvincent, 06-23-2022, 12:53 PM
        14 responses
        242 views
        0 likes
        Last Post Nyman
        by Nyman
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        9 responses
        384 views
        1 like
        Last Post Gavini
        by Gavini
         
        Started by oviejo, Today, 12:28 AM
        0 responses
        6 views
        0 likes
        Last Post oviejo
        by oviejo
         
        Working...
        X