diff --git a/backtest-config.pl b/backtest-config.pl index 7932705..ca6685f 100644 --- a/backtest-config.pl +++ b/backtest-config.pl @@ -91,7 +91,7 @@ # Use TOML strat's config files instead JSON? $use_toml_files = 'yes'; -$toml_directory = 'config/strategies/'; +$toml_directory = 'config/strategies'; # Do you need Gekko's log files in log directory? $keep_logs = 'no'; diff --git a/backtest.pl b/backtest.pl index d2aec07..bfdee48 100644 --- a/backtest.pl +++ b/backtest.pl @@ -870,7 +870,7 @@ sub toepoch { # Strat conf manipulation if ($use_toml_files eq 'yes') { foreach $strat (@strategies) { - my @file_list = ; + my @file_list = <$toml_directory/$strat.*>; my $substitute; if (@file_list) { open(my $fh, '<:encoding(UTF-8)', $file_list[0]) or die "cannot open file $_[0]";