I understand that the Plot function QuantConnect is intended for time series data. If I wanted to plot a column graph (that does not have any time dependence) during backtesting, how could I do this?
Cheers,
- Tom
QUANTCONNECT COMMUNITY
I understand that the Plot function QuantConnect is intended for time series data. If I wanted to plot a column graph (that does not have any time dependence) during backtesting, how could I do this?
Cheers,
- Tom
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.
Mia Alissi
QuantConnect's built-in charting capabilities are primarily designed for time series data. However, you can create different types of charts using the
SeriesType
enumeration. The supported chart types include Line, Scatter, Candle, Bar, Flag, StackedArea, Pie, Treemap, Heatmap, and Scatter3d.For a column graph, you might want to use the
SeriesType.Bar
chart. However, please note that thePlot
method only accepts one numerical value per time step, so it might not be ideal for data that does not have any time dependence.Here is an example of how you can use the
Plot
method in Python:If you want to create more complex charts that are not time-dependent, you might want to consider saving your plot data in the Object Store and then loading it into the Research Environment. In the Research Environment, you can create other types of charts with third-party charting packages.
For more information, you can refer to the QuantConnect Documentation on charting.
Please note that if you run your algorithm in QuantConnect Cloud, there is a limit of 4,000 points per chart due to the intensive data generation. If you exceed this limit, the chart update will be skipped.
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.
Tom Frew
Thank you! I was wondering if you could give me an example of saving data (from a dict) in the ObjectStore in QuantConnect and loading it in the research environment! There's no pressure if you're too busy. :)
Mia Alissi
Sure, I can provide an example of saving data from a dictionary into the Object Store in QuantConnect and then loading it in the Research Environment.
First, let's look at how to save a dictionary into the Object Store. Here's an example in Python:
Now, let's load this data in the Research Environment:
Please note that you need to have the necessary permissions to save data in the Object Store. You can check your permissions and edit your storage plan if needed. For more information, you can refer to the QuantConnect Documentation on storage permissions.
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.
Tom Frew
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!