Okay, so I am very new to this platform and I am trying to write an algorithm that uses consolidated quotebars for different timeframes (15m, 1h, 4h) to use with a rate of change indicator. I think I have a decent grasp on that part, however my issue comes when I am trying to load historical data for my indicator. I saw in this post that you are able to do this with Tradebars.
history = algorithm.History(symbol,14, Resolution.Daily).loc[symbol]
for idx, bar in history.iterrows():
tradeBar = TradeBar(idx, symbol, bar.open, bar.high, bar.low, bar.close, bar.volume)
self.consolidator.Update(tradeBar)
algorithm.Debug(tradeBar)
I was wondering/hoping that something similar could be done with quotebars, but I can't seem to find documentation for a constructor anywhere. Any help would be greatly appreciated.
Regrads,
Braeden
Braeden Hall
For anyone interested here is the one I found.
Brian Christopher
Braeden Hall the link isn't working. I'm looking for this also.
Yuri Lopukhov
QuoteBar initializer has these arguments:
I suppose you need to provide bars to ask and bid parameters, for example like this:
Braeden Hall
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!