Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 tsantospinto, 04-12-2024, 07:04 PM
            6 responses
            98 views
            0 likes
            Last Post tsantospinto  
            Started by rocketman7, Today, 02:12 AM
            5 responses
            25 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by ZenCortexReal, Today, 08:54 AM
            0 responses
            1 view
            0 likes
            Last Post ZenCortexReal  
            Started by ZenCortexReal, Today, 08:52 AM
            0 responses
            0 views
            0 likes
            Last Post ZenCortexReal  
            Started by trilliantrader, 04-18-2024, 08:16 AM
            7 responses
            28 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X