Type/to search

Moving Average Trading Strategy

Cryptocurrency
Created: 2023-11-13 11:17:51
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy is based on moving average crossover system. By calculating moving averages of different periods and using crosses between them as trading signals, supplemented by RSI indicator for signal filtering, it improves profitability while lowering trading frequency.

Strategy Logic

  1. Calculate fast, medium and slow moving averages. Fast MA and medium MA form the trading channel.

  2. Go long when price crosses above fast MA, and go short when price crosses below fast MA.

  3. Trend direction judged by: fast MA > medium MA is bullish, fast MA < medium MA is bearish. Only trade in the direction of the channel.

  4. Slow MA acts as trend filter: only go long above slow MA and go short below slow MA.

  5. RSI filter: only go long above RSI buy level and go short below RSI sell level.

  6. ATR based stop loss and take profit.

Advantages

  1. Flexible MA combinations adaptable to market changes.

  2. RSI filter avoids false breakouts and improves signal quality.

  3. ATR dynamic SL/TP lowers risk of maximum drawdown.

  4. Dual filters by slow MA and RSI avoid unnecessary trades.

Risks

  1. MA crossovers may lag price actions.

  2. Dual filters may miss some trading opportunities.

  3. ATR SL could exceed normal SL range.

  4. Poor parameter tuning leads to too frequent or too sparse trades.

Corresponding risk management measures:

  1. Use shorter MA periods to reduce lag.

  2. Adjust filter parameters to maintain decent trade frequency.

  3. Tune ATR multiplier to keep SL within acceptable range.

  4. Optimize parameters to find the best combination.

Optimization Directions

  1. Test combinations of different MA types.

  2. Optimize MA periods.

  3. Optimize RSI parameters.

  4. Optimize ATR SL/TP coefficients.

  5. Optimize filter parameters to find best filter strength.

Conclusion

This strategy combines MA, RSI and ATR, which through parameter optimization, can generate trading systems adaptable to different markets. Compared to single indicator strategies, it effectively reduces false signals and improves profitability. But no technical strategies can completely avoid market risks. Strict risk management practices are required as safeguards.

Source
Pine
/*backtest
start: 2023-10-13 00:00:00
end: 2023-11-12 00:00:00
period: 12h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=5
// *** USE AT YOUR OWN RISK ***

// FIRST: This is MASSIVELY derived from other people's work... 
Strategy parameters
Strategy parameters
2) Fixed Stop Loss %
2) Fixed Take Profit %
3) ATR Length
3) ATR SL Multiplier
3) ATR TP Multiplier
Trade entry strategy
Retest Entry strategy
Breakout Entry strategy
Risk Mgt strategy
Strat 1) No SL/TP
Strat 2) Static % SL/TP
Strat 3) Dynamic ATR SL/TP
RSI options
RSI length
RSI Buy signal
RSI Sell signal
Fast MA options
Fast MA Type
Fast MA Source
Fast MA Period
Trend MA options
Trend MA Type
Trend MA Source
Trend MA Period
Slow MA options
Slow MA Type
Slow MA Source
Slow MA Period
Fixed HTF MA 1 options
Fixed MA Type
Fixed EMA Source
Fixed EMA Period
Fixed EMA Timeframe
Fixed HTF EMA bull/bear colouring
Smoothed?
Fixed HTF MA 2 options
Fixed MA Type
Fixed EMA Source
Fixed EMA Period
Fixed EMA Timeframe
Fixed HTF EMA bull/bear colouring
Smoothed?
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)