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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        672 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        577 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X