P3 Malaysian SNR 3-Candle Pattern

This indicator turns one of the oldest discretionary price-action ideas—“support & resistance role-reversal”—into a fully rule-based, multi-time-frame model.
It detects, marks and continuously tracks the three-candle structure that Malaysian price-action traders call the SNR 3-candle pattern:
Candle-1 sets the impulse:
bullish close → potential future resistance
bearish close → potential future support
Candle-2 immediately closes the opposite way, signalling absorption of the impulse.
Candle-3 closes in the same direction as Candle-2 and confirms the level.
The script then:
Locks the HTF price zone (high/low of Candle-3) with a horizontal level.
Colours only the first two pattern candles yellow on every timeframe so lower-TF traders can see precisely which bars created the HTF level.
What Makes It Original?
Most S/R scripts only draw one line; this overlay colours all lower-TF bars that live inside the HTF pattern, letting scalpers “zoom in” on HTF structure—an approach not found in open-source examples.
Pure Price-Action –
The logic uses only raw OHLC data; there are no MAs, RSI, BB, etc. This is not a re-skin of classic indicator code.
4-column table showing TF, Pattern, Direction, and Candle type
Top-right positioning for easy visibility
Header row with gray background for clear identification
Pattern Highlighting in Table
Yellow background highlights the entire row when a 3-candle pattern is active
Color-coded direction: Green for "Up", Red for "Down"
Color-coded candle type: Green for "Bull", Red for "Bear"
Real-time updates showing current pattern status
Table Controls
Toggle option to show/hide the table via "Show HTF Direction Table" setting
Automatic sizing with proper column widths
Clean formatting with consistent text sizing
How the Table Works
Pattern Detection Display
"Support" appears when: Bearish → Bullish → Bullish sequence detected
"Resistance" appears when: Bullish → Bearish → Bearish sequence detected
"-" appears when no pattern is present
Row Highlighting
Yellow background: Indicates an active 3-candle pattern on that timeframe
White background: No pattern currently active
Colored text: Direction and candle type use green/red for easy interpretation
Real-Time Updates
Table updates on every bar close showing the current status
Pattern highlighting appears immediately when conditions are met
Colors change dynamically as market conditions evolve
This enhanced script now provides both visual bar highlighting and a comprehensive table that clearly shows when Malaysian SNR 3-candle patterns are active across multiple timeframes.
Yalnızca davetli komut dosyası
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact gphidel directly.
TradingView, yazarına tam olarak güvenmediğiniz ve nasıl çalıştığını anlamadığınız sürece bir komut dosyası için ödeme yapmanızı veya kullanmanızı ÖNERMEZ. Ayrıca topluluk komut dosyaları bölümümüzde ücretsiz, açık kaynaklı alternatifler bulabilirsiniz.
Yazarın talimatları
Uyarı: Erişim talebinde bulunmadan önce lütfen yalnızca davetli komut dosyaları kılavuzumuzu okuyun.
Feragatname
Yalnızca davetli komut dosyası
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact gphidel directly.
TradingView, yazarına tam olarak güvenmediğiniz ve nasıl çalıştığını anlamadığınız sürece bir komut dosyası için ödeme yapmanızı veya kullanmanızı ÖNERMEZ. Ayrıca topluluk komut dosyaları bölümümüzde ücretsiz, açık kaynaklı alternatifler bulabilirsiniz.
Yazarın talimatları
Uyarı: Erişim talebinde bulunmadan önce lütfen yalnızca davetli komut dosyaları kılavuzumuzu okuyun.