Type/to search

Hull MA Channel and Linear Regression Swing Trading Strategy

Cryptocurrency
Created: 2023-12-01 16:47:01
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This is a swing trading strategy that combines Hull MA, price channel, EMA signal and linear regression. It uses Hull MA to determine market trend direction, price channel and linear regression to identify bottom area, EMA signal to time market entry, in order to capture medium-term trends.

Strategy Logic

The strategy consists of the following main indicators:

  1. Hull MA
    • Typical period of Hull MA is 337, representing medium to long term trend direction
    • When 2 times 18-period WMA is above 337-period WMA, it's a bull market, otherwise it's a bear market
  2. Price Channel
    • Price channel plots EMA high and EMA low, representing support and resistance area
  3. EMA Signal
    • Typical period is 89, representing short-term trend and entry signal
  4. Linear Regression
    • Fast line of 6 period for bottom and breakout
    • Slow line of 89 period for medium to long term trend

Entry Logic:

Long Entry: Hull MA pointing up and price above upper band, linear regression crossing up EMA signal
Short Entry: Hull MA pointing down and price below lower band, linear regression crossing down EMA signal

Exit Logic:

Long Exit: Price below lower band and crossing down linear regression
Short Exit: Price above upper band and crossing up linear regression

Advantage Analysis

The strategy has the following advantages:

  1. Higher accuracy with multiple indicators
    • Hull MA for main trend, channel for support/resistance, EMA for entry
  2. Swing trading to capture medium-term trends
    • Strategy mainly reversals to capture each medium-term cycle
  3. Controllable risk and smaller drawdown
    • Signal only generated at high probability area, avoiding chase high kill low

Risk Analysis

There are also some risks:

  1. Limited optimization space
    • Main parameters like EMA period is fixed, with small optimization space
  2. May lose in range-bound market
    • Stop loss may be triggered in sideways range
  3. Need some technical analysis knowledge
    • Strategy logic needs price action and indicator knowledge, not suitable for everyone

Improvements:

  1. Adjust stop loss strategy, e.g. trailing stop loss
  2. Optimize entry and exit logic
  3. Add other filter indicators like MACD

Summary

The strategy combines Hull MA, price channel, EMA and linear regression for a complete medium-term swing trading strategy. Compared to single indicator strategies, it improves accuracy significantly in catching trends and reversals. But there are still risks, requiring technical analysis knowledge. Further improvements on parameters and logic can enhance stability.

Source
Pine
/*backtest
start: 2023-11-23 00:00:00
end: 2023-11-30 00:00:00
period: 1m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=2
strategy("Swing Hull/SonicR/EMA/Linear Regression Strategy", overlay=true)
//Hull MA
n=input(title="HullMA Period",defval=377)
Strategy parameters
Strategy parameters
HullMA Period
EMA Signal
High Low channel Length
Linear Regression Length
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)