Floor-Crossing Sawtooth Profit Stop Strategy Based on Moving Average
Overview
This strategy opens positions based on the golden cross and death cross of moving averages, and sets take profit and stop loss in a floor-crossing way. Its main features are:
- Use moving average system to filter shocks
- Adopt moving take profit and stop loss for dynamic capital management
- Configurable position filtering to avoid one-way opening
Strategy Principle
The strategy consists of four parts:
-
Moving Average System
Use golden cross and death cross of moving averages to determine trends and filter shocks.
-
Moving Take Profit and Stop Loss
Use take profit and stop loss with a certain percentage to lock in profits and control risks, realizing dynamic capital management.
-
Position Filtering
Can configure whether to enable position filtering. If the previous position is long, the next signal must be short to open position, avoiding unilateral holding.
-
ATR Stop Loss
Use ATR to limit the maximum range of stop loss and avoid excessive stop loss.
Specifically, the strategy first calculates the moving average, longs on golden cross, and shorts on death cross. After entry, set the moving take profit and stop loss lines with a certain percentage. If price touches the take profit line, then take profit; if touches the stop loss line or exceeds the ATR stop loss range, then stop loss.
Advantages
The main advantages of this strategy are:
-
High Configurability
Many parameters in the strategy are configurable for users to adjust based on their trading styles.
-
Good Capital Management
The adoption of moving take profit and stop loss and ATR stop loss can effectively control the amplitude of a single stop loss and achieve excellent capital management.
-
Suitable for Trending Market
The moving average strategy itself is more suitable for strong trending markets to filter shocks effectively.
Risks and Countermeasures
There are also some risks in this strategy:
-
Trend Misjudgement
The judgment of moving averages on complex markets is not perfect, and misjudgements may occur. At this time, moving average parameters should be adjusted accordingly, or other indicators can be combined to judge trends.
-
Excessive Stop Loss
Moving stop loss may be negated in shocks. ATR parameters should be combined to set the stop loss range.
-
One-way Opening Risks
Enabling position filtering will have some impact on trading frequency. Prolonged one-way holding may bring additional risks.
Optimization Directions
The main optimization directions are:
-
Parameter Optimization
Adjust the moving average cycle, ATR parameters, take profit and stop loss ratios and other parameters to optimize strategy performance.
-
Adding indicators
Add indicators like CMF, OBV to judge capital flow and avoid excessive stop loss.
-
Combining with other strategies
Combine with breakout strategies to follow trends after the trend stabilizes to achieve better results.
Summary
In summary, through the moving average filter and moving take profit and stop loss, this strategy realizes dynamic capital management based on trends. It has high configurability, suitable for rational investors to adjust and use according to their own styles. As a universal quantitative strategy, it still has great potential for optimization and is worth in-depth research.
- 1

