Back

Proper Use and Placement of Insights and EmitInsights

Can someone help me with the correct use of insights and the proper placement of EmitInsights?   I've attached a working algorithm, but I'm still learning Python and apparently the algo is not emitting insights properly.  Insights are listed in the Update() method and EmitInsights is called before placing trades (at least I thought it was).  Perhaps it's more of a fundamental issue with the structure of my algorithm(?).

I'm getting the following response as part of the reason my algorithms are getting rejected:

"Additionally, all Alpha submissions need to emit Insights prior to placing trades. Insights provide funds with valuable information about the predictive power of your model. You can find more information about Insights in our documentation sections."

I've scoured the documentation and posts, but am unable to resolve this.  If someone could post a properly-configured version of this algo it would be greatly appreciated.

Thanks,
Troy

Update Backtest








0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Hi Troy B ,

When we use Algorithm Framework, the insights are emitted by the AlphaModel.Update method as it returns a list of Insight.
When we are Classic Algorithm, the insights can be emitted by QCAlgorithm.EmitInsights method. We should not call algorithm.EmitInsights from AlphaModel.Update method. We can use EmitInsights from other models or from the main class, but it breaks the separation of concerns philosophy we want to see in the Algorithm Framework.

 

0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Update Backtest





0

The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.


Loading...

This discussion is closed