From 15d50e504a52c3f522e6d6587bfb06f0cd32a749 Mon Sep 17 00:00:00 2001 From: bogdanbrudiu Date: Fri, 30 Nov 2018 13:20:03 +0100 Subject: [PATCH] Parsing logic for @profit update as suggested by @YuriyTigiev https://github.com/xFFFFF/Gekko-BacktestTool/issues/44#issue-362882872 --- backtest.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backtest.pl b/backtest.pl index 09febfa..98707a2 100644 --- a/backtest.pl +++ b/backtest.pl @@ -1278,7 +1278,7 @@ sub toepoch { print $fh2 join ("\n",$grun); close $fh2; } - my @profit = $grun =~ /(?<=simulated profit:\t\t )[0-9.\-][0-9.\-]* $sets[1] \((.*)(?=\%\))/; + my @profit = $grun =~ /(?<=profit:\t\t\t\t )[0-9.\-][0-9.\-]* $sets[1] \((.*)(?=\%\))/; my @yearly = $grun =~ /(?<=simulated yearly profit:\t )[0-9.\-][0-9.\-]* $sets[1] \((.*)(?=\%\))/; my @trades = $grun =~ /(?<=trades:\t\t )(.*?)(?=\n)/; my @period = $grun =~ /(?<=timespan:\t\t\t )(.*?)(?=\n)/;