Back

Pass latest data from consolidator calculations to OnData

I'm looking to pass the tradeBar data from my monthly consolidator to my OnData where I will use against the minute data to determine when to take trades. I believe the answer is from Richard Hale Shaw in this thread 

https://www.quantconnect.com/forum/discussion/1822/how-can-i-schedule-an-event-handler-and-have-the-data-available

but I can't figure out how to code it. 

I have the data accessible from 'def startOfMonth' where I will perform more calculations but how do I pass the latest data from here into OnData for trading?

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.


Ah, I know the pro's are shaking their heads at this one. I was misunderstanding how to make the global variable, and then structure to continuously update the variable as my consolidation is triggered - I found the consolidator training on boot camp and was able to think through it.

Hope this helps others.

0


Glad you figured it out. I was able to post here, then i scrolled down and saw you posted again. 

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