Type/to search

Moving Average Band Breakout Strategy

Cryptocurrency
Created: 2023-09-17 18:33:57
Last modified: 3 years ago
1
Follow
1781
Followers

Overview

This strategy uses moving averages to form a price channel and generate signals when the price breaks out of the channel bands. It is a typical trend following strategy that can achieve simple long/short positions through parameter tuning.

Strategy Logic

  1. Calculate moving averages, with options like SMA/EMA/WMA/RMA.

  2. Upper band is certain percentage increment of moving average. Lower band is certain percentage decrement.

  3. Go long on breaking above upper band, go short on breaking below lower band. Options for long-only, short-only or dual directional trading.

  4. Set stop loss and take profit points. Take profit point is certain percentage increment of entry price. Stop loss point is certain percentage decrement of entry price.

Advantage Analysis

  1. Simple to implement trend determination using moving averages.

  2. Adjustable parameters accommodate different holding periods and risk preferences.

  3. Optional long/short directions adapt to various market conditions.

  4. Fixed percentage stop loss and take profit allows controllability.

Risk Analysis

  1. Prone to being trapped when trend changes abruptly.

  2. Improper parameter tuning risks over-trading or lagging.

  3. Fixed percentage stop loss/profit lacks flexibility.

  4. Increased trade frequency and commission costs with dual directional trading.

Optimization Directions

  1. Optimize moving average parameters to balance lagging and noise.

  2. Optimize channel bandwidth to match market volatility frequency.

  3. Test different stop loss and take profit configurations. Dynamic stops more effective.

  4. Add trend and oscillation indicators to gauge overall market conditions.

  5. Implement time filters to avoid significant event impacts.

Summary

The strategy achieves simple trend following through moving average channels, but needs stronger parameter optimization and risk control. More technical indicators can then be introduced to further improve strategy logic.

Source
Pine
/*backtest
start: 2023-08-17 00:00:00
end: 2023-09-16 00:00:00
period: 1h
basePeriod: 15m
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/
// © TaylorTneh
//@version=4
Strategy parameters
Strategy parameters
Source
Moving Average Type
MA Period : 10
Band Gap : 0.6
# Stop Loss %
# Take Profit %
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)