Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Converting Account Currency

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

    Converting Account Currency

    Hello Support,

    I would like to start by thanking you for the great support you guys are providing.

    Today i have a question regarding the Currency conversion of the account cash value. My IB account is in EUR and i want to convert the cash value that i get from there to USD and then use it in my order volume calculations. Is there a direct way to go about this?

    I tried using this:

    Code:
    Account.GetAccountValue(AccountItem.CashValue, Currency.UsDollar).Value;
    But it doesn't work. Do i need to write custom code to convert the cash value based on the current FOREX value for the pair EURUSD?

    Please advise.

    Thanks

    #2
    Hello Master.Aurora,

    Thank you for your post.

    There is no method in NinjaScript to convert the currency. However, you may find what you are looking for at the following link: http://www.ninjatrader.com/support/f...ad.php?t=45752

    Please let me know if you have any questions.

    Comment


      #3
      Understood.

      Is there a way to find out the account base currency?

      Comment


        #4
        Hello Master.Aurora,

        Thank you for your response.

        There is no supported method to pull the base currency from the account.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        61 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X