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 Lele2k24, Today, 01:32 PM
        4 responses
        8 views
        0 likes
        Last Post Lele2k24  
        Started by Sebastian - TwinPeaks, Today, 01:31 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by tonynt, Today, 01:48 PM
        1 response
        2 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by eladlevi, Today, 11:02 AM
        4 responses
        23 views
        0 likes
        Last Post eladlevi  
        Started by synthhokie, Today, 10:24 AM
        5 responses
        15 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X