Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 1.1 KB
<p>
The $[NullPortfolioConstructionModel,T:QuantConnect.Algorithm.Framework.Portfolio.NullPortfolioConstructionModel] can be used to skip the execution phase of the algorithm i.e. <i>"do nothing"</i>. This is useful when you're trying analyze the Alpha Model in isolation. All <a target="_BLANK" href="/alpha">Alpha Streams</a> algorithms can use Null Portfolio Construction and Null Execution Models.</p>
<div class="section-example-container"> <pre class="csharp">SetPortfolioConstruction( new NullPortfolioConstructionModel() ); </pre> <pre class="python">self.SetPortfolioConstruction( NullPortfolioConstructionModel() ) </pre>
</div>
<p><span class="csharp">You can view the C# <i>implementation</i> of this model in <a href="https://github.com/QuantConnect/Lean/blob/master/Algorithm.Framework/Portfolio/NullPortfolioConstructionModel.cs" target="_BLANK">GitHub</a>.</span><span class="python">You can view the Python <i>implementation</i> of this model in <a href="https://github.com/QuantConnect/Lean/blob/master/Algorithm.Framework/Portfolio/NullPortfolioConstructionModel.py" target="_BLANK">GitHub</a>.</span>
</p>
You can’t perform that action at this time.