Type/to search

Dynamic MA Crossover Trend Following Strategy

Cryptocurrency
Created: 2023-12-19 11:49:30
Last modified: 2 years ago
1
Follow
1779
Followers

img

Overview

This strategy uses the crossover of dynamic resistance/support bands and MA lines as entry signals, and adopts trend following stops to lock in profits.

Strategy Logic

  1. Calculate dynamic resistance and support levels using percentile statistics to identify potential reversal zones.

  2. When price enters the reversal zone, check if fast MA crosses over/under slow MA to generate trading signals.

  3. After entry, start trailing stop mechanism to lock in profits dynamically and follow the trend.

  4. When price hits predefined stop loss or take profit levels, close positions.

Advantages

  1. Dynamic bands help identify potential reversal areas and improve entry accuracy.

  2. Combining MA crossover and percentile channel avoids false signals.

  3. Trailing stop locks in profits effectively and prevents excessive drawdowns.

  4. Customizable parameters suit different market environments.

Risks

  1. False signals may occur in non-trending markets.

  2. Overly aggressive entries due to improper parameter tuning.

  3. Backtest data should cover sufficient market cycles.

  4. Consider wider stops in live trading to prevent gaps.

Enhancement

  1. Test different MA periods combinations.

  2. Optimize reversal identification by adjusting dynamic bands parameters.

  3. Evaluate impacts on equity curve from different trailing stop parameters.

  4. Try adding filters to improve reliability.

Conclusion

The overall logic of this strategy is clear. It uses dynamic bands to filter signals, judges trend direction by MA crossover, and effectively controls risk with trailing stop mechanism. Further optimization through parameter tuning can continuously improve strategy performance for production.

Source
Pine
/*backtest
start: 2022-12-12 00:00:00
end: 2023-12-18 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/
// © allanster

//@version=4
Strategy parameters
Strategy parameters
Trade Type
From Year
To Year
Stop Loss Percent
Profit Percent LONG
Profit Percent SHORT
ATR Multiple for PT
ATR Multiple for SL
DZ Length
Hi is Above X% of Sample
Lo is Below X% of Sample
MA16 Resolution
Use DZ SL
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)