OPEN-SOURCE SCRIPT
Alinhamento H1 + H4 com Fundo Colorido

MACD Alignment Strategy: H1 + H4
This script highlights candles on the H1 chart with a colored background when there's full alignment between H1 and H4 based on the classic MACD (12,26,9) and EMA 200.
✅ Bullish background (green):
Price is above the EMA 200 on both H1 and H4
On both H1 and H4:
MACD line is above the Signal line
Histogram is green and above zero
MACD is above zero
❌ Bearish background (red):
Price is below the EMA 200 on both H1 and H4
On both H1 and H4:
MACD line is below the Signal line
Histogram is red and below zero
MACD is below zero
Use this tool to visually confirm trend alignment between timeframes and filter high-probability entries.
This script highlights candles on the H1 chart with a colored background when there's full alignment between H1 and H4 based on the classic MACD (12,26,9) and EMA 200.
✅ Bullish background (green):
Price is above the EMA 200 on both H1 and H4
On both H1 and H4:
MACD line is above the Signal line
Histogram is green and above zero
MACD is above zero
❌ Bearish background (red):
Price is below the EMA 200 on both H1 and H4
On both H1 and H4:
MACD line is below the Signal line
Histogram is red and below zero
MACD is below zero
Use this tool to visually confirm trend alignment between timeframes and filter high-probability entries.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.