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 geddyisodin, 04-25-2024, 05:20 AM
        8 responses
        60 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by jxs_xrj, 01-12-2020, 09:49 AM
        4 responses
        3,287 views
        1 like
        Last Post jgualdronc  
        Started by Option Whisperer, Today, 09:55 AM
        0 responses
        5 views
        0 likes
        Last Post Option Whisperer  
        Started by halgo_boulder, 04-20-2024, 08:44 AM
        2 responses
        22 views
        0 likes
        Last Post halgo_boulder  
        Started by mishhh, 05-25-2010, 08:54 AM
        19 responses
        6,189 views
        0 likes
        Last Post rene69851  
        Working...
        X