SMA and RSI Long Only Strategy
Overview
This strategy is adapted from the articles by Enrico Malverti. It mainly uses Simple Moving Average (SMA) and Relative Strength Index (RSI) to identify long entry and exit signals. The strategy only goes long but not short.
Strategy Logic
The entry signal is triggered when closing price crosses over the longer period SMA line.
Exit signals include:
- Close long when RSI crosses below 70 or goes above 75;
- Stop loss when closing price crosses below the shorter period SMA line;
- Take profit when closing price crosses below the shorter period SMA line.
The stop loss SMA line and take profit SMA line are also plotted.
Advantage Analysis
The advantages of this strategy:
- Uses simple and easy-to-understand indicator combination;
- Only goes long to avoid short selling risk;
- Has clear entry, stop loss and take profit rules, controllable risk;
- Easy to optimize by adjusting SMA periods etc.
Risk Analysis
There are some risks:
- Psychological bias of losing confidence after losses;
- SMA line shift may cause risks;
- RSI divergence signals may be unreliable.
Solutions:
- Build fixed trading mechanism following rules;
- Optimize SMA periods;
- Add other filters for RSI signals.
Optimization Directions
The strategy can be further optimized:
- Test different parameters for SMA;
- Add other indicators as filters;
- Add trend identification to distinguish trend and consolidation;
- Parameter adaption and optimization.
Conclusion
The overall idea is simple and clear. With basic indicators and controllability, it suits medium-long term trading. But parameter tuning and indicator filtering require lots of tests and optimization to make the strategy more solid and reliable. Simple ideas need huge efforts on optimization and combination to form real usable trading systems.
/*backtest
start: 2022-12-11 00:00:00
end: 2023-12-17 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version= 4
// form the original idea of Enrico Malverti www.enricomalverti.com , trading system 2015
// https://sauciusfinance.altervista.org
strategy(title="MAs & RSI strategy long only", overlay = true, max_bars_back=500)- 1

