• 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

  • Vanderbeke
    started a topic Conversion trade report

    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

  • NinjaTrader_Jesse
    replied
    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.

    Leave a comment:


  • Vanderbeke
    replied
    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?

    Leave a comment:


  • NinjaTrader_Jesse
    replied
    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.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by williamzz, Today, 03:10 PM
1 response
5 views
0 likes
Last Post NinjaTrader_Jesse  
Started by cabum, 09-25-2018, 06:46 AM
8 responses
231 views
0 likes
Last Post koganam
by koganam
 
Started by saeed, Today, 02:07 PM
6 responses
12 views
0 likes
Last Post NinjaTrader_Heath  
Started by 7robert, Today, 01:40 PM
1 response
10 views
0 likes
Last Post NinjaTrader_ChrisL  
Started by bortz, Today, 12:57 PM
3 responses
17 views
0 likes
Last Post NinjaTrader_PatrickH  
Working...
X