PROTECTED SOURCE SCRIPT

4H SMA+CCI Signal Map - J&C

41
Overview

This TradingView indicator identifies high-timeframe (HTF) trend-confirmation entry signals based on the relationship between two Simple Moving Averages (SMAs) and the Commodity Channel Index (CCI). It provides visual cues (arrows, labels, and background shading) when a new 4-hour bar confirms a long or short setup, even if applied to lower-timeframe charts (like 1H or 15m).

Core Concept

The script monitors higher-timeframe (default: 4H) trend conditions:

Fast SMA (default 20) and Slow SMA (default 40) determine the trend direction.

CCI (default 5-period) acts as a momentum filter.

Signals are generated only when a new 4H candle opens, ensuring cleaner higher-timeframe alignment and avoiding lower-timeframe noise.

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.