Back

Debug Console

Hi everybody,
this site is very cool. I tried to run a project starting from the template and it seems to me that the working environment is very powerfull. Nevertheless I cannot understand how the debug works.

I've put

Debug("OnTradeBar is running");

in the OnTradeBar method but I don't know where to see the output during simulation.

Thanks

Andrea
Update Backtest








Hey @Andrea! Thanks for the feedback, we want to empower the next generation of quants so glad to hear it helps you.

The Debug() messages show in the Console, once the simulation is running click the "Console" tab and you should see your messages.

To prevent message flooding (and crashing your browser), we stop identical messages. Imagine you have that debug message in the "OnTradeBar()" event -- it would generate thousands of messages per simulated day.
1

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.


Would you like it if the tab automatically switched to console when a new console message was received?
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