Supertrend and Moving Average Crossover Strategy
Overview
The strategy is named "Supertrend and Moving Average Crossover Strategy". It combines the Supertrend indicator and moving averages, going long when the supertrend indicates an uptrend and 10-day EMA is above 20-day SMA, and going short when the supertrend indicates a downtrend and 10-day EMA is below 20-day SMA. It's a typical trend following strategy.
Strategy Logic
The strategy uses the Supertrend indicator to determine the market trend direction. Supertrend is calculated based on Average True Range and a Factor. When the price is above Supertrend line, it's an uptrend; when the price is below Supertrend line, it's a downtrend. In this strategy, the Factor is set to 3.0 and ATR length is 10.
In addition, the strategy uses 10-day EMA and 20-day SMA to construct moving averages. EMA (Exponential Moving Average) assigns higher weight to recent prices, while SMA (Simple Moving Average) considers all data with equal weight. When the shorter-term EMA is above the longer-term SMA, it's considered a buy signal.
In summary, the trade signal generation logic is:
Long entry: Supertrend > 0 (uptrend) AND 10-day EMA > 20-day SMA
Short entry: Supertrend < 0 (downtrend) AND 10-day EMA < 20-day SMA
So it determines the trend direction with Supertrend and uses the moving average crossover for additional confirmation, to construct this trend following strategy.
Advantage Analysis
The biggest advantage of this strategy is combining Supertrend and moving averages, which improves both reliability and sensitivity. The main advantages are:
- Supertrend clearly identifies the main trend, reducing false signals
- EMA+SMA crossover improves sensitivity to trend changes
- Judging multiple factors improves reliability
- Simple and clear indicators, easy to understand and optimize
- High flexibility to adjust parameters of Supertrend and MAs
Risk Analysis
There are some risks in this strategy:
- Improper Supertrend parameters may miss turn points
- Improper MA parameters may generate false signals
- Improper backtest period selection may overestimate performance
- No consideration of trading costs
We can test different ATR and Factor values for Supertrend, and different length values for MAs. Also the backtest period should cover different market environments. Trading costs should be added in live trading.
Optimization Directions
There is large room for optimization:
- Adjust ATR length and Factor in Supertrend
- Adjust length of EMA and SMA
- Add other indicators like RSI, MACD for signal filtering
- Buy when Supertrend turns up and EMA crosses over SMA after some duration
- Add stop loss strategy
This can further improve performance and stability. Also stop loss configuration is important for risk control.
Conclusion
The strategy combines Supertrend for trend direction and EMA+SMA crossovers to generate signals, a typical trend following system. It has high reliability and much flexibility for optimization, worth verifying in live trading. But we should also control risks and prevent excessive optimization.
- 1

