You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WinRate is defined as "The ratio of the number of winning days to the total number of days" or use the definition of winning aording to a close trade.
Actual Behavior
WinRate is defined as "The ratio of the number of winning trades to the total number of trades"
which is misleading because it is calculated as follows:
foreach(var pair in profitLoss){vartradeProfitLoss= pair.Value;if(tradeProfitLoss>0){totalProfit+=tradeProfitLoss/runningCapital;totalWins++;}else{totalLoss+=tradeProfitLoss/runningCapital;totalLosses++;}runningCapital+=tradeProfitLoss;}vartotalTrades=totalWins+totalLosses;WinRate=totalTrades==0?0:(decimal) totalWins /totalTrades;
Potential Solution
We can fix the docs or use WinRate, as defined in the TradeStatistics class, which takes into account closed trades (exit and entry).
EDIT: We see the same issue for LossRate, AverageWinRate and AverageLossRate.
Reproducing the Problem
N/A
Checklist
I have completely filled out this template
I have confirmed that this issue exists on the current master branch
I have confirmed that this is not a duplicate issue by searching issues
I have provided detailed steps to reproduce the issue
The text was updated successfully, but these errors were encountered:
Expected Behavior
WinRate is defined as "The ratio of the number of winning days to the total number of days" or use the definition of winning aording to a close trade.
Actual Behavior
WinRate is defined as "The ratio of the number of winning trades to the total number of trades"
which is misleading because it is calculated as follows:
Potential Solution
We can fix the docs or use WinRate, as defined in the
TradeStatistics
class, which takes into account closed trades (exit and entry).EDIT: We see the same issue for LossRate, AverageWinRate and AverageLossRate.
Reproducing the Problem
N/A
Checklist
master
branchThe text was updated successfully, but these errors were encountered: