Type/to search

Dual Moving Average With Momentum Breakout Strategy

Common strategy
Created: 2024-02-06 14:39:22
Last modified: 2 years ago
1
Follow
1802
Followers

img

Overview

This strategy uses the golden cross of 12-day EMA and 26-day EMA as the entry signal. To filter false breakouts, MACD is applied to judge market trend and RSI for overbought/oversold levels. Price breakout above resistance is also used as confirmation.

The strategy provides three optional stop loss methods: trailing stop loss, moving average stop and moving average crossover stop. Two take profit targets are set.

Strategy Logic

  1. Entry Signal
    • Golden cross between 12-day EMA and 26-day EMA
    • MACD is positive and MACD line above Signal line
    • RSI within preset range
  2. Entry Confirmation
    • Optional: Price breakout above dynamic resistance
  3. Stop Loss
    • Trailing stop loss based on entry price and preset percentage
    • Close below 7-day SMA
    • Bearish cross between 12-day and 26-day EMA
  4. Take Profit
    • Two staged take profit targets, exit partial position on first target and all on second

Advantages

  1. MA system filters false signals, improves entry accuracy
  2. Multiple stop loss options for different trader style
  3. Dynamic trailing stop controls risks
  4. Take profit in stages locks in some profit

Risks

  1. More false signals when market oscillates
  2. Trailing stop may be penetrated after strong run
  3. Fail to exit timely on trend reversal

Solutions:

  1. Use MACD to judge real trend
  2. Adjust trailing percentage
  3. Use other stop methods or combine stops

Enhancement

  1. Optimize MA parameters for best performance
  2. Test different stops and find best method
  3. Adjust take profit levels for better reward
  4. Add filters with other indicators
  5. Customize for different products and timeframes

Conclusion

The strategy uses MA system for entry signal, with additional filters by MACD, RSI etc. Both stops and profit targets are optimized for matching different trader style. There is still large room for optimization on entry timing, stop method, take profit level etc. to further improve performance.

Source
Pine
/*backtest
start: 2023-01-30 00:00:00
end: 2024-02-05 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © AbdulRahimShama
//@version=5
Strategy parameters
Strategy parameters
BUYVALUE
Entry_Exit Criteria
Show_Only_12_26_Crossover_Entry
Show_12_26_Crossover_and_resistance_Entry
Show_TSL_StopLoss
Show_Crossdown_StopLoss
Show_SMA7_StopLoss
Target-1
Target (%)
Target1_exit_qty
Target-2
Target (%)
Target2_exit_qty
Trailing StopLoss
TSL Source
Trail Long Loss (%)
RESISTANCE
CrossOverLookbackCandles
resistanceSRC
resistanceLEFT
resistanceRIGHT
RSI
RSILowerRange
RSIUpperRange
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)