Back

Possible to have OnTick event with specified resolution bars?

Still relatively new to trading and QC, so please excuse me if I am off a bit.

When manually trading in another platform, I can look at indicators in M30, H1, H4, D1, etc, but each TICK comes in, enabling me to base decisions on a tick-by-tick basis against H4 bars, right? 

However, in QC it seems that OnData() and MyCustomConsolidatorHandler() only come at the respective timeframe. Is there an OnTick() event handler or equivalent? Can I get updated bars for the specified timeframe on each tick?

Update Backtest








If you add tick data using something like self.AddEquity(Symbol, Resolution.Tick), then you can make decisions on tick data within the OnData() method. And when making those decisions, you can access indicator values on the other time frames using techniques laid out here: 

https://www.quantconnect.com/forum/discussion/1809/accessing-previous-indicator-values-made-with-consolidated-bars/p1

Or, did I miss something in your question?

0

Initial read seems like what I am asking for, yeah! I'll dig a little more to wrap my head around it. Thanks!

0

Update Backtest





0

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.


Loading...

This discussion is closed