Hello everyone
I hope all is well.
I have a trading strategy below that i would like to convert into an algo. Any pointers/links and information about this would be really appreciated.
Trading Setup
- Trade on daily chart
- 5 EMA applied to close
- 10 EMA applied to close
- Stochastic(10, 3, 3)
- RSI (14)
Trading Rules
- Stop Loss = 30 pips
- Entry Rules : Enter long if - 5 EMA crosses above 10 EMA and both Stochastic lines are heading up ( dont enter is stochastic is already on the overbought level)
- RSI should be greater Than 50
Enter short if - 5 EMA crosses below 10 EMA and both Stochastic lines are heading down (dont enter is stochastic is already on the oversold level)
- RSI should be less Than 50
- Exit Rules : When the 5 EMA crosses the 10 EMA in the opposite direction of your trade or if RSI crosses back to the 50 level
Thank you for your help in advance
Yiyun Wu
Hi Philani,
Thank you for asking. We have instruction of Indicators in Documentation. If you want to find the API information of how to use indicators and Indicator algorithm examples, please take a look at here. And here is an example of EMA cross algorithm.
We encourage you to complete the courses on Boot Camp to gain a good knowledge of how the API and algorithm work.
Hope this helps!
Philani Tlamane
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!