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 Jorge.andres.o, 09-17-2020, 06:00 PM
            2 responses
            49 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Stephen Trading, Yesterday, 10:55 AM
            1 response
            26 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Coopero, Yesterday, 12:25 PM
            2 responses
            21 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by Hyper, Yesterday, 09:56 AM
            3 responses
            21 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by bootize, Yesterday, 08:37 AM
            3 responses
            25 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X