Hello All,
I wanted to ask if there was a method to remove series from an existing chart?
I referenced the documentation here:
But couldn't seem to find anything about removing a series. Is this supported by QC/LEAN? My end goal is to create a dynamic portfolio allocation chart, creating a line chart for each security with the y value being the overall portfolio weight of the security.
Thanks,
Miguel
Varad Kabade
Hi Miguel Palanca,
Currently, we cannot remove a series from the chart. Regarding your goal, you can check whether a particular asset is there in your portfolio before updating a chart object(updating with value zero if currently not invested)
Best,
Varad Kabade
Miguel Palanca
Hi Varad,
Thank you for the help! That’s unfortunate to hear, do we know if that is planned at all in the pipeline? The chart does set them to 0 but with the maximum series of 10, I was hoping to be able to add and drop symbols within the chart.
Thanks,
Miguel
Varad Kabade
Hi Miguel Palanca,
Due to charting limitations, it's not possible to add more series even if we were able to remove them, since the goal of the limitation is to cap the aggregate data.
Best,
Varad kabade
Miguel Palanca
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!