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 CarlTrading, 03-31-2026, 09:41 PM
        1 response
        64 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        35 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        59 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        62 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        51 views
        0 likes
        Last Post CarlTrading  
        Working...
        X