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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        50 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        16 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X