PROTECTED SOURCE SCRIPT
Cập nhật Compact RSI • MACD Hist • CCI

Combines the RSI, MACD, and CCI for a 3 way confirmation. Keep your Stop Losses tight and Protect your Capital!
Phát hành các Ghi chú
This is a compact RSI, MACD, CCI graph so you can see everything at once and make a quick decision. It has buy alerts when the RSI is over 44 and the MACD Histogram on custom settings is rising. Phát hành các Ghi chú
Compact RSI • MACD Histogram • CCI (One-Pane, Auto-Scaled)What it does
Packs RSI, MACD histogram (34/144/7), and CCI into a single compact pane so you can read momentum and confirmation signals without juggling multiple indicators.
Core signals & alerts
BUY alert: fires when the MACD histogram is rising and RSI > 44 (triggers the first bar that the combined condition becomes true—even if MACD was already rising and RSI crosses later).
SELL alert: fires when the MACD histogram starts falling (rising → falling), regardless of RSI.
Visuals
MACD histogram (4-shade colors):
Above zero & rising = dark green
Above zero & falling = light green
Below zero & falling = dark red
Below zero & rising = light red
RSI line with 50 guide.
CCI line with −100/0/+100 guides.
Tiny BUY/SELL markers on the pane for quick scanning.
Auto-scaling (no more manual zooming)
MACD histogram is auto-normalized to recent extremes so it’s never too tiny or too huge versus RSI/CCI.
Gentle smoothing of the scale prevents flicker while still adapting to volatility.
You can disable auto-scale and set a manual factor if desired.
Inputs you can tweak
RSI length and Buy threshold (default 44)
CCI length (visual aid only)
MACD lengths (default 34/144/7 to your spec)
Auto-scale on/off, lookback window, target visual height (or a manual scale factor)
How to use
Add the indicator and keep alerts set to Once per bar close for clean, non-flickery signals.
Use the BUY alert as a momentum-with-confirmation cue (RSI strength + MACD upswing).
Use the SELL alert as a momentum deterioration cue (MACD swing rolls over).
For added prudence, consider layering simple guards (e.g., skip buys if RSI > 70 or require price above VWAP).
Why it’s useful
One pane = more chart real estate.
Color rules make MACD conditions obvious at a glance.
Auto-scaling keeps everything readable across symbols and timeframes without constant rescaling.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.