OPEN-SOURCE SCRIPT

Ata✨SMA

55
This Pine Script v6 indicator performs three main functions on a trading chart:

Multiple Moving Averages (MA)

Displays 7 moving averages with fixed lengths (5, 10, 20, 30, 50, 100, 200).

Allows the user to select the MA type: SMA, EMA, WMA, or HMA.

Each MA has a distinct color and line width for clear visual differentiation.

Support and Resistance (S/R) Levels

Identifies key price levels based on pivot points (local highs/lows) within a user‑defined lookback period.

Filters levels by:

Minimum strength (number of touches).

Maximum zone width (as a percentage of price range).

Timeframe (user‑selectable: 5m to monthly).

Visualizes levels as horizontal zones (boxes) colored by type:

Red (res_col) for resistance.

Green (sup_col) for support.

Blue (inch_col) for indecision zones.

Optionally shows a table with level prices, types, and strength percentages.

Includes alert triggers for breakouts (price closing above resistance or below support).

Volume Profile (Side Volumes)

Builds a horizontal volume histogram to the right of the last bar, showing buy/sell volume distribution across price levels.

Highlights the Point of Control (POC) — the price with the highest total volume.

Colors:

Light blue for buy volume.

Light red for sell volume.

Yellow for POC line.

Allows customization of:

Number of bars used for calculation.

Rightward shift of the volume profile.

POC line extension leftward.

Includes tooltips explaining POC and trading scenarios.

Summary:
The script combines trend-following MAs, dynamic S/R zones with alerts, and volume profile analysis into a single indicator for multi‑faceted market structure assessment.

إخلاء المسؤولية

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.