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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
599 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
344 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
558 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
557 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment