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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
82 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
43 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
64 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
68 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
56 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment