Type/to search

SuperTrend Basic Strategy

Cryptocurrency
Created: 2023-10-11 15:14:54
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

The SuperTrend basic strategy is a reliable and profitable algorithmic trading strategy based on three powerful indicators: SuperTrend (ATR), RSI and EMA. It aims to identify the direction and strength of market trends, enter the market at optimal points, and exit when stop loss or take profit is reached.

Strategy Logic

The strategy uses SuperTrend indicator to determine if price is in an uptrend or downtrend. SuperTrend is based on Average True Range and a factor, above SuperTrend is uptrend and below is downtrend.

RSI is used to detect overbought/oversold conditions. Above 50 is bullish and below 50 bearish. RSI filters out false signals.

EMA judges long term trend direction. Above EMA is uptrend, below is downtrend. It confirms trade direction.

The trading signals are:

Long entry: Price above SuperTrend and RSI above 50 and Price above EMA
Long exit: Price closes below SuperTrend or Stop loss or Take profit

Short entry: Price below SuperTrend and RSI below 50 and Price below EMA
Short exit: Price closes above SuperTrend or Stop loss or Take profit

Stop loss and take profit can be set as percentage of entry price.

Advantage Analysis

The advantages of this strategy:

  1. Combination of 3 indicators, reliable trend detection

  2. SuperTrend clearly identifies uptrend and downtrend

  3. RSI filters out false breakouts, avoids overbought/oversold

  4. EMA confirms overall trend direction

  5. Simple and clear trading signals, easy to follow

  6. Customizable ATR period, RSI parameters and EMA period for optimization

  7. Stop loss and take profit to control risk

  8. Long only or short only mode for different markets

  9. Applicable to any timeframe

Risk Analysis

The main risks:

  1. Lagging of SuperTrend in trend reversal, may cause losses

  2. Small stop loss/take profit fails to catch big moves

  3. EMA cannot spot trend reversal points

  4. No divergence detection

  5. Still has volatility risk and time risk

Solutions:

  1. Add other indicators to detect reversal

  2. Optimize stop loss/take profit

  3. Add other indicators to spot reversal

  4. Incorporate divergence indicators

  5. Adjust position sizing

Optimization Directions

Ways to optimize the strategy:

  1. Optimize ATR period for sensitivity and stability

  2. Optimize RSI parameters for higher accuracy

  3. Optimize EMA period for different markets

  4. Add indicators like MACD, KD for reversal detection

  5. Add divergence indicators

  6. Use Elliott Waves to spot reversals

  7. Use machine learning to dynamically optimize parameters

  8. Advanced stop loss algorithms like trailing stop loss

  9. Optimize position sizing for different volatility

  10. Test more complex entry and exit conditions

Conclusion

The SuperTrend basic strategy integrates SuperTrend, RSI and EMA into a simple and practical trend following system. It identifies trend direction clearly, filters out false signals and confirms overall trend. Clear entry, exit rules and stop loss/take profit configuration. Easy to use, reliable profitability. Applicable to any timeframe. It can be further optimized by tuning parameters, adding reversal tools, enhancing stops to become a more powerful trading system.

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

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © JS_TechTrading

//@version=5
Strategy parameters
Strategy parameters
Type Of Strategy
Supertrend Settings
ATR Length
Factor
Ema Settings
Ema Condition On/Off
Ema Length
Ema Source
Rsi Settings
Rsi Condition On/Off
RSI Source
RSI Length
RSI BUY Level
RSI SELL Level
Backtest Period
Start calculations from
End calculations
Trade Direction
Trade Direction
Sl/Tp Settings
Stop Loss %
Take Profit %
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)