Hey Community!
I have a simple question for you guys. How can I get the Current Day's High while I am on the minute resolution?
I cannot use a consolidator because it takes the entire day for a bar to finish and that gives me numbers that are a day late. And using an Identity is not working for me either because I do not know how to work with them very well, especially because I am writing in Python. I cannot do .High in OnData because it is only getting the high of the current minute!
Thank you for your time and I am so appreciative of my fellow Quants
Nico Xenox
Hey Jesse Fleming,
the simplest solution would be to save the highest current price to a variable and just update the value if there is a new higher value.
This would be a very simple way, let me know if it works for your case.
Hope it helps ;)
Jesse Fleming
You are amazing. Such a brilliant and simple answer. Thank you once again, Nico. Give this guy a raise.
Jesse Fleming
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!