OPEN-SOURCE SCRIPT
Denial [MMT]

Denial [MMT] is a reversal signal indicator designed to help traders identify Morning Star and Evening Star patterns when price attempts to continue in one direction, fails, and turns back the other way.
How to use this indicator
Use Denial [MMT] to scan for potential reversal points after an impulsive move. The indicator looks for a 3-candle structure: a strong first candle, a small-bodied star candle, and a confirmation candle that closes back into the first candle’s range, signaling a possible shift in direction.
For higher-quality setups, keep the structural sweep filter enabled. This helps isolate patterns where the star candle first pushes beyond the prior candle’s extreme before rejecting, which often produces cleaner reversals and removes weaker inside-range formations.
If you want fewer but cleaner signals, keep the stricter filters on and require the pattern to form at equal highs or equal lows. If you want broader signal coverage, enable the option to signal all valid star patterns and disable the session filter to allow setups across all trading hours.
The optional stop loss display can be used as a simple invalidation reference. When enabled, it plots the stop level at the high of a sell signal bar or the low of a buy signal bar, making it easier to frame risk directly from the setup.
This indicator works best as a confirmation tool, not as a standalone reason to enter a trade. It is most useful when combined with key levels, market structure, session context, liquidity sweeps, or your existing framework.
How to use this indicator
Use Denial [MMT] to scan for potential reversal points after an impulsive move. The indicator looks for a 3-candle structure: a strong first candle, a small-bodied star candle, and a confirmation candle that closes back into the first candle’s range, signaling a possible shift in direction.
For higher-quality setups, keep the structural sweep filter enabled. This helps isolate patterns where the star candle first pushes beyond the prior candle’s extreme before rejecting, which often produces cleaner reversals and removes weaker inside-range formations.
If you want fewer but cleaner signals, keep the stricter filters on and require the pattern to form at equal highs or equal lows. If you want broader signal coverage, enable the option to signal all valid star patterns and disable the session filter to allow setups across all trading hours.
The optional stop loss display can be used as a simple invalidation reference. When enabled, it plots the stop level at the high of a sell signal bar or the low of a buy signal bar, making it easier to frame risk directly from the setup.
This indicator works best as a confirmation tool, not as a standalone reason to enter a trade. It is most useful when combined with key levels, market structure, session context, liquidity sweeps, or your existing framework.
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.