Skip to main content

RSI_SMA Strategy Deep Analysis

Strategy ID: #280 (280th out of 465 strategies)
Strategy Type: RSI + Simple Moving Average Combined Strategy
Timeframe: 15 Minutes (15m)


I. Strategy Overview

RSI_SMA is a strategy combining RSI indicator with Simple Moving Average (SMA). SMA judges market trend direction, while RSI finds counter-trend trading opportunities. The strategy's core idea is: in markets with clear trends, buy when price retraces to important moving average levels and RSI reaches oversold; on the opposite trend direction, sell when price touches the moving average and RSI reaches overbought.

Core Characteristics

AttributeDescription
Buy Conditions2 conditions: price touches moving average + RSI oversold
Sell Conditions2 conditions: price touches moving average + RSI overbought
Protection MechanismsMoving average trend filtering
Timeframe15 Minutes
DependenciesTA-Lib

II. Strategy Configuration Analysis

2.1 Basic Risk Parameters

# ROI Exit Table
minimal_roi = {
"0": 0.11 # Immediate exit: 11% profit
}

# Stoploss Settings
stoploss = -0.12 # -12% hard stoploss

# Trailing Stop
trailing_stop = True
trailing_stop_positive = 0.015 # 1.5% trailing activation point
trailing_stop_positive_offset = 0.025 # 2.5% offset trigger

III. Entry Conditions Details

3.1 Entry Logic

# Buy Condition
dataframe.loc[
(dataframe['close'] < dataframe['sma_20']) & # Price below moving average
(dataframe['rsi'] < 30), # RSI oversold
'buy'
] = 1

Logic Analysis:

  • Price Retraces to Moving Average: Price breaks below 20-day moving average, may form retracement buy opportunity
  • RSI Oversold Confirmation: RSI < 30 indicates momentum is extreme
  • Counter-Trend Buy: Looking for rebound opportunities in downtrends

IV. Exit Conditions Details

4.1 Sell Conditions

# Sell Condition
dataframe.loc[
(dataframe['close'] > dataframe['sma_20']) & # Price above moving average
(dataframe['rsi'] > 70), # RSI overbought
'sell'
] = 1

Design Rationale:

  • Price Breaks Moving Average: Price rises above 20-day moving average, may form uptrend
  • RSI Overbought Confirmation: RSI > 70 indicates momentum overheating

V. Technical Indicator System

5.1 Core Indicators

Indicator CategorySpecific IndicatorPurpose
TrendSMA (20)Judges market trend direction
MomentumRSI (14)Judges overbought/oversold

5.2 Moving Average Parameters

Moving AveragePeriodPurpose
SMA20Medium-term trend judgment

VI. Risk Management Features

6.1 Fixed Stoploss

  • Stoploss Distance: -12%

6.2 Trailing Stop

ParameterValue
trailing_stopTrue
trailing_stop_positive1.5%
trailing_stop_positive_offset2.5%

VII. Strategy Pros & Cons

✅ Pros

  1. Trend Filtering: Moving average confirms market direction
  2. Counter-Trend Thinking: Buy on trend retracements
  3. Simple and Reliable: Both indicators are classics
  4. Strong Adaptability: Works in both trending and oscillating markets

⚠️ Cons

  1. Moving Average Lag: 20-day moving average has some lag
  2. Average Performance in Trending Markets: May suffer counter-trend losses in sustained trends
  3. Requires Clear Trends: Less effective when moving average direction is unclear

VIII. Applicable Scenarios

Market EnvironmentRecommended Action
Trend Retracement✅ Use
Oscillating Markets⚠️ Use Carefully
Sideways Consolidation⚠️ Use Carefully

IX. Live Trading Notes

RSI_SMA combines trend (moving average) and momentum (RSI).

9.1 Core Strategy Logic

  • Below Moving Average + RSI Oversold: Trend retracement buy
  • Above Moving Average + RSI Overbought: Trend rebound sell
  • Moving Average Direction: Acts as trend filter

9.2 Performance in Different Market Environments

Market TypePerformance RatingAnalysis
Trend Retracement⭐⭐⭐⭐⭐Strategy's best scenario
Oscillating Markets⭐⭐⭐☆☆Some opportunities near moving average
Downtrend Rebound⭐⭐⭐☆☆Counter-trend opportunities
Sideways Consolidation⭐⭐☆☆☆Moving average unclear

X. Important Reminders: Risks of Counter-Trend Strategies

10.1 Risk Warning

Counter-trend trading (buying below moving average) requires strict stoploss, as trends may persist.

10.2 Hardware Requirements

Number of PairsMinimum RAMRecommended RAM
1-5 pairs1GB2GB

XI. Summary

RSI_SMA combines trend and momentum. Its core value lies in:

  1. Trend Filtering: Moving average confirms market direction
  2. Counter-Trend Thinking: Buy on retracements
  3. Classic Combination: Two classic indicators
  4. Strong Adaptability: Various market environments

This document is auto-generated based on strategy code