<?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[How can we have the estimation of Sharpe submitted ?]]></title><description><![CDATA[<p dir="auto">Hi, how can we know the IS Sharpe will be when develop my strategy ?</p>
<p dir="auto">For example, the backtest_ml prints Sharpe at the end, but as I know, it is the Sharpe of the last day of trading.</p>
<p dir="auto">Many strategies developed locally have Sharpe &gt; 1.0 but when submitted are filtered by IS Sharpe.</p>
]]></description><link>http://quantiacs.com/community/topic/551/how-can-we-have-the-estimation-of-sharpe-submitted</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 19:18:37 GMT</lastBuildDate><atom:link href="http://quantiacs.com/community/topic/551.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 31 Mar 2024 08:01:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can we have the estimation of Sharpe submitted ? on Mon, 01 Apr 2024 08:33:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/3364">@multi_byte-wildebeest</a> Hello.</p>
<p dir="auto">How to get the Sharpe Ratio is in the Quick Start template.<br />
<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">import qnt.stats as qnstats


def get_sharpe(market_data, weights):
    rr = qnstats.calc_relative_return(market_data, weights)
    sharpe = qnstats.calc_sharpe_ratio_annualized(rr).values[-1]
    return sharpe


sharpe = get_sharpe(data, weights)  # weights.sel(time=slice("2006-01-01",None))
</code></pre>
<p dir="auto">or</p>
<pre><code class="language-python">import qnt.output as qnout

qnout.check(weights, data, "stocks_nasdaq100")
</code></pre>
<p dir="auto">or</p>
<pre><code class="language-python">stat = qnstats.calc_stat(data, weights)
display(stat.to_pandas().tail())
</code></pre>
<p dir="auto">or</p>
<pre><code class="language-python">import qnt.graph as qngraph

statistics = qnstats.calc_stat(data, weights)
display(statistics.to_pandas().tail())

performance = statistics.to_pandas()["equity"]
qngraph.make_plot_filled(performance.index, performance, name="PnL (Equity)", type="log")

display(statistics[-1:].sel(field=["sharpe_ratio"]).transpose().to_pandas())
qnstats.print_correlation(weights, data)
</code></pre>
<p dir="auto">Please look at this post<br />
<a href="https://quantiacs.com/community/topic/515/what-is-forward-looking-and-why-it-s-effective-badly-to-strategy/6?_=1711712434795" rel="nofollow ugc">https://quantiacs.com/community/topic/515/what-is-forward-looking-and-why-it-s-effective-badly-to-strategy/6?_=1711712434795</a></p>
]]></description><link>http://quantiacs.com/community/post/1535</link><guid isPermaLink="true">http://quantiacs.com/community/post/1535</guid><dc:creator><![CDATA[Vyacheslav_B]]></dc:creator><pubDate>Mon, 01 Apr 2024 08:33:59 GMT</pubDate></item><item><title><![CDATA[Reply to How can we have the estimation of Sharpe submitted ? on Mon, 01 Apr 2024 08:14:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://quantiacs.com/community/uid/3364">@multi_byte-wildebeest</a> Dear multi_byte-wildebeest,</p>
<p dir="auto">The sharpe ratio is calculated for a specific period, so the sharpe ratio that you see in the end is one for period of when you started your calculation up until when you stopped it. To get some estimation for STOCKS_NASDAQ100 competition type that has in-sample start date set to 1.1.2006., you should set parameters in your strategy that you backtest to also start from that same date. If it happens that sharpe ratio is significantly lower after submission for the same period, that means that you could have forward looking somewhere in your strategy (you look for data in the future to calculate weights for those days).</p>
<p dir="auto">Regards</p>
]]></description><link>http://quantiacs.com/community/post/1534</link><guid isPermaLink="true">http://quantiacs.com/community/post/1534</guid><dc:creator><![CDATA[support]]></dc:creator><pubDate>Mon, 01 Apr 2024 08:14:41 GMT</pubDate></item></channel></rss>