Hello,
I am somewhat new to running LEAN locally. When I run the backtest everything appears to go well but the information returned on the .json file for the charting is empty. I have a custom chart with some indicators and the series attached to the chart is empty. On QC cloud environment the charting and indicators work just fine. Can someone help me to understand what is happening or what should I expect from the .json file? Thanks in advance.
This is how I am creating the char and series:
# Function called in the Initialize method
chart = Chart("MyIndicators")
self.AddChart(chart)
self.mycandles = Series('SPY',SeriesType.Candle,0,'$')
chart.AddSeries(self.mycandles)
self.series_poc = Series('POC',SeriesType.Line,0,'$')
chart.AddSeries(self.series_poc )
self.series_vah = Series('VAH',SeriesType.Line,0,'$')
chart.AddSeries(self.series_vah)
self.series_val = Series('VAL',SeriesType.Line,0,'$')
chart.AddSeries(self.series_val )
self.series_atr = {}
self.series_atr['atr_high'] = Series('ATR High',SeriesType.Line,0,'$')
self.series_atr['atr_low'] = Series('ATR Low',SeriesType.Line,0,'$')
self.series_atr['levels'] = Series('ATR Levels',SeriesType.Scatter,0,'$')
for s in self.series_atr.values():
chart.AddSeries(s)
self.series_volume = Series('Volume',SeriesType.Bar,1,'')
chart.AddSeries(self.series_volume )
Derek Melchin
Hi Andres tello,
Do you have the backtest data on your local machine? If the data is not in place, the charts won't be populated.
Best,
Derek Melchin
Want to invest in QuantConnect as we build the Linux of quant finance? Checkout our Wefunder campaign to join the revolution.
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.
Non Compete
i dont think quantconnect displays charts locally. I think they just output to the backtest json files. Then you can load/chart them in research. I'll open source some examples within the next couple week. I would like to make an angular dashboard to chart the stock history and compare backtest entries/exists but am running into blocks with that, but that would be way better than jupyter notebooks if i can do it.
Non Compete
Note you can't chart in research using QC's chart functions, i meant using the libraries here:
https://www.quantconnect.com/docs/v2/research-environment/charting
Also note there isn't a way I've found to locally display the QC backtest page in the online version, though that will probably be included in the custom IDE they are making.
Andres tello
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!