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
| Attribute | Description |
|---|---|
| Buy Conditions | 2 conditions: price touches moving average + RSI oversold |
| Sell Conditions | 2 conditions: price touches moving average + RSI overbought |
| Protection Mechanisms | Moving average trend filtering |
| Timeframe | 15 Minutes |
| Dependencies | TA-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 Category | Specific Indicator | Purpose |
|---|---|---|
| Trend | SMA (20) | Judges market trend direction |
| Momentum | RSI (14) | Judges overbought/oversold |
5.2 Moving Average Parameters
| Moving Average | Period | Purpose |
|---|---|---|
| SMA | 20 | Medium-term trend judgment |
VI. Risk Management Features
6.1 Fixed Stoploss
- Stoploss Distance: -12%
6.2 Trailing Stop
| Parameter | Value |
|---|---|
| trailing_stop | True |
| trailing_stop_positive | 1.5% |
| trailing_stop_positive_offset | 2.5% |
VII. Strategy Pros & Cons
✅ Pros
- Trend Filtering: Moving average confirms market direction
- Counter-Trend Thinking: Buy on trend retracements
- Simple and Reliable: Both indicators are classics
- Strong Adaptability: Works in both trending and oscillating markets
⚠️ Cons
- Moving Average Lag: 20-day moving average has some lag
- Average Performance in Trending Markets: May suffer counter-trend losses in sustained trends
- Requires Clear Trends: Less effective when moving average direction is unclear
VIII. Applicable Scenarios
| Market Environment | Recommended 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 Type | Performance Rating | Analysis |
|---|---|---|
| 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 Pairs | Minimum RAM | Recommended RAM |
|---|---|---|
| 1-5 pairs | 1GB | 2GB |
XI. Summary
RSI_SMA combines trend and momentum. Its core value lies in:
- Trend Filtering: Moving average confirms market direction
- Counter-Trend Thinking: Buy on retracements
- Classic Combination: Two classic indicators
- Strong Adaptability: Various market environments
This document is auto-generated based on strategy code