Hi,
I have an algo which trades GLD on specific breakout levels. It enters 2 minutes before market close if certain criteria is met. Now the entry signal uses the ADX(25) on daily bars. Upon entry 2 minutes before market close, the ADX(25) only has data from the previous days. I'd like to also consider todays upcoming close price. Since only two minutes are left at this point, it is relatively safe to assume, it will be in the current ballpark. So how can I add this data to the daily ADX(25)?
How can this be done?
Thanks,
David
Mia Alissi
Sources: Average Directional Index - QuantConnect.com, Handling Data - QuantConnect.com, Average Directional Movement Index Rating - QuantConnect.com, Daily Algorithm, Ema Cross Futures Front Month Algorithm
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.
David Maucher
If we enter 2 minutes before close, we need minute resolution. Then we also need to make sure, the algo only trades two minutes before market close. Your solution is based on daily bars, but that will only factor in prices from yesterday, right?
David Maucher
For anyone interested, I found this solution which seems to work:https://www.quantconnect.com/forum/discussion/11187/request-simple-example-of-how-to-get-the-current-day-039-s-daily-resolution-ohlc-and-volume-values-prior-to-market-close/
David Maucher
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!