Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Account Class Get() method

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

    Account Class Get() method

    I am curious to know why in the syntax

    Get(AccountItem itemType, Cbi.Currency currency)

    The parameter's comments in relation to Cbi.Currency currency states that "The account currency the value should be denoted (required parameter, but has no effect on returned value)"

    It defies the purpose.
    Is NinjaTrader has the intent of implementing this functionality and if so when.

    Thank you.

    Dan

    #2
    / Evaluates to see if the account has more than $25000
    if (Account.Get(AccountItem.CashValue, Currency.UsDollar) > 25000)
    {
    // Do something;
    }

    Comment


      #3
      Hello Dan,

      The account item will be reported in the currency of your broker.

      To confirm, you are wanting functionality to convert to any currency and be able to automatically fetch the exchange rate?
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Hi Chelsea.
        Yes, for example I am to trade EURGBP to assess the number of lot I need to convert the risk calculated in GBP, so I need to convert my account in GBP to perform this task.

        Comment


          #5
          Hello Dan_D_Trader,

          I will submit your request for the development team to consider.

          Once I have a tracking ID I will post in this thread for future reference.

          In the meantime, it would be necessary to convert currency by adding the instruments to a script and using the current prices to calculate a conversion rate.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Hello Dan_D_Trader,

            This request is being tracked with ID# SFT-5039.

            As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

            Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sjsj2732, Yesterday, 04:31 AM
            0 responses
            22 views
            0 likes
            Last Post sjsj2732  
            Started by NullPointStrategies, 03-13-2026, 05:17 AM
            0 responses
            280 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            279 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            130 views
            1 like
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            90 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Working...
            X