09-05-2018, 01:24 PM
(09-04-2018, 05:50 AM)ngocven Wrote:(08-27-2018, 09:29 AM)danibeni81 Wrote:(08-27-2018, 08:57 AM)Tron2025 Wrote: Same Problem for me " I always see on the summary a PROFIT of 0.00" with Gekko 0.6.4 or 0.6.5"
I got the solution two days ago on a different forum (https://github.com/xFFFFF/Gekko-BacktestTool/issues/35) and it works for me:
You need to change in line 1280 of backtest.pl:
my @profit = $grun =~ /(?<=simulated profit:\t\t )[0-9.-][0-9.-]* $sets[1] ((.)(?=%))/;
to
my @profit = $grun =~ /(?<=profit:\t\t )[0-9.\-][0-9.\-]* $sets[1] \((.*)(?=\%\))/;
...good luck!
I edited it like you and it worked. Great, thank you very much
this patch is not working with 0.6.6 :-(