OPEN-SOURCE SCRIPT
Cập nhật Ata✨SMA

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.
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.
Phát hành các Ghi chú
fixMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội Quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.