Cycle Position Trend Following Strategy
Overview
The Cycle Position Trend Following Strategy is a quantitative trading strategy that determines the trend direction based on the 200-day Simple Moving Average (SMA). It provides two modes - "Follow Uptrend" and "Follow Downtrend" for traders to choose from according to their preferences. The strategy allows traders to customize stop loss and take profit levels for greater flexibility.
How The Strategy Works
The core indicator of this strategy is the 200-day SMA. The strategy has two modes:
-
Follow Uptrend Mode: Go long when close is above 200-day SMA; close position when stop loss or take profit is triggered.
-
Follow Downtrend Mode: Go long when close is below 200-day SMA; close position when stop loss or take profit is triggered.
The long condition is defined in longCondition variable based on the close price's relation to the 200-day SMA. The close condition is defined in closeCondition variable based on stop loss, take profit and SMA.
Specifically, strategy.entry is used to open long positions when the long condition is met. strategy.exit is used to close positions when the close condition is triggered.
Advantages of The Strategy
The advantages of this strategy include:
-
Simple and clear logic that is easy to understand.
-
Provides two optional modes to suit different market environments.
-
Customizable stop loss and take profit allows tuning of risk-reward profile.
-
Uses the well-known 200-day SMA indicator to determine trend direction.
-
Generates automated trading signals without manual intervention.
Risks of The Strategy
The risks of this strategy include:
-
Overly reliant on a single indicator, prone to false signals. Adding other indicators like MACD, KDJ for confirmation could help.
-
Stop loss and take profit levels too tight or too wide could lead to premature stop out or missing ideal exit points. Parameters need proper testing and optimization.
-
Using close price for signals has closing price biases. Consider using candle body or add signal confirmation.
-
Does not account for trading costs. Need to reserve costs when going live.
Ways to Improve The Strategy
Some ways to improve the strategy:
-
Add other indicators to confirm signals and avoid false signals, e.g. MACD.
-
Optimize stop loss and take profit parameters to find optimal combination through backtesting.
-
Add trend filter to only trade in well-defined trends, e.g. ADX.
-
Improve entry method by considering candle body or adding confirmation.
-
Consider trading volume to validate signal reliability.
-
Test different SMA periods to find the optimal parameter.
Conclusion
In conclusion, the strategy has clear and understandable logic with practical value. But reliance on a single indicator has limitations. More conditions should be added for confirmation. Parameters also need testing and optimization for better live performance. Furthermore, trading costs like slippage and commissions require consideration in live trading.
- 1

