Skip to content

Commit

Permalink
strat settings csv fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xFFFFF committed Apr 28, 2018
1 parent 920c039 commit c744320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backtest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1179,8 +1179,9 @@ sub toepoch {
$gconfig =~ s/}(?=\nconfig.performanceAnalyzer)/}\n$stratconfig{$stratn}/m;
my @strat = $gconfig =~ /(?<=config.tutajbylazmienna = \{)(.*?)(?=};)/s;
my $stratcvs = 'NA';

if (length $stratconfig{$stratn} > 3) {
my $stratcvs = $stratconfig{$stratn};
$stratcvs = $stratconfig{$stratn};
my $toml;
$stratcvs =~ s/config..*= //g;
$stratcvs = &convert_json_toml($stratcvs);
Expand All @@ -1192,7 +1193,6 @@ sub toepoch {
$stratcvs =~ s/'//;
}
#$stratcvs =~ s/$/"/;

$strat[0] =~ s/[\n\t]/ /g;
$strat[0] =~ s/ / /g;
$strat[0] =~ s/^\s+//;
Expand Down

0 comments on commit c744320

Please sign in to comment.