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 frankthearm, Today, 09:08 AM
|
7 responses
29 views
0 likes
|
Last Post Today, 01:30 PM | ||
Started by NRITV, Today, 01:15 PM
|
1 response
5 views
0 likes
|
Last Post Today, 01:25 PM | ||
Started by maybeimnotrader, Yesterday, 05:46 PM
|
5 responses
25 views
0 likes
|
Last Post Today, 01:19 PM | ||
Started by quantismo, Yesterday, 05:13 PM
|
2 responses
17 views
0 likes
|
Last Post
by quantismo
Today, 01:07 PM
|
||
Started by adeelshahzad, Today, 03:54 AM
|
5 responses
33 views
0 likes
|
Last Post Today, 11:29 AM |
Comment