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.
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente gphidel.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.
Declinazione di responsabilità
Script su invito
Solo gli utenti approvati dall'autore possono accedere a questo script. È necessario richiedere e ottenere l'autorizzazione per utilizzarlo. Tale autorizzazione viene solitamente concessa dopo il pagamento. Per ulteriori dettagli, seguire le istruzioni dell'autore riportate di seguito o contattare direttamente gphidel.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.