Type/to search

ADX + RSI Strategy

Cryptocurrency
Created: 2023-09-27 16:27:39
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This is a trend-following strategy that combines the ADX and RSI indicators. It uses RSI to identify overbought and oversold levels to generate trading signals, and ADX to determine the trend to filter out trades when the trend is unclear, thus avoiding whipsaws in range-bound markets.

Strategy Logic

  1. Use 7-period RSI to identify overbought and oversold levels
  • RSI below 30 is considered oversold
  • RSI above 70 is considered overbought
  1. Use ADX to determine the trend
  • ADX above 30 suggests a strong trend
  • ADX below 30 suggests no trend
  1. Entry rules
  • Long when RSI < 30 and ADX > 30
  • Short when RSI > 70 and ADX > 30
  1. Take profit and stop loss
  • Optional take profit and stop loss methods - close-based or swing-based
  • Close-based uses closing prices
  • Swing-based uses recent swing highs/lows

Advantage Analysis

  1. RSI effectively identifies overbought and oversold levels to avoid buying/selling traps

  2. ADX filters out range-bound markets to avoid whipsaws

  3. Optional take profit/stop loss methods help better control risks

  4. Simple and easy to understand, good for beginners to learn algorithm trading

  5. Much room for parameter optimization and refinement

Risk Analysis

  1. RSI overbought/oversold may have pullbacks and reversals

  2. ADX trend determination has lags, may miss trend turning points

  3. Improper stop loss placement may lead to losses

  4. Risk of over-optimization due to simplicity

  5. Parameter optimization needed for better performance

Optimization Directions

  1. Optimize RSI parameters and overbought/oversold levels

  2. Test different ADX periods to find the optimal setting

  3. Test different take profit/stop loss methods

  4. Add trend filter to avoid counter-trend trading

  5. Combine with other indicators for enhanced performance

Summary

This strategy combines the strengths of the classic RSI and ADX indicators to identify trends and avoid whipsaws. It has much room for optimization to achieve better performance. Overall, it serves well as a beginner's introductory algorithm trading strategy, and can also be incorporated into more complex trading systems.

Source
Pine
/*backtest
start: 2023-09-19 00:00:00
end: 2023-09-26 00:00:00
period: 15m
basePeriod: 5m
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/
// © tweakerID

// This is a strategy that uses the 7 Period RSI to buy when the indicator is shown as oversold (OS) and sells when 
Strategy parameters
Strategy parameters
Strategy Direction
Use Swing Lo/Hi Stop Loss & Take Profit
Swing Lo/Hi Lookback
SL Expander
TP Expander
Reverse Trades
OS
OB
ADX Smoothing
DI Length
adxlevel
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)