Type/to search

Heiken Ashi Moving Average Crossover Strategy with MACD Filter V3

Cryptocurrency
Created: 2023-10-25 11:26:17
Last modified: 3 years ago
1
Follow
1781
Followers

img

Overview

This strategy generates trading signals by calculating the moving average crossover of Heiken Ashi candles, combined with MACD as a filter condition. It implements a relatively stable trading system.

Strategy Logic

  1. Calculate the open and close prices of Heiken Ashi candles.

  2. Calculate fast moving average (EMA) and slow moving average (SMA).

  3. When fast MA crosses above slow MA, a buy signal is generated.

  4. When fast MA crosses below slow MA, a sell signal is generated.

  5. If MACD filter is enabled, buy signals are only generated when MACD histogram crosses above 0 line, and sell signals are only generated when MACD histogram crosses below 0 line.

Advantage Analysis

  1. Heiken Ashi candles effectively filter out market noise, making MA crossover signals more reliable.

  2. Combining MAs of different periods avoids false breakouts from single MA.

  3. MACD filter further avoids false signals and improves signal quality.

  4. Using Heiken Ashi to calculate MA reduces drawdowns from regular candles.

  5. The strategy has reasonable parameters and moderate trading frequency, allowing stable profits without high frequency trading.

Risk Analysis

However, some risks need to be noticed:

  1. Repeated position adjustments may occur in ranging markets.

  2. MACD filter may fail in some cases, resulting in false signals.

  3. MA systems are sensitive to parameter tuning, requiring careful optimization.

  4. Long holding positions need to monitor events that may cause significant market changes.

  5. Manual judgement of major trends is still needed to avoid losses from counter-trend trading.

In conclusion, this is a relatively mature MA strategy that can provide steady profits with proper parameter tuning. But traders still need to watch out for risks, adjust positions accordingly, and combine trend analysis when applying it.

Source
Pine
/*backtest
start: 2023-09-24 00:00:00
end: 2023-10-24 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=3
//Heiken-Ashi Strategy  V3 by wziel

// strategy("Heiken-Ashi Strategy  V3",shorttitle="WZIV3",overlay=true,default_qty_value=10000,initial_capital=10000,currency=currency.USD)
Strategy parameters
Strategy parameters
Heikin Ashi Candle Time Frame
Heikin Ashi Candle Time Frame Shift
Heikin Ashi EMA Time Frame
Heikin Ashi EMA Time Frame Shift
Heikin Ashi EMA Period
Heikin Ashi EMA Shift
Slow EMA Period
Slow EMA Shift
With MACD filter
MACD Time Frame
MACD Shift
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)