I was checking this: SystemPerformance.AllTrades.TradesPerformance.Curr ency, but looks like this only works in a Strategy not in an Indicator, so I wonder if I can get the pnl currency value in another way. Thank you.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Get The Pnl Value (currency value in Indicator)
Collapse
X
-
Get The Pnl Value (currency value in Indicator)
Hello I am trying to get the Value of the Pnl, when I am executing a trade, I mean, I want to see the value of the Currency position because I am developing a kind of currency exchange, For example, I Input the value of the USD in México in a Textbox and with a Label in the bar I want to see the Pnl currency value in Mexican pesos, I am developed an Indicator to hook a TextBox in the main bar:
I was checking this: SystemPerformance.AllTrades.TradesPerformance.Curr ency, but looks like this only works in a Strategy not in an Indicator, so I wonder if I can get the pnl currency value in another way. Thank you.Last edited by icebergdelphi; 03-26-2024, 07:59 AM.Tags: None
-
Hello icebergdelphi,
Because of the color of the chart toolbar I am seeing this is for NinjaTrader 8 Desktop and not for NinjaTrader 7.
I have moved this thread from the NinjaTrader 7 > General Development section of the forums to the NinjaTrader Desktop > Indicator Development section of the forums.
From an indicator the Addon approach would be used, fetching an account, and using <Account>.Get() with the AccountItem.RealizedPnL or adding an event handler to the <Account>.AccountItemUpdate event.
You would need to convert the pnl from us dollars to pesos with custom logic. (i.e. multiply by the conversion rate)
You may find this User App Share script helpful.
Chelsea B.NinjaTrader Customer Service
-
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
214 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
130 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
146 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
230 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
192 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Is what I want.
Comment