Type/to search

Price Channel and MACD Based Multi Timeframe Trading Strategy

Cryptocurrency
Created: 2023-12-08 15:15:37
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy combines price channel indicator and MACD indicator to track trends and identify overbought and oversold levels across multiple timeframes, thereby making buy and sell decisions. The strategy also incorporates stop loss and take profit to manage risks.

Strategy Logic

The price channel indicator constructs a price channel based on EMA lines of highest and lowest prices to determine trends when price breaks out of the channel. The MACD indicator judges bullish and bearish momentum. Values above zero line suggest a bull market while values below suggest a bear market.

The trading signals of this strategy come from the following aspects:

  1. Enter long when MACD histogram flips red. Enter short when MACD histogram flips green.

  2. Enter short when price approaches the bottom of the channel and MACD is below zero line.

  3. Enter long when price approaches the top of the channel and MACD is above zero line.

  4. Enter long when MACD crosses above zero line. Enter short when MACD crosses below zero line.

Exits are triggered by stop loss and take profit.

Advantages of the Strategy

  1. Combination of indicators prevents false breakout.

  2. Combination of indicators across timeframes ensures reliable trend detection.

  3. Incorporation of stop loss and take profit effectively controls per trade loss.

Risks of the Strategy

  1. Limited optimization space leading to overoptimization.

  2. Low setting of price channel misses larger moves.

  3. Tight stop loss causes larger losses.

Solutions:

  1. Adopt walk forward optimization to prevent overoptimization.

  2. Set adaptive parameters for price channel.

  3. Introduce volatility based stop loss for dynamic adjustment of stop distance.

Directions of Optimization

  1. Optimize combination of MACD parameters.

  2. Optimize adaptive calculation of price channel parameters.

  3. Add more filters to prevent false breakouts and improve efficiency.

Summary

This strategy combines the strengths of price channel and MACD by reasonable parameter setups and large optimization space. It performs well in trend detection and overbought/oversold identification. The stop loss/take profit mechanism controls per trade loss. Going forwards, improvements can be made by parameters optimization, adding filters and optimizing the stop loss mechanism.

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

//@version=2
strategy("Sonic R + Barcolor MACD", overlay=true)
HiLoLen     = input(34, minval=2,title="High Low channel Length")
pacL        = ema(low,HiLoLen)
Strategy parameters
Strategy parameters
High Low channel Length
fastLength
slowlength
MACDLength
PeriodLookBack
Stop Loss Point
Reward/Risk
Use exit order strategy?
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)