Skip to content

Commit

Permalink
wins is the total minus the losses, not the total (DeviaVir#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophv authored and DeviaVir committed Feb 2, 2018
1 parent c906dfa commit cf7572f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/genetic_backtester/darwin.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function processOutput (output,taskStrategyName, pheno) {
buyHold = simulationResults.simresults.buy_hold
vsBuyHold = simulationResults.simresults.vs_buy_hold
wlMatch = (simulationResults.simresults.total_sells - simulationResults.simresults.total_losses) +'/'+ simulationResults.simresults.total_losses
wins = simulationResults.simresults.total_sells
wins = simulationResults.simresults.total_sells - simulationResults.simresults.total_losses
losses = simulationResults.simresults.total_losses
errorRate = simulationResults.simresults.total_losses / simulationResults.simresults.total_sells
days = parseInt(simulationResults.days)
Expand Down

0 comments on commit cf7572f

Please sign in to comment.