I've been working on a simple Futures trading Algorithm, using the Example Algorithm provided by QuantConnect which uses the Simple Moving Average Indicator. However, when I have tried using the Average True Range Inidcator or the Bollinger Band Indicator, I cannot access the data for it to be incorporated in the Trading Logic of the Algorithm and I get error messages. I have tried different approaches even using Ask Mia and following the provided advice as a solution but still no luck. Does anyone know how to approach accessing different types of indicator data when working with Futures? I have shared a backtest of the Algorithm Working with the Simple Moving Average along with BolingerBands.py and SMA_ATR.py which Do Not work when I try Initializing the indicators.
Ashutosh
Hi Akira
You are using the correct logic in the code. I was able to get through the indicator values using “self.indicator.Current.Value”.
Would be able to clarify what is the exact issue that you are facing on the platform?
I have attached a backtest for your reference. Hope this helps and am happy to resolve any issues you have.
Best,
Ashutosh
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.
Ashutosh
Hey Akira
I have provided a sample code that will help you understand how to get to the indicator values and have trailing stop loss orders in place.
Hope this helps!
Best,
Ashutosh
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.
Akira
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!