So i just have a plain and simply desire... i want to plot the current solutions candle sticks.
Wheres the problem ? Only the daily candle sticks are getting drawn and even if i zoom in... the 1 hour candles sticks dont show up.
self.SetStartDate(2020, 4, 19) # Set Start Date
self.SetCash(1000) # Set Strategy Cash
self.AddForex(self.__pair, Resolution.Hour) # The pair we trade
self.__ema = self.EMA(self.__pair, 20, Resolution.Hour) # The exponential moving average we use
chart = Chart("Chart")
candles = Series("Candles", SeriesType.Candle)
ema = Series("EMA", SeriesType.Line)
buy = Series("Buy", SeriesType.Scatter)
sell = Series("Sell", SeriesType.Scatter)
chart.AddSeries(candles)
chart.AddSeries(ema)
chart.AddSeries(buy)
chart.AddSeries(sell)
self.AddChart(chart)
# Later in OnData
pairBar = data[self.__pair]
self.Plot("Chart", "Candles", pairBar.Close)
self.Plot("Chart", "EMA", self.__ema.Current.Value)
Why does this happen and how the heck can i finally plot my one hour candles ?
Derek Melchin
Hi Lars,
It's not possible to specify the resolution of the candles as Lean doesn't support candle plots. When we see candles in the IDE, it's the result of the charting software that puts individual points together. See this related issue.
Best,
Derek Melchin
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.
Lars Matthäus
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!