Hello,

I do keep getting an error when submitting a strategy in the Q20 competition. The output is missing. The write output line is include in my strategy. But it seems unable to write the weights.

See also the value error below.

What should i do to fix this? Thanks for the help!

Best regards

ValueError Traceback (most recent call last)

<ipython-input-1-3ef89a333fa7> in <module>

119 weights = qnout.clean(weights, data, "stocks_nasdaq100")

120

--> 121 stats = qnstats.calc_stat(data, weights.sel(time=slice("2006-01-01", None)))

122 display(stats.to_pandas().tail())

123 plot_performance(stats)

/usr/local/lib/python3.7/site-packages/qnt/stats.py in calc_stat(data, portfolio_history, slippage_factor, roll_slippage_factor, min_periods, max_periods, per_asset, points_per_year)

686 roll_slippage_factor = get_default_slippage(data)

687

--> 688 missed_dates = find_missed_dates(portfolio_history, data)

689 if len(missed_dates) > 0:

690 log_err("WARNING: some dates are missed in the portfolio_history")

/usr/local/lib/python3.7/site-packages/qnt/stats.py in find_missed_dates(output, data)

550 out_ts = np.sort(output.coords[ds.TIME].values)

551

--> 552 min_out_ts = min(out_ts)

553

554 data_ts = data.where(data.time >= min_out_ts)

ValueError: min() arg is an empty sequence