Type/to search

Threefold Overlapping SuperTrend Strategy

Common strategy
Created: 2024-02-26 10:04:18
Last modified: 2 years ago
1
Follow
1802
Followers

img

Overview

This is a strategy that makes trading decisions based on three overlapping SuperTrend indicators. It can capture larger directional opportunities in trending markets.

Strategy Logic

The strategy uses the ta.supertrend() function to calculate three SuperTrend indicators with different parameter settings, namely SuperTrend1 with 10 days and a multiplier of 3, SuperTrend2 with 14 days and a multiplier of 2, and SuperTrend3 with 20 days and a multiplier of 2.5. A buy signal is generated when the price crosses above all three SuperTrend lines. A sell signal is generated when the price crosses below all three SuperTrend lines.

The SuperTrend indicator incorporates the ATR indicator to effectively track price trend changes. The strategy of three overlapping SuperTrends makes the signals more reliable, thereby capturing greater profits in trending markets.

Advantages

  1. Triple filter mechanism avoids false signals and improves signal quality
  2. The SuperTrend itself has good noise reduction capability
  3. Multiple combinations of hyperparameters can be configured to suit more market environments
  4. Good historical performance with high return to risk ratio

Risks

  1. Multiple filtering signals may miss some opportunities
  2. Does not perform well in ranging markets
  3. Requires optimization of combinations of three sets of hyperparameters
  4. Concentrated trading time is susceptible to sudden events

The following can be considered to reduce risks:

  1. Adjust the filtering conditions, keep one or two SuperTrends
  2. Add stop loss strategy
  3. Optimize hyperparameters to improve win rate

Optimization Directions

  1. Test more parameter combinations to find optimal hyperparameters
  2. Add machine learning algorithms for real-time parameter optimization
  3. Add stop loss strategies to control single loss
  4. Incorporate other indicators to identify trends and ranges
  5. Extend trading time to avoid risks at a single time point

Conclusion

This strategy makes decisions based on three overlapping SuperTrends, which can effectively identify trend direction. It has advantages like high signal quality and configurable parameters. At the same time, there are also certain risks. Parameters and exit timing need to be adjusted to adapt to different market environments. Overall, the strategy performs exceptionally well and is worth further research and application.

Source
Pine
/*backtest
start: 2024-01-01 00:00:00
end: 2024-01-31 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
strategy('Combined Supertrend Strategy - Ajit Prasad', overlay=true)

// Function to calculate Supertrend
Strategy parameters
Strategy parameters
ATR Length 1
Factor 1
ATR Length 2
Factor 2
ATR Length 3
Factor 3
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)