Skip to content

Commit

Permalink
Update strategy.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
femtotrader authored Apr 24, 2018
1 parent d9600fa commit f8de431
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/strategy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function optimize(strat::Strategy; samples::Int=0, seed::Int=0, verbose::Bool=tr
else
samples = n_runs
end
combos = get_param_combos(strat.indicator.paramset, n_runs)[idx_samples,:]
combos = get_param_combos(strat.indicator.paramset, n_runs=n_runs)[idx_samples,:]
result = zeros(samples)
for (run, combo) in enumerate(idx_samples)
verbose ? println("Run $run/$samples") : nothing
Expand All @@ -137,7 +137,7 @@ function optimize!(strat::Strategy; samples::Int=0, seed::Int=0, verbose::Bool=t
else
samples = n_runs
end
combos = get_param_combos(strat.indicator.paramset, n_runs)[idx_samples,:]
combos = get_param_combos(strat.indicator.paramset, n_runs=n_runs)[idx_samples,:]
strat.results.optimization = zeros(samples,1)
for (run, combo) in enumerate(EachRow(combos))
verbose ? println("Run $run/$samples") : nothing
Expand Down

0 comments on commit f8de431

Please sign in to comment.