Hi everyone,
attached you find my latest Backtest. For this I have some questions.
At the moment I'm trying to get familiar with the syntax.
My aim is to calculate one or more indicators in the “pair” class, then I want to define to check if they are ready and to update them. After this I want to plot the values of the SMA, SMA of the SMA and RSI in one chart to check if the algorithm works fine.
Here are my questions:
1. At the moment there are less values in the chart, so I think there must be any problem with the algorithm :) Do you know what's the problem?
2. I also want to be flexibel to use the closing price data and the hl2 data for this algorithm. How can I implement the hl2 data precisely for the SMA indicator and the closing price for the RSI Indicator? I think by default it is the closing price data, is this correct?
3. Furthermore I want to ask if it makes sense to put all indicators into one class or if I should use an own class for each indicator (this should normaly be an easy question, but I am new algorithm trading and also to Python, so I hope you can help me :) )
Thanks and best regards
Marcel
Vladimir
Marcel Friz,
There are many ways to accomplish a given task.
In "Plot SMA, SMA of the SMA and RSI on hl2 data" I used only the built-in QC indicators.
If you are satisfied with my answer, please accept it.
Enjoy.
Marcel Friz
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!