Trading Strategy Based on Three Consecutive Bearish Candles and Dual Moving Averages
Overview
This strategy is a trading strategy based on three consecutive bearish candles and dual moving averages. The main idea of the strategy is: when there are three consecutive bearish candles and the current closing price is higher than the 200-day moving average, open a long position; when the 10-day moving average crosses with the price, or the price reaches the take-profit or stop-loss level, close the position. The strategy only runs within a specified time range.
Strategy Principle
- Calculate the number of consecutive bearish candles. If the closing price decreases, the number of consecutive bearish candles increases by 1; otherwise, it resets to 0.
- Calculate the 10-day and 200-day moving averages.
- Determine if the current closing price is higher than the 10-day moving average.
- Check if the entry conditions are met: three consecutive bearish candles, the current time is within the specified range, and the current closing price is higher than the 200-day moving average.
- Check if the exit conditions are met: the 10-day moving average crosses with the price, or the price reaches the take-profit or stop-loss level.
- If the entry conditions are met and there is no current position, open a long position.
- If the exit conditions are met and there is a current position, close the position.
Strategy Advantages
- It considers price movement and moving average factors, enabling it to capture opportunities in both trending and oscillating markets.
- It sets take-profit and stop-loss levels, which can effectively control risks.
- It limits the running time range of the strategy, avoiding excessive risks during certain specific periods.
- The code logic is clear and readable, making it easy to understand and optimize.
Strategy Risks
- The judgment of consecutive bearish candles may be too simple, easily triggering false signals.
- The setting of take-profit and stop-loss levels may not be flexible enough, leading to frequent trades or missed opportunities when the market fluctuates greatly.
- It lacks consideration for unexpected events, major news, and other unconventional factors, potentially assuming additional risks.
Strategy Optimization Directions
- Consider introducing more technical indicators, such as RSI and MACD, to build a more robust signal judgment logic.
- Optimize the setting of take-profit and stop-loss levels, introducing dynamic take-profit/stop-loss or stop-loss based on volatility indicators like ATR.
- Study the impact of different parameter settings on the strategy, such as the number of consecutive bearish candles, moving average periods, etc., to find the optimal parameter combination.
- Incorporate position management to dynamically adjust positions based on different market environments, improving capital utilization efficiency.
Summary
This strategy constructs a simple and easy-to-understand trading model through the combination of consecutive bearish candles and dual moving averages. While capturing trending opportunities, the strategy also sets certain risk control measures. However, there is further room for optimization in signal judgment and risk control. By introducing more technical indicators, optimizing parameter settings, implementing dynamic take-profit/stop-loss and position management, the robustness and profitability of the strategy can be further improved.
- 1

