FvSympleStrategy Strategy Analysis
Strategy ID: Community Strategy (unofficial)
Strategy Type: Single MA Trend-Following Strategy
Timeframe: 5 Minutes (5m) / 15 Minutes (15m)
I. Strategy Overview
FvSympleStrategy is an ultra-minimalist trend-following strategy. The "Symple" in the name is likely a spelling variant of "Simple," reflecting the strategy's design philosophy — achieving trend-following with the most basic technical indicators, minimizing complexity. The strategy relies solely on one Simple Moving Average (SMA) as the core reference, generating trading signals through the crossover relationship between price and the moving average. It is suitable for traders pursuing simplicity, directness, and ease of understanding.
As the simplified version in the Fv (Freqtrade Version) series, FvSympleStrategy demonstrates how to achieve basic trend-following with the fewest tools, making it an ideal case for beginners to understand MA trading systems.
Core Characteristics
| Feature | Description |
|---|---|
| Buy Conditions | Single condition: Price crosses above SMA 20 with volume confirmation |
| Sell Conditions | Single condition: Price crosses below SMA 20 |
| Protection | Hard stop-loss + time decay ROI |
| Timeframe | 5 Minutes / 15 Minutes (suitable for short-term trading) |
| Dependencies | TA-Lib (technical indicator calculation) |
II. Strategy Configuration Analysis
2.1 Basic Risk Parameters
# ROI Exit Table
minimal_roi = {
"0": 0.03, # Immediate exit: 3% profit
"30": 0.02, # After 30 minutes: 2% profit
"60": 0.015 # After 60 minutes: 1.5% profit
}
# Stop-Loss Settings
stoploss = -0.05 # Hard stop-loss: -5%
Design Philosophy:
- Quick take-profit: Initial target set at 3%, reflecting the short-term trading philosophy of quick profit-taking
- Time decay: The longer the holding time, the lower the profit threshold, avoiding profit pullback
- Moderate stop-loss: -5% provides adequate price volatility room while controlling max single-trade loss
2.2 ROI Time Decay Logic
Holding Time Target Profit Design Logic
────────────────────────────────────────────────
0 minutes 3% Quickly lock short-term profits
30 minutes 2% Lower expectations if holding too long
60 minutes 1.5% Time cost consideration
This stepped ROI design reflects the strategy's core philosophy: short-term trading, quick profit-taking. The longer the holding time, the greater the market uncertainty, so gradually lowering take-profit targets to ensure profitable exit.
III. Entry Conditions Details
3.1 Core Buy Logic
The strategy employs the simplest MA crossover logic as its sole buy condition:
# Buy Condition
dataframe.loc[
(
# Condition 1: Previous candle's closing price below the MA
(dataframe['close'].shift(1) < dataframe['sma'].shift(1)) &
# Condition 2: Current candle's closing price above the MA
(dataframe['close'] > dataframe['sma']) &
# Condition 3: Volume greater than 0 (confirm signal validity)
(dataframe['volume'] > 0)
),
'buy'
] = 1
Logic Breakdown:
| Condition | Code Expression | Technical Meaning |
|---|---|---|
| Previous close < Previous MA | close.shift(1) < sma.shift(1) | Price below MA |
| Current close > Current MA | close > sma | Price crosses to above MA |
| Volume confirmation | volume > 0 | Ensure not a false breakout or zero-volume move |
IV. Exit Conditions Details
4.1 Core Sell Conditions
The strategy's sell logic is equally simple and direct — reverse MA crossover:
# Sell Condition
dataframe.loc[
(
# Condition 1: Previous candle's closing price above the MA
(dataframe['close'].shift(1) > dataframe['sma'].shift(1)) &
# Condition 2: Current candle's closing price below the MA
(dataframe['close'] < dataframe['sma'])
),
'sell'
] = 1
4.2 Stop-Loss and ROI Exit
Stop-Loss Exit:
- Trigger: Loss reaches -5%
- Execution: Immediate market order
- Purpose: Protect principal, prevent excessive single-trade loss
ROI Exit:
- Trigger: Profit reaches target threshold (3%/2%/1.5%)
- Execution: Limit order
- Purpose: Quick profit-locking
V. Technical Indicator System
5.1 Core Indicators
| Indicator Category | Specific Indicator | Purpose |
|---|---|---|
| Trend Indicator | SMA (Simple Moving Average) | Trend direction judgment |
SMA 20 Technical Meaning:
SMA 20 = (P1 + P2 + ... + P20) / 20
| SMA Position | Price State | Recommendation |
|---|---|---|
| Price far above SMA | Strong uptrend | Hold (strategy has no position-adding mechanism) |
| Price near SMA | Trend unclear | Observe |
| Price far below SMA | Strong downtrend | Exit and observe |
VI. Risk Management Highlights
6.1 Time Decay ROI Mechanism
minimal_roi = {
"0": 0.03, # Immediately: 3%
"30": 0.02, # After 30 minutes: 2%
"60": 0.015 # After 60 minutes: 1.5%
}
6.2 Hard Stop-Loss Protection
stoploss = -0.05 # -5% hard stop-loss
Stop-Loss Design Considerations:
- Too tight (e.g., -2%): Easily stopped out by normal fluctuations
- Too loose (e.g., -10%): Excessive single-trade loss
- -5%: Balances false stops and risk control
VII. Strategy Pros & Cons
Advantages
- Ultra-simple: Only uses one MA, minimal code lines, easy to understand and maintain
- Clear signals: Buy/sell conditions are clear and unambiguous; no fuzzy signals
- Low execution cost: No complex indicator calculations; extremely low CPU and RAM usage
- Good for learning: Best entry case for understanding MA trading systems
- Fast response: Short-period MA is sensitive to trend changes
Limitations
- Many false signals: Single MA lacks confirmation mechanism; easily misled by market noise
- Poor oscillating performance: Frequent trading during consolidation, causing fee losses
- No filtering mechanism: Lacks auxiliary judgments like overbought/oversold and volume
- Risk of chasing highs: May buy at local highs, immediately getting trapped
- Fixed parameters: SMA 20 does not suit all market environments
VIII. Applicable Scenarios
| Applicable Scenarios | Not Applicable Scenarios |
|---|---|
| Clear trending markets | Oscillating consolidation markets |
| Moderate volatility markets | Extreme volatility markets |
| Learning and research purposes | Production environment live trading |
| Strategy prototype design | Complex strategy replacement |
IX. Summary
FvSympleStrategy is the simplest trend-following strategy, using only a single SMA 20 MA to generate buy and sell signals. Its core value lies in:
- Teaching value: Best entry case for understanding MA trading systems
- Code simplicity: Extremely low maintenance cost and learning curve
- Clear signals: Buy/sell conditions are unambiguous, easy to execute
For quantitative traders, FvSympleStrategy is more suitable as a strategy prototype or learning tool rather than a direct production environment strategy. It is recommended to add trend confirmation, volume filtering, momentum indicators, and other auxiliary mechanisms to improve signal reliability and profitability.
One-line evaluation: Minimalism's double-edged sword — easy to learn, but needs evolution for live trading.