Hi community,
Apologies in advance for the super simple question.
Please look at the following overly simplified script, where I am exceeding data point while trying to plot a weekly consolidated rsi:
I am not sure why I am exceeding points (whose limit is 4000), the script starts in 2021 so there are for sure less than 100 weeks to plot since 2021 1 1 to now. IIUC the Consolidate() method offers auto-updates so I should not take care of updating. There is obviously something very basic I am missing here :(
In the chart below I see the first three weeks plotted correctly, and then things go off.
Paulduring
It turns out the consolidator works, if I print the time and value in the consolidation handler I see weekly dates and weekly bar close price.
So the problem is in the indicator, I am not sure why but I suspect it is trying to plot minutely the RSI hence exceeding the limit data point. I probably need a manual update somewhere.
Louis Szeto
Hi Paulduring
Plot that using the consolidator handler was the correct solution. OnData was called every minute when data piped in.
Best
Louis
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.
Paulduring
Thank you, it's working nicely now.
Paulduring
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.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!