OPEN-SOURCE SCRIPT
MTM Sensei for alerts

MTM — Sensei X
A multi‑confirmation trading framework: reads trend, structure, order flow and volatility, then draws a complete, ready‑to‑manage trade — entry, stop, four exits, breakeven and trailing — with clean on‑chart panels and webhook‑ready alerts.
What it does
Sensei X scores every setup against 20 confirmations grouped into four engines and only triggers when enough of them align in the same direction:
Trend (DEMA): DEMA 15 / 50 / 238 alignment, slope and price location.
Momentum · Volume · Order Flow: volume validation, ADX strength, RSI regime, and real buy/sell delta computed from a lower timeframe (with an on‑chart proxy fallback), plus imbalance and absorption reads.
Market Structure (SMC): CHoCH, BOS, IDM, liquidity sweeps, Order Blocks and swing points.
Sensei / Phase / Volatility: Sensei Bands (1σ) + adaptive cloud, momentum/exhaustion phase and a volatility‑safety check.
Phase engine
Choose how signals fire:
Momentum – triggers on setup completion (continuation). Best for Scalp / Intraday / Aggressive.
Exhaustion – triggers on a full countdown (reversal). Best for Swing / Conservative.
Trading styles (one click)
A multi‑confirmation trading framework: reads trend, structure, order flow and volatility, then draws a complete, ready‑to‑manage trade — entry, stop, four exits, breakeven and trailing — with clean on‑chart panels and webhook‑ready alerts.
What it does
Sensei X scores every setup against 20 confirmations grouped into four engines and only triggers when enough of them align in the same direction:
Trend (DEMA): DEMA 15 / 50 / 238 alignment, slope and price location.
Momentum · Volume · Order Flow: volume validation, ADX strength, RSI regime, and real buy/sell delta computed from a lower timeframe (with an on‑chart proxy fallback), plus imbalance and absorption reads.
Market Structure (SMC): CHoCH, BOS, IDM, liquidity sweeps, Order Blocks and swing points.
Sensei / Phase / Volatility: Sensei Bands (1σ) + adaptive cloud, momentum/exhaustion phase and a volatility‑safety check.
Phase engine
Choose how signals fire:
Momentum – triggers on setup completion (continuation). Best for Scalp / Intraday / Aggressive.
Exhaustion – triggers on a full countdown (reversal). Best for Swing / Conservative.
Trading styles (one click)
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.
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.