Back

Chart JS error?

Hi,  I'm trying to take a look at a some EMA data I'm plotting. When I try to open the Average Cross plot, I get "Waiting for chart" and nothing happens. I opened the chrome developer console (it logs a nice easter egg :) cool!), and it looks like there's an error with the charting library you're using:  https://i.imgur.com/oAsqbh4.png

Interestingly, in this forum discussion preview, the chart seems to work.

The algorithm is probably wrong, by the way. I'm just playing around and getting to know the platform.

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 Eugenio,

Not sure why the "Waiting for chart" notification is popping up, but I cloned your backtest and it did indeed fail to show the Average Cross plot. To get it to show, the only adjustment that needs to be made is the index argument in AddSeries(). The index argument, which is the integer in avgCross.AddSeries( Series("FastMA", SeriesType.Line, 1) ), refers to the index of the Series in the Chart object, where 0 is the first Series, 1 indexes the second Series, etc. up until the maximum of 10. This means that the first series added using AddSeries() must use 0, and then you will be able to index new series with 1, 2, etc. after that for the same Chart. You can view this in the attached backtest. Thanks for the heads-up, we'll be sure to change the example algorithm.

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