Crafting a Robust Trading Strategy with Technical Indicators
Written on
Chapter 1: Introduction to Technical Indicators
Technical indicators serve as essential tools that guide traders by analyzing past price movements. This article introduces a novel strategy that generates bullish signals through straightforward calculations, enhanced by moving averages.
I recently published a book titled "Contrarian Trading Strategies in Python," which delves into advanced contrarian indicators and strategies. The book includes a dedicated GitHub page for ongoing code updates. If you’re interested, you can purchase the PDF version for 9.99 EUR via PayPal. Remember to provide your email in the payment note to ensure correct delivery. After receiving the PDF, be sure to download it from Google Drive.
Chapter 2: Understanding K's Cyclical Indicator
K's Cyclical Indicator is primarily designed to identify bullish signals. It relies on basic comparisons of Open, High, Low, and Close (OHLC) values. This hybrid indicator functions effectively in both bullish and sideways markets, but it should not be employed during bearish trends.
To construct K's cyclical indicator, adhere to these steps:
- Assign a value of 1 when the current close price exceeds the current open price.
- Assign a value of 1 when the current high price is greater than the previous high price.
- Assign a value of 1 when the current high price surpasses the close price from two periods prior.
- Sum the results over a 13-period lookback and divide by 13 to derive the percentage of 1s relative to the total (1s and 0s).
- Multiply the results from the previous step to obtain a weighted percentage reading.
Consequently, the indicator is constrained between 0 and 1. A bullish signal is triggered when the cyclical indicator rises above 0.05 after previously being below this threshold.
For executing the indicator's function, basic functions are required with an OHLC array (not a DataFrame). Below is a graphical representation of the indicator with its default lookback period of 13.
I have also collaborated with Lumiwealth. If you wish to learn how to develop various algorithms, explore the provided link. They offer detailed courses on algorithmic trading, blockchain, and machine learning, all of which I highly recommend.
Chapter 3: Implementing the Strategy
The strategy combines K's cyclical indicator with a 100-period moving average to filter signals, selecting those with the highest probability of success. The trading criteria are as follows:
- A long signal is produced when the indicator exceeds 0.05 while the market remains above its 100-period moving average.
Check out the signal chart below for a visual representation:
Focus on grasping the underlying concepts rather than solely the code. Understanding the techniques and strategies is paramount; the coding aspect is merely a means of execution.
Stay informed by reviewing my weekly market sentiment report, which evaluates current positioning and forecasts future trends across major markets through both complex and simple models. Find out more about the report through this link.
Chapter 4: Conclusion
In summary, my goal is to contribute to the realm of objective technical analysis by promoting transparent techniques and strategies that undergo back-testing prior to implementation. This effort aims to enhance the credibility of technical analysis and dispel the notion that it is subjective and scientifically unfounded.
Medium serves as a hub for engaging articles. I have read extensively before embarking on my writing journey. Consider joining Medium using my referral link at no extra cost to you.
I encourage you to follow these steps whenever you encounter a trading technique or strategy:
- Maintain a critical mindset and eliminate emotional biases.
- Back-test using real-life simulations and conditions.
- If potential is identified, optimize and conduct forward tests.
- Always account for transaction costs and slippage in your tests.
- Incorporate risk management and position sizing into your evaluations.
Ultimately, even after ensuring the above steps, exercise caution and continuously monitor the strategy, as market dynamics can shift and render a previously successful strategy unprofitable.
Chapter 5: Recommended Videos
To deepen your understanding of trading strategies, check out the following videos:
The first video, "Creating a Winning Trading Strategy with Technical Indicators: Tips and Tricks," provides valuable insights on effective trading methods.
The second video, "Best Indicator COMBINATIONS For Winning Trading Systems," explores various successful indicator combinations.