Type/to search

SMA and RSI Long Only Strategy

Cryptocurrency
Created: 2023-12-18 10:28:10
Last modified: 2 years ago
1
Follow
1779
Followers

img

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:

  1. Close long when RSI crosses below 70 or goes above 75;
  2. Stop loss when closing price crosses below the shorter period SMA line;
  3. 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:

  1. Uses simple and easy-to-understand indicator combination;
  2. Only goes long to avoid short selling risk;
  3. Has clear entry, stop loss and take profit rules, controllable risk;
  4. Easy to optimize by adjusting SMA periods etc.

Risk Analysis

There are some risks:

  1. Psychological bias of losing confidence after losses;
  2. SMA line shift may cause risks;
  3. RSI divergence signals may be unreliable.

Solutions:

  1. Build fixed trading mechanism following rules;
  2. Optimize SMA periods;
  3. Add other filters for RSI signals.

Optimization Directions

The strategy can be further optimized:

  1. Test different parameters for SMA;
  2. Add other indicators as filters;
  3. Add trend identification to distinguish trend and consolidation;
  4. 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.

Source
Pine
/*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)
Strategy parameters
Strategy parameters
Ma periodo veloce
Ma periodo lungo
Ma periodi stop
RSI period
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)