Type/to search

MACD and SMA 200 Combo Strategy

Cryptocurrency
Created: 2023-09-11 17:32:34
Last modified: 3 years ago
1
Follow
1781
Followers

This strategy combines the classic MACD indicator with the 200-period SMA moving average to generate trading signals.

Specifically, it goes long when both MACD histogram and momentum are above 0, fast MA is above slow MA. Price above 200-period SMA serves as the second filter for bullish bias. The opposite logic triggers shorts.

The advantage of this strategy is utilizing MACD for short-term trend and rhythm, and SMA for long-term trend direction. Combination improves accuracy and avoids whipsaws. However, both MACD and SMA have lagging issues and cannot promptly detect reversals.

In summary, the MACD & SMA 200 combo strategy suits medium-long term holding. It effectively captures major trend change points. But attention is needed on timing of indicator signals to avoid chasing tops/bottoms.

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

//@version=2
strategy("MACD + SMA 200 Strategy (by ChartArt)", shorttitle="CA_-_MACD_SMA_strategy", overlay=true)

// ChartArt's MACD + SMA 200 Strategy
Strategy parameters
Strategy parameters
source
MACD fast moving average
MACD slow moving average
MACD signal line moving average
Very slow moving average
Enable Bar Color?
Enable Moving Averages?
Enable Background Color?
Max Intraday Loss(%)
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)