Type/to search

Mini Pullback Supertrend Strategy

Cryptocurrency
Created: 2023-10-13 15:49:29
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy aims to capture small pullbacks in a trend and go long when the pullback finishes to profit. It uses a combination of technical indicators like EMA, MACD, RSI to identify the trend and end of pullbacks. It also uses ATR to set stop loss and take profit prices.

Principles

The strategy first calculates EMA, MACD and RSI to determine current trend direction and strength.

It uses 3 EMAs (21-period short, 50-period medium and 200-period long). When short EMA crosses above medium and long EMAs, it signals an uptrend.

MACD judges trend strength. When MACD line or histogram crosses above 0 line, it shows uptrend strengthening.

RSI indicates whether overbought/oversold. RSI crossing above 50 suggests pullback may end.

Then SuperTrend indicator identifies specific buy point of pullback. Its flip from down to up gives buy signal.

Finally, stop loss and take profit are set based on ATR.

Advantages

  • More reliable signals using multiple indicator combo.
  • Catch short-term opportunities in trends with high win rate.
  • Effective risk control with stop loss/take profit.

Risks

  • Prolonged pullback may lead to extended losses.
  • Multiple indicators make parameter tuning complex.
  • Stop loss too loose may enlarge losses.

Risk management:

  • Optimize parameters for indicator alignment.
  • Adjust stop loss properly against big losses.
  • Avoid stocks with prolonged pullbacks.

Optimization

  • Test different parameter combinations for best indicator values.
  • Adjust stop loss/take profit based on stock's daily fluctuation.
  • Add volume indicator to avoid low volume cases.

Conclusion

The strategy combines multiple indicators reliably for trend and pullback identification. Strict stop loss mechanism controls risk and allows timely liquidation. With persistent parameter and universe tuning, it can achieve good returns.

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

//@version=5
strategy(title="pullb", overlay = true, initial_capital = 10000, default_qty_value = 100, default_qty_type = strategy.percent_of_equity)

//variables
Strategy parameters
Strategy parameters
EMA Source
EMA 1 len
EMA 2 len
EMA 3 len
MACD Source
MACD Fast
MACD Signal
MACD Histogram
RSI Source
RSI Len
K
D
RSI Length
Stochastic Length
RSI Source Stoch
Use EMA Filter
Use RSI Filter
Use MACD Filter
ATR Period
Supertrend Source
ATR Multiplier
Change ATR Calculation Method ?
Show Buy/Sell Signals ?
Highlighter On/Off ?
Bars from cross to signal
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)