Type/to search

Dual Moving Average Trend Tracking Strategy

Common strategy
Created: 2024-02-04 15:57:12
Last modified: 2 years ago
1
Follow
1802
Followers

img

Overview

The Dual Moving Average Trend Tracking strategy utilizes a combination of fast and slow moving averages to determine trend direction, along with candlestick body color as entry signals. This strategy has both trend following and mean reversion characteristics.

Principle

The strategy uses a 20-period slow moving average to define overall trend. Upward crossover suggests an uptrend while downward crossover suggests a downtrend. A 5-period fast MA serves as an entry filter. Trades are triggered only when price breaks the fast MA. In addition, recent N candle body colors are checked. Long signals are triggered when body color turns red in an uptrend. Short signals are triggered when body color turns green in a downtrend. This helps avoid false breakouts.

The strategy examines price action using three dimensions - trend, short-term MA and candlestick body, improving signal reliability. Signals are generated only when all three align, filtering out some noise.

Advantages

  1. Combines trend following and mean reversion, adaptable across market environments.

  2. Multi-factor review prior signals improves win rate by avoiding false signals.

  3. Optimizable using MA lengths, candle colors checked etc.

  4. Clear, concise logic, beginner friendly.

Risks

  1. Whipsaws during rangy markets can lead to losses/drawdowns. Consider loss limits or optimizing MA parameters.

  2. Potential whipsaws during sideways may result in losses. Try tweaking number of candles checked or disabling mean reversion.

  3. Extensive backtesting needed to validate parameters and performance.

Enhancement

  1. Explore other MA types e.g. EMA, KAMA etc.

  2. Add position sizing rules e.g fixed quantity or % equity based.

  3. Build in stop loss mechanism. Consider exiting longs if price closes below slow MA.

  4. Test across different instruments to verify stability.

Conclusion

The Dual MA strategy profits from trend trades while extracting mean reversion alpha in shorter time frames. Performance and profit potential can be improved further through optimization. Despite its simplicity, it allows beginners to grasp key concepts around combining trend and mean reversion. Comprehensive validation is must across instruments and parameters.

Source
Pine
/*backtest
start: 2024-01-04 00:00:00
end: 2024-02-03 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
strategy(title = "Noro's Trend MAs 1.5", shorttitle = "Trend MAs 1.5", overlay=true, default_qty_type = strategy.percent_of_equity, default_qty_value=100.0, pyramiding=0)

//Settings
Strategy parameters
Strategy parameters
long
short
Type of Slow MA
Source of Slow MA
Use fast MA Filter
fast MA Period
slow MA Period
Bars Q
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)