Type/to search

Simple Moving Average Crossover Strategy

Cryptocurrency
Created: 2023-09-21 10:47:24
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy trades based on golden cross and dead cross of 3 simple moving averages. It goes long when the fast SMA crosses above mid SMA and mid SMA crosses above slow SMA; It goes short when the reverse crossover happens.

Strategy Logic

  1. Set 3 SMAs with different periods: fast, mid, slow
  2. Go long when fast SMA crosses above mid SMA and mid above slow SMA
  3. Go short when fast SMA crosses below mid SMA and mid below slow SMA
  4. Can set entry delay to avoid false breakouts
  5. Exit when reverse crossover signal triggers

Specifically, it utilizes the crossovers between 3 SMAs of different periods to trade. The fast SMA represents short term trend, mid SMA represents medium term trend, and slow SMA represents long term trend. When the three SMAs crossover upward in sequence, it signals an uptrend to go long. When downward crossover happens, it signals a downtrend to go short. Entry delay can also be set to avoid short term false breakouts.

Advantage Analysis

  1. Using 3 SMAs improves directional accuracy
  2. Delayed entry avoids false breakouts and being trapped
  3. Simple and intuitive logic, easy to understand
  4. Flexible SMA parameter tuning for different cycles
  5. Trend following avoids counter-trend risks

Risk Analysis

  1. Long holding in long cycle risks loss expansion
  2. SMA crossover has some lag, may miss best entry points
  3. Requires SMA parameter optimization, otherwise signals may be inaccurate
  4. Long holding introduces overnight risks

Risks can be managed through position sizing, SMA optimization, stop loss strategies etc.

Optimization Directions

  1. Test different SMA periods to find optimal parameters
  2. Evaluate entry delay to filter out signals
  3. Introduce stop loss adaptable to actual price action
  4. Study parameter preference across different products
  5. Test adding re-entry and pyramiding rules to optimize holding

Summary

This strategy holds positions based on 3 SMA crossovers to determine trend direction. Pros are simple clear signals and configurability; Cons are lagging signals and parameter dependency. Performance can be improved and risks controlled through parameter optimization, stop loss etc. It helps traders master using SMA and crossover strategies.

Source
Pine
/*backtest
start: 2023-08-21 00:00:00
end: 2023-09-20 00:00:00
period: 3h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// © DaynTrading

//@version=4
// strategy(
Strategy parameters
Strategy parameters
SMA Top
SMA Mid
SMA Low
Long: After trigger, how many bars to wait?
Short: After trigger, how many bars to wait?
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)