PROTECTED SOURCE SCRIPT
Tradebot Moving Average Combo

What it does
This indicator plots up to four configurable moving averages (EMA/SMA/WMA/HMA/RMA/VWMA/KAMA/DEMA/TEMA/LSMA) and provides:
• Pair-selective MA Cloud: You choose any two MAs (A/B) and the cloud renders only for that pair. The cloud color flips with polarity (A above B = bullish; A below B = bearish).
• Close-confirmed cross alerts: Both MA×MA and Price×MA crosses are confirmed on bar close to reduce repaint noise.
• Custom KAMA core: A stability-oriented, ER-based KAMA implementation for smoother behavior.
Why it’s useful / originality
Instead of drawing all possible clouds at once, this tool focuses on pair-specific regime visualization with polarity coloring, plus close-confirmed alerts and an extended MA set (incl. custom KAMA & LSMA). The goal is a concise, trade-ready read of trend alignment, pullback re-engagement, and momentum shifts without chart clutter.
How it works (logic)
• MA engine supports EMA, SMA, WMA, HMA, RMA, VWMA, KAMA (custom), DEMA, TEMA, LSMA.
• Cloud: renders only for the selected pair (cloudA, cloudB), color = bullish if A>B, bearish otherwise.
• Signals (all confirmed at close):
– MA Bullish/Bearish Cross = ta.crossover(maA, maB) / ta.crossunder(maA, maB)
– Price Cross Up/Down MAx = ta.crossover(close, MAx) / ta.crossunder(close, MAx)
• Alerts use short, fixed strings; no links or external calls.
How to use
Enable up to four MAs and set periods (e.g., 20/50/100/200).
Select the cloud pair to track (e.g., MA1 vs MA2 for fast/slow bias).
Enable alerts you trade (MA × MA for regime shifts; Price × MA for re-entries).
Works on standard candles across common markets/timeframes. Apply your own risk management.
Defaults / conduct notes
• Uses barstate.isconfirmed so signals lock at bar close (no forward-looking tricks).
• No request.security() lookahead; no non-standard chart types.
• This is an indicator (not a strategy); no backtest results are shown.
• No performance promises; educational/analytical use only.
UI wording (EN equivalents of panel labels)
• “Moving Average 🔴🟠🟡🔵” → Moving Average Settings
• “Cross and Cloud” → Cross & Cloud Controls
• “Ma1/Ma2/Ma3/Ma4” → Enable MA1/MA2/MA3/MA4
• “Cloud” → Enable Cloud; Select Pair (A/B)
Disclaimer: Not intended for non-standard chart types; past results do not guarantee future performance.
The chart below shows four moving averages (21, 50, 100, 200) with the selected MA1–MA2 cloud enabled.
Example view:

Green cloud = bullish alignment (MA1 above MA2),
Red cloud = bearish alignment (MA1 below MA2).
This indicator plots up to four configurable moving averages (EMA/SMA/WMA/HMA/RMA/VWMA/KAMA/DEMA/TEMA/LSMA) and provides:
• Pair-selective MA Cloud: You choose any two MAs (A/B) and the cloud renders only for that pair. The cloud color flips with polarity (A above B = bullish; A below B = bearish).
• Close-confirmed cross alerts: Both MA×MA and Price×MA crosses are confirmed on bar close to reduce repaint noise.
• Custom KAMA core: A stability-oriented, ER-based KAMA implementation for smoother behavior.
Why it’s useful / originality
Instead of drawing all possible clouds at once, this tool focuses on pair-specific regime visualization with polarity coloring, plus close-confirmed alerts and an extended MA set (incl. custom KAMA & LSMA). The goal is a concise, trade-ready read of trend alignment, pullback re-engagement, and momentum shifts without chart clutter.
How it works (logic)
• MA engine supports EMA, SMA, WMA, HMA, RMA, VWMA, KAMA (custom), DEMA, TEMA, LSMA.
• Cloud: renders only for the selected pair (cloudA, cloudB), color = bullish if A>B, bearish otherwise.
• Signals (all confirmed at close):
– MA Bullish/Bearish Cross = ta.crossover(maA, maB) / ta.crossunder(maA, maB)
– Price Cross Up/Down MAx = ta.crossover(close, MAx) / ta.crossunder(close, MAx)
• Alerts use short, fixed strings; no links or external calls.
How to use
Enable up to four MAs and set periods (e.g., 20/50/100/200).
Select the cloud pair to track (e.g., MA1 vs MA2 for fast/slow bias).
Enable alerts you trade (MA × MA for regime shifts; Price × MA for re-entries).
Works on standard candles across common markets/timeframes. Apply your own risk management.
Defaults / conduct notes
• Uses barstate.isconfirmed so signals lock at bar close (no forward-looking tricks).
• No request.security() lookahead; no non-standard chart types.
• This is an indicator (not a strategy); no backtest results are shown.
• No performance promises; educational/analytical use only.
UI wording (EN equivalents of panel labels)
• “Moving Average 🔴🟠🟡🔵” → Moving Average Settings
• “Cross and Cloud” → Cross & Cloud Controls
• “Ma1/Ma2/Ma3/Ma4” → Enable MA1/MA2/MA3/MA4
• “Cloud” → Enable Cloud; Select Pair (A/B)
Disclaimer: Not intended for non-standard chart types; past results do not guarantee future performance.
The chart below shows four moving averages (21, 50, 100, 200) with the selected MA1–MA2 cloud enabled.
Example view:
Green cloud = bullish alignment (MA1 above MA2),
Red cloud = bearish alignment (MA1 below MA2).
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.
𝐓𝐫𝐚𝐝𝐞𝐛𝐨𝐭 Bakanlık Onaylı İndikatör Sistemi
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.
𝐓𝐫𝐚𝐝𝐞𝐛𝐨𝐭 Bakanlık Onaylı İndikatör Sistemi
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.