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 llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        10 views
        0 likes
        Last Post burtoninlondon  
        Started by AaronKoRn, Yesterday, 09:49 PM
        0 responses
        15 views
        0 likes
        Last Post AaronKoRn  
        Started by carnitron, Yesterday, 08:42 PM
        0 responses
        11 views
        0 likes
        Last Post carnitron  
        Started by strategist007, Yesterday, 07:51 PM
        0 responses
        14 views
        0 likes
        Last Post strategist007  
        Working...
        X