• 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 Bouzayen, Yesterday, 08:31 PM
        0 responses
        13 views
        0 likes
        Last Post Bouzayen  
        Started by IanC28, 03-27-2020, 10:20 AM
        6 responses
        30 views
        0 likes
        Last Post jim1234
        by jim1234
         
        Started by aramtrader, 04-01-2020, 03:05 PM
        7 responses
        40 views
        0 likes
        Last Post woodie1
        by woodie1
         
        Started by renehtx, Yesterday, 03:51 PM
        2 responses
        16 views
        0 likes
        Last Post renehtx
        by renehtx
         
        Started by eidog2020, Yesterday, 03:31 PM
        0 responses
        8 views
        0 likes
        Last Post eidog2020  
        Working...
        X