<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Error Q20 output missing when submitting]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">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.<br />
See also the value error below.<br />
What should i do to fix this? Thanks for the help!</p>
<p dir="auto">Best regards</p>
<hr />
<p dir="auto">ValueError                                Traceback (most recent call last)<br />
&lt;ipython-input-1-3ef89a333fa7&gt; in &lt;module&gt;<br />
119 weights = qnout.clean(weights, data, "stocks_nasdaq100")<br />
120<br />
--&gt; 121 stats = qnstats.calc_stat(data, weights.sel(time=slice("2006-01-01", None)))<br />
122 display(stats.to_pandas().tail())<br />
123 plot_performance(stats)</p>
<p dir="auto">/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)<br />
686         roll_slippage_factor = get_default_slippage(data)<br />
687<br />
--&gt; 688     missed_dates = find_missed_dates(portfolio_history, data)<br />
689     if len(missed_dates) &gt; 0:<br />
690         log_err("WARNING: some dates are missed in the portfolio_history")</p>
<p dir="auto">/usr/local/lib/python3.7/site-packages/qnt/stats.py in find_missed_dates(output, data)<br />
550     out_ts = np.sort(output.coords[ds.TIME].values)<br />
551<br />
--&gt; 552     min_out_ts = min(out_ts)<br />
553<br />
554     data_ts = data.where(data.time &gt;= min_out_ts)</p>
<p dir="auto">ValueError: min() arg is an empty sequence</p>
]]></description><link>http://quantiacs.com/community/topic/411/error-q20-output-missing-when-submitting</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 04:20:26 GMT</lastBuildDate><atom:link href="http://quantiacs.com/community/topic/411.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 21 Jul 2023 10:35:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error Q20 output missing when submitting on Sun, 13 Aug 2023 10:54:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/72">@theflyingdutchman</a></p>
<p dir="auto">it can help you. See topic <strong>3) Not enough bid information.</strong></p>
<p dir="auto"><a href="https://github.com/quantiacs/strategy-q20-nasdaq100-quick-start/blob/master/strategy.ipynb" rel="nofollow ugc">https://github.com/quantiacs/strategy-q20-nasdaq100-quick-start/blob/master/strategy.ipynb</a></p>
<pre><code class="language-python">def get_enough_bid_for(data_, weights_):
    time_traded = weights_.time[abs(weights_).fillna(0).sum('asset') &gt; 0]
    is_strategy_traded = len(time_traded)
    if is_strategy_traded:
        return xr.where(weights_.time &lt; time_traded.min(), data_.sel(field="is_liquid"), weights_)
    return weights_


weights_new = get_enough_bid_for(data, weights)
weights_new = weights_new.sel(time=slice("2006-01-01",None))
</code></pre>
]]></description><link>http://quantiacs.com/community/post/1211</link><guid isPermaLink="true">http://quantiacs.com/community/post/1211</guid><dc:creator><![CDATA[Vyacheslav_B]]></dc:creator><pubDate>Sun, 13 Aug 2023 10:54:49 GMT</pubDate></item><item><title><![CDATA[Reply to Error Q20 output missing when submitting on Fri, 11 Aug 2023 15:54:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/72">@theflyingdutchman</a> ok, thanks for the hint. It is the first contest using fundamental data, sorry for the issue.</p>
<p dir="auto">We will see, but probably it is too late for changing the rules.</p>
<p dir="auto">One pragmatic solution would be to use a "base" strategy until 2013, without fundamental data, until 2013, in a way that the Sharpe ratio is still larger than 1. Is it doable?</p>
]]></description><link>http://quantiacs.com/community/post/1203</link><guid isPermaLink="true">http://quantiacs.com/community/post/1203</guid><dc:creator><![CDATA[support]]></dc:creator><pubDate>Fri, 11 Aug 2023 15:54:42 GMT</pubDate></item><item><title><![CDATA[Reply to Error Q20 output missing when submitting on Fri, 11 Aug 2023 12:40:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/5">@vyacheslav_b</a> The proposed solution worked, I was able to submit the strategy. Thanks for your help.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/12">@support</a> The strategy was still declined since there is no fundamental data before 1-1-2013. This strategy worked with fundamental data. Number is # 14333092. Wouldn't it be fair to shorten the required trade period for strategies based on fundamental data for Q20? Otherwise I won't be able to submit.</p>
]]></description><link>http://quantiacs.com/community/post/1200</link><guid isPermaLink="true">http://quantiacs.com/community/post/1200</guid><dc:creator><![CDATA[TheFlyingDutchman]]></dc:creator><pubDate>Fri, 11 Aug 2023 12:40:53 GMT</pubDate></item><item><title><![CDATA[Reply to Error Q20 output missing when submitting on Tue, 08 Aug 2023 13:19:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/72">@theflyingdutchman</a> hi, did you check for potential forward looking? For example using global means of indicators which are looking into the future?</p>
<p dir="auto">Note that trades are taken at the OPEN, and you cannot use for example the CLOSE price of the same day.</p>
<p dir="auto">In this case, you could see a result in the notebook but another one after submission, as the backtester used after submission will remove by brute force future data and produce a result which does not look into the future.</p>
]]></description><link>http://quantiacs.com/community/post/1189</link><guid isPermaLink="true">http://quantiacs.com/community/post/1189</guid><dc:creator><![CDATA[support]]></dc:creator><pubDate>Tue, 08 Aug 2023 13:19:20 GMT</pubDate></item><item><title><![CDATA[Reply to Error Q20 output missing when submitting on Tue, 08 Aug 2023 13:17:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/72">@theflyingdutchman</a></p>
<p dir="auto">Hello. try to execute in a separate cell the code which saves weights. This should help.<br />
As far as I understand, this can happen when there is no data for the first day.<br />
The cell where the error occurs will be ignored and the next one will be executed.</p>
<pre><code class="language-python">qnout.check(weights, data, "stocks_nasdaq100")
qnout.write(weights)
</code></pre>
]]></description><link>http://quantiacs.com/community/post/1188</link><guid isPermaLink="true">http://quantiacs.com/community/post/1188</guid><dc:creator><![CDATA[Vyacheslav_B]]></dc:creator><pubDate>Tue, 08 Aug 2023 13:17:37 GMT</pubDate></item><item><title><![CDATA[Reply to Error Q20 output missing when submitting on Sat, 05 Aug 2023 06:39:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/12">@support</a> ok, thanks. Unfortunately I run into an error in the submitting process with another strategy as well. Could you please look into submit Number # 14265154? The precheck and backtest show no errors, but after submit the strategy shows inverted SR and weights. I am not sure whether this is related to the otter submit issue. Thanks for investigating these issues.</p>
]]></description><link>http://quantiacs.com/community/post/1184</link><guid isPermaLink="true">http://quantiacs.com/community/post/1184</guid><dc:creator><![CDATA[TheFlyingDutchman]]></dc:creator><pubDate>Sat, 05 Aug 2023 06:39:57 GMT</pubDate></item><item><title><![CDATA[Reply to Error Q20 output missing when submitting on Fri, 04 Aug 2023 11:46:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/72">@theflyingdutchman</a> ok, thanks, we are checking the logs. It looks ok when run in a standard notebook container. Maybe it meets some corner case we did not think about when implementing submission filter. As soon as we find the reason, we will let you know. Sorry for the problem.</p>
]]></description><link>http://quantiacs.com/community/post/1181</link><guid isPermaLink="true">http://quantiacs.com/community/post/1181</guid><dc:creator><![CDATA[support]]></dc:creator><pubDate>Fri, 04 Aug 2023 11:46:19 GMT</pubDate></item><item><title><![CDATA[Reply to Error Q20 output missing when submitting on Sun, 30 Jul 2023 17:54:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/12">@support</a>  The number of the strategy submit attempt that is filterde out is # 14149002. What additional info should I send?</p>
]]></description><link>http://quantiacs.com/community/post/1175</link><guid isPermaLink="true">http://quantiacs.com/community/post/1175</guid><dc:creator><![CDATA[TheFlyingDutchman]]></dc:creator><pubDate>Sun, 30 Jul 2023 17:54:31 GMT</pubDate></item><item><title><![CDATA[Reply to Error Q20 output missing when submitting on Tue, 25 Jul 2023 08:28:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/72">@theflyingdutchman</a> Hi, it looks like you are getting some corner case. Can you send some more detail?</p>
]]></description><link>http://quantiacs.com/community/post/1169</link><guid isPermaLink="true">http://quantiacs.com/community/post/1169</guid><dc:creator><![CDATA[support]]></dc:creator><pubDate>Tue, 25 Jul 2023 08:28:47 GMT</pubDate></item></channel></rss>