Thanks
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
Trade Profit
Collapse
X
-
Hello Kiss987,
Thank you for your note.
Is this a strategy which is opening and closing the position or are you manually trading? If strategy, how are you looking to use this information, visually for yourself or programmatically?
You could always use the trade performance tool under Control Center>New>Trade Performance, and set your desired time frame as well as "Display" to Trades, which will show your profit from the last trade relatively easily. You can read more about trade performance here,
I look forward to your reply.Last edited by NinjaTrader_AlanP; 12-17-2017, 05:37 PM.Alan P.NinjaTrader Customer Service
-
Hello Kiss987,
You could use Trade Collection to pull the previous trades PL. The following is a link to our helpguide which covers Trade Collection,
The following is a sample which demonstrates using performance,
Please let us know if you need further assistance.Alan P.NinjaTrader Customer Service
Comment
-
Hello kiss987,
Yes, you would take your profit in terms of foreign currency and convert it back to dollars using the FX rate.
For example, you have 1,000 Sterling in profit. You would take the current rate of GBP/USD, multiplied by 1000 to get your profit in dollars. For example using 1.34 GBP/USD, =1,340USD.
I wrote an indicator which when applied to say crude oil, will give you its price in foreign currency. You basically would be doing the opposite in your case, FX to USD rather than USD to FX.
Please let us know if you need further assistance.Alan P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by jaybedreamin, Today, 05:56 PM
|
0 responses
3 views
0 likes
|
Last Post
by jaybedreamin
Today, 05:56 PM
|
||
Started by DJ888, 04-16-2024, 06:09 PM
|
6 responses
18 views
0 likes
|
Last Post
by DJ888
Today, 05:12 PM
|
||
Started by Jon17, Today, 04:33 PM
|
0 responses
1 view
0 likes
|
Last Post
by Jon17
Today, 04:33 PM
|
||
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
6 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
Comment