Type/to search

Triple Supertrend Breakout Strategy

Common strategy
Created: 2023-12-21 12:05:07
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

The triple supertrend breakout strategy is a commonly used strategy that utilizes multiple supertrend lines with different parameter settings and a trend-defining EMA to identify trend direction and trade. The main idea of ​​this strategy is to establish long positions when at least two supertrend lines are showing an uptrend above the trend-defining EMA line, and establish short positions when at least two supertrend lines are showing a downtrend below the trend-defining EMA line.

Strategy Principle

This strategy uses three supertrend lines with different parameters and an EMA line that defines the major trend to determine entries and exits:

  1. Set up three supertrend lines - supertrend1, supertrend2, supertrend3, with green color indicating an uptrend and red color indicating a downtrend.

  2. Set up an EMA line ematrend to define the major trend. When all three supertrend lines are above this EMA, the market is defined as being in an uptrend, and vice versa for downtrends.

  3. When at least two supertrend lines show an uptrend (green) simultaneously under the condition of a major uptrend market, that is, the direction value is less than 0, it is judged as a long signal; when at least two supertrend lines show a downtrend (red) simultaneously under the condition of a major downtrend market, that is, the direction value is greater than 0, it is judged as a short signal.

  4. Subsequently, open long/short positions when signals are triggered.

  5. Set stop loss and take profit conditions. Fixed take profit is set at a risk/reward ratio of 3; trailing stop loss is set at a drop of one ATR.

  6. Close positions when stop loss or take profit conditions are triggered.

Advantage Analysis

The advantages of this strategy include:

  1. Using three supertrend lines combined with a trend-judging EMA can effectively identify trend signals.

  2. The long and short conditions are clear and easy to understand and implement.

  3. Setting a trailing stop loss and fixed take profit effectively manages risks.

  4. Hyperparameters can be adjusted as needed to optimize the strategy.

Risk Analysis

There are also some risks to this strategy:

  1. Improper parameter settings may lead to missing good trading opportunities. Different periods, multiples for ATR, and periods for EMA can be tested.

  2. There is some probability of failed breakouts. This can be reduced by adjusting parameters.

  3. Stop loss or take profit set too wide may increase loss probability. Stop loss range should be tightened properly.

  4. Backtest data can easily lead to overfitting problems. Multi-market, multi-timeframe testing should be noted.

Optimization Directions

Some ways this strategy can be optimized:

  1. Test the optimal parameter combinations. Different combinations of ATR periods, multiples, and EMA periods can be tested to find the best.

  2. Increase trading varieties. Can add stocks, cryptocurrencies etc to test effectiveness across markets.

  3. Combine with other indicators for signal filtering. For example, RSI, MACD etc can be added to avoid misreading trend signals.

  4. Optimize the stop loss and take profit mechanism. Trailing stop loss, or stop loss based on changes in ATR/volatility can be tested.

Conclusion

In summary, the triple supertrend breakout strategy is a relatively simple and practical trend following strategy. It combines multiple supertrend lines and a trend-judging EMA to discover opportunities and manages risk effectively. Through parameter and logic optimization, better results can be achieved. This strategy is easy to understand and worth learning from.

Source
Pine
/*backtest
start: 2022-12-14 00:00:00
end: 2023-12-20 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// @version=5
// author=theasgard and moonshot-indicator (ms)
// year 2021
//
Strategy parameters
Strategy parameters
ATR Length 1
ATR Factor 1
ATR Length 2
ATR Factor 2
ATR Length 3
ATR Factor 3
Trend-EMA Length
Source
Offset
Backtest Start Time
Define the ending period for backtests (If false, will test up to most recent candle)
Backtest End Time
Exit when Risk:Reward met
Risk:[Reward] (i.e. 3) for exit
Use trailing stop loss
ATR multiplier for stop loss
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)