• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Conversion trade report

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

    Conversion trade report

    Hi guys, thanks for the great support on this forum! You're doing an amazing job.

    When running a standard backtest on the EUR/GBP i see that the profits in the trade report are expressed in dollars. So a conversion between the currencies must has taken place behind the screens. I'm wondering if I could use this conversion in my strategy code? For example I would like to know if the entry price is X GBP what the equivalent USD value would be.

    Kind regards
    David

    #2
    Hello,

    Thank you for the post.

    I am unaware of any specific conversion method where you could pass in a value and retrieve a converted value. This is likely something you would need to make your own method for.

    The AccountItems specifically have a method which can return values depending on the Currency supplied to the method, but this would not allow for random conversions like an entry price.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hi Jesse, thanks for the feedback. Does this mean I have to rely on a third party API or something which could provide me the conversion rates or is there something inside Ninjatrader that I could use?

      Comment


        #4
        Hello,

        Generally, you would add an additional series for the prices you need. You could then pull prices from the second series when conversions are needed at the current price of that instrument.

        https://ninjatrader.com/support/help...=adddataseries

        Using the price from the two instruments you could calculate the conversion rate or do other math as needed to figure out prices or quantities.


        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NT-Roland, Today, 04:36 PM
        0 responses
        2 views
        0 likes
        Last Post NT-Roland  
        Started by Newtrader101, Today, 03:40 PM
        2 responses
        10 views
        0 likes
        Last Post Newtrader101  
        Started by Branpo, Today, 02:58 PM
        2 responses
        7 views
        0 likes
        Last Post Branpo
        by Branpo
         
        Started by sdauteuil, Today, 02:09 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by AMATX, Today, 02:19 PM
        2 responses
        11 views
        0 likes
        Last Post AMATX
        by AMATX
         
        Working...
        X