Strategy001: EMA Beginner's First Lesson
Nickname: "The Moving Average Crossover Master"
Profession: Trend Following Novice Guide
Timeframe: 5 minutes
I. What Is This Strategy?β
Simply put, Strategy001 is:
- An entry-level strategy using EMA moving averages to determine trend direction
- Combined with Heikin Ashi candlesticks to filter false signals
- Equipped with trailing stop for automatic protection
Like a driving school practice car π β simple, safe, easy to learn. Master it before driving a sports car!
II. Core Configuration: "Take Profits and Run"β
Take Profit Rules (ROI Table)β
Holding Time Target Profit
ββββββββββββββββββββ
Immediate 5%
20 minutes 4%
30 minutes 3%
60 minutes 1%
Translation: Make 5% right after entering? Run immediately! The longer you hold, the lower the target. Time is money's enemy π°
Stop Loss Rulesβ
Fixed Stop Loss: -10% (Lose 10% and surrender)
Trailing Stop: Activates at 2% profit, exits on 1% pullback
Translation: Give the trend some pullback room, but never let profits slip away once you're ahead!
III. 1 Entry Condition: Simple as It Getsβ
This strategy has one entry condition, but in three steps:
π― The Only Entry Condition: EMA Golden Cross + HA Confirmationβ
Plain English:
"When EMA20 crosses above EMA50, check if the HA candle is green and price is above EMA20. If all three conditions are met, buy!"
Code looks like this:
EMA20 crosses above EMA50 # Golden cross signal
HA close > EMA20 # Price above moving average
HA open < HA close # Green candle
Classic Lines:
- "Short-term MA golden cross! Trend is starting!"
- "Heikin Ashi is green? Direction confirmed!"
- "Price holding above EMA20? Good to enter!"
IV. Exit Logic: Even Simpler Than Entryβ
4.1 Signal Exitβ
Plain English:
"EMA50 crosses above EMA100 (a bit counterintuitive), but price has fallen below EMA20 and HA candle turned red? Then run!"
Code looks like this:
EMA50 crosses above EMA100 # Trend continuation signal
HA close < EMA20 # Price below moving average
HA open > HA close # Red candle
4.2 Multiple Exit Mechanismsβ
| Exit Method | Trigger Condition | Plain English |
|---|---|---|
| ROI Exit | Time + profit target met | "Made enough, run" |
| Trailing Stop | Pullback after profit | "Don't give back profits" |
| Fixed Stop Loss | 10% loss | "Surrender and stop" |
V. This Strategy's "Personality"β
β Pros (Compliment Time)β
- Clean Code: Less than 100 lines, beginners can understand in a week
- Clear Logic: EMA + HA, classic trend following combo
- Controllable Risk: Trailing stop for automatic protection, no worries about pullbacks
β οΈ Cons (Roast Time)β
- Oscillating Markets Kill: No trend means golden/death crosses back and forth π
- Signal Lag: EMA is a lagging indicator, half the move is gone by the cross
- Fixed Parameters: No hyperparameter optimization, gotta edit code to adjust
VI. Applicable Scenarios: When to Use It?β
| Market Environment | Recommended Action | Reason |
|---|---|---|
| π Clear Trend | Run with confidence | Golden cross + HA green bars work perfectly |
| π Oscillating Market | Stay away | Golden/death crosses will slap you back and forth |
| π Downtrend | Don't touch | Long strategy going against the trend is dangerous |
| β‘ High Volatility | Be careful | Might get shaken out |
VII. Summary: How Good Is This Strategy?β
One-Line Reviewβ
"Freqtrade strategy development's Hello World. Must learn, but be careful in live trading"
Who Is It For?β
- β Beginners just getting into Freqtrade
- β Developers wanting to learn strategy code structure
- β People who need a simple strategy template to modify
Who Is It NOT For?β
- β Lazy people wanting to make money directly
- β Day traders pursuing high-frequency trading
- β Victims of oscillating markets
My Recommendationβ
- Read and understand the code first: This is the best learning material
- Paper trade test: Get familiar with strategy behavior
- Add your own logic: Modify based on this foundation
- Small position live trading: Validate your improvements
VIII. What Markets Can This Strategy Make Money In?β
8.1 Core Logic: Using Moving Averages to Determine Trendsβ
Strategy001 is an entry-level trend following strategy. Less than 100 lines of code. What does that mean? Equivalent to an elementary school essay π
Its Profit Philosophy: Once a trend forms, follow it. When profitable, use trailing stop to protect gains.
- Moving Average Cross: Identify trend initiation
- HA Candles: Filter false breakouts
- Trailing Stop: Protect profits
8.2 Performance in Different Markets (Plain English Version)β
| Market Type | Performance Rating | Plain English Explanation |
|---|---|---|
| π Uptrend | βββββ | This is its home turf! Follow the trend and profit |
| π Oscillating Market | βββββ | Golden/death crosses back and forth, fees eat profits |
| π Downtrend | βββββ | Long strategy going against trend, forget about profits |
| β‘ High Volatility | βββββ | Easy to get shaken out, but stop loss protection exists |
One-Line Summary: Get in when there's a trend, hide when there isn't!
IX. Want to Run This Strategy? Check These Configurations Firstβ
9.1 Trading Pair Configurationβ
| Configuration Item | Recommended Value | Comment |
|---|---|---|
| Trading Pairs | BTC/USDT and other majors | Good liquidity, low slippage |
| Timeframe | 5m (default) | Can try 15m to reduce noise |
| Max Positions | 3-5 | Don't be greedy |
9.2 Config File Key Settingsβ
# config.json key settings
"max_open_trades": 3,
"stake_currency": "USDT",
"stake_amount": "unlimited",
"dry_run": true, # Paper trade first!
9.3 Hardware Requirements (Easy)β
This strategy has minimal computation, basically no hardware requirements:
| Number of Trading Pairs | Minimum Memory | Recommended Memory | Experience |
|---|---|---|---|
| 1-10 pairs | 2GB | 4GB | Smooth |
| 10-30 pairs | 4GB | 8GB | Fluid |
Warning: Don't think simple strategy means easy money just because hardware requirements are low! π
9.4 Backtest vs Live Tradingβ
As an entry-level strategy, backtest and live trading differences are relatively small, but still note:
Recommended Process:
- Paper trade for 1-2 weeks
- Small position live trading (5-10% of capital)
- Observe win rate and profit factor
- Gradually increase position or improve strategy
Don't go all in from the start, no matter how simple the strategy!
X. Bonus: The Strategy Author's "Little Tricks"β
Look carefully at the code, you'll find some interesting things:
-
Minimalist to the Extreme: Author Gerald Lonlas clearly wanted to write a teaching template
"Deleted everything that could be deleted, only keeping the core logic"
-
Clever Use of Heikin Ashi: Not all strategies use HA, here it confirms trends
"Candlesticks too messy? Smooth them with HA"
-
1% Trailing Stop: This parameter is interesting, run on 1% pullback
"Profit protection needs to be ruthless, don't try to catch the last bit"
XI. Final Wordsβ
One-Line Reviewβ
"The Hello World of strategies. Must learn, but don't expect it to make you rich"
Who Is It For?β
- β Freqtrade beginners
- β People wanting to learn strategy development
- β People needing templates to modify
- β Clear trend markets
Who Is It NOT For?β
- β People wanting to make easy money
- β Victims of oscillating markets
- β High-frequency trading enthusiasts
- β Counter-trend traders
Manual Trader Recommendationsβ
If you use this logic manually:
- Switch to 5-minute chart
- Add EMA20, EMA50, EMA100
- Switch candlesticks to Heikin Ashi
- Wait for golden cross + green candle + price holding above EMA20
- Enter, set trailing stop
XII. β οΈ Risk Emphasis Again (Must Read This)β
Backtesting Looks Great, Live Trading Needs Cautionβ
Strategy001 may perform well in backtestingβbut there's a trap:
Simple strategy doesn't mean stable profits. Market condition changes can make it fail.
Simply put: Past performance β Future returns
Hidden Risks of Entry-Level Strategiesβ
In live trading, simple strategies may encounter:
- Frequent stop losses in oscillating markets: Without trends, golden/death crosses happen constantly
- Signal lag: By the time golden cross confirms, half the move is gone
- Limit orders not executing: Want to stop loss during a crash but can't
My Recommendation (Real Talk)β
1. First use this strategy as learning material
2. Paper trade for two weeks, observe performance in different markets
3. Try modifying parameters or adding filter conditions
4. Small position live trading to validate your improvements
5. Continuously iterate, form your own strategy
Remember: Strategies are dead, markets are alive. Learn others' strategies, eventually make them your own.
Final Reminder: No matter how simple the strategy, the market will teach you a lesson without warning. Test with small positions, survival is most important! π