Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
TradesPerformanceValues
Collapse
X
-
Hello,
The AvgProfit will output the adverage of all trades. profit in the case is not only trades that profit but trades that lose money as well. There is no paramter to seperate out only the winning trades vs the losing trades.
To do this you would need to calculate this on your own by setting up a loop and counting together all the positive PnL's and then averaging them and also counting up all the negative PnL's and then averaging them to get this value.BrettNinjaTrader Product Management
-
Actually, to anybody interested, it's simpler than that:Originally posted by NinjaTrader_Brett View PostHello,
The AvgProfit will output the adverage of all trades. profit in the case is not only trades that profit but trades that lose money as well. There is no paramter to seperate out only the winning trades vs the losing trades.
To do this you would need to calculate this on your own by setting up a loop and counting together all the positive PnL's and then averaging them and also counting up all the negative PnL's and then averaging them to get this value.
First, access:
Then, get:Code:Performance.AllTrades.LosingTrades.TradesPerformance.Currency.CumProfit
Divide the two, you can call this anytime you'd like.Code:Performance.AllTrades.LosingTrades.TradesPerformance.TotalQuantity
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
161 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
308 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
245 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
349 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment