Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Conversion trade report
Collapse
X
-
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.
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.
-
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:
-
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:
-
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
DavidTags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Atticus20, Today, 07:27 AM
|
0 responses
1 view
0 likes
|
Last Post
by Atticus20
Today, 07:27 AM
|
||
Started by ninza33, Today, 07:16 AM
|
0 responses
3 views
0 likes
|
Last Post
by ninza33
Today, 07:16 AM
|
||
Started by linkcou, Today, 07:01 AM
|
0 responses
7 views
0 likes
|
Last Post
by linkcou
Today, 07:01 AM
|
||
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
63 views
0 likes
|
Last Post Today, 06:25 AM | ||
Started by volIQ, 03-27-2024, 04:28 PM
|
3 responses
21 views
0 likes
|
Last Post
by RJay
Today, 05:41 AM
|
Leave a comment: