OPEN-SOURCE SCRIPT
Malaysian SnR and Decision Levels [DoN]

Features
This script implements a specific Malaysian SnR (Support and Resistance) strategy combined with Decision Levels based on gap analysis. It is designed to help traders identify key reaction levels across multiple timeframes.
How it Works
SnR Levels (Current & Higher Timeframe)
The script calculates Support ("V" shape) and Resistance ("A" shape) based on fractal geometry.
It uses a configurable Pivot Depth (default: 3) to confirm peaks and valleys.
When a High or Low is confirmed by the subsequent bars, a horizontal level is drawn.
Fresh vs. History: The script distinguishes between "Fresh" levels (untouched) and "History" levels. When a level is broken, it converts into a "Role Reversal" line (Support Becomes Resistance - SBR, or Resistance Becomes Support - RBS).
Decision Levels (Gap Analysis)
The script identifies "Decision Levels" derived from specific H4 price action gaps.
A Bullish Decision Level is formed when consecutive bullish candles create a gap structure.
A Bearish Decision Level is formed by consecutive bearish candles.
These levels often act as significant liquidity zones where price may react.
How to Use
Trend Following: Look for price to retrace to a "Fresh" SnR level or Decision Level.
Confluence: The strongest signals occur when a current timeframe SnR level overlaps with a Higher Timeframe (HTF) level or a Decision Level.
Alerts: Users can set alerts for price touching active SnR lines or retesting broken history lines (Role Reversal).
Settings
Current Timeframe SnR: Adjust the pivot depth and colors for local support/resistance.
Decision Levels: Toggle H4 gap analysis.
Higher Timeframe Overlay: display daily/weekly levels on your current chart.
このスクリプトは、マレーシア式SnR(サポレジ)戦略とディシジョン・レベル(ギャップ分析)を組み合わせたツールです。
機能とロジック
SnRレベル(V字/A字)
フラクタル幾何学に基づき、一定期間(Depth)の高値・安値が確定したポイントにラインを引きます。
Fresh(新規): まだブレイクされていないライン。
History(履歴): ブレイクされたラインは、ロールリバーサル(サポレジ転換)ラインとして点線で表示されます(SBR/RBS)。
ディシジョン・レベル
主にH4(4時間足)のローソク足の形成パターンに基づき、強い売り買いのギャップが発生した地点を「Decision Level」として表示します。
使い方
上位足のラインやディシジョン・レベルが重なるポイント(コンフルエンス)でのプライスアクションに注目してください。アラートを設定することで、ラインへのタッチやリテストを通知することが可能です。
This script implements a specific Malaysian SnR (Support and Resistance) strategy combined with Decision Levels based on gap analysis. It is designed to help traders identify key reaction levels across multiple timeframes.
How it Works
SnR Levels (Current & Higher Timeframe)
The script calculates Support ("V" shape) and Resistance ("A" shape) based on fractal geometry.
It uses a configurable Pivot Depth (default: 3) to confirm peaks and valleys.
When a High or Low is confirmed by the subsequent bars, a horizontal level is drawn.
Fresh vs. History: The script distinguishes between "Fresh" levels (untouched) and "History" levels. When a level is broken, it converts into a "Role Reversal" line (Support Becomes Resistance - SBR, or Resistance Becomes Support - RBS).
Decision Levels (Gap Analysis)
The script identifies "Decision Levels" derived from specific H4 price action gaps.
A Bullish Decision Level is formed when consecutive bullish candles create a gap structure.
A Bearish Decision Level is formed by consecutive bearish candles.
These levels often act as significant liquidity zones where price may react.
How to Use
Trend Following: Look for price to retrace to a "Fresh" SnR level or Decision Level.
Confluence: The strongest signals occur when a current timeframe SnR level overlaps with a Higher Timeframe (HTF) level or a Decision Level.
Alerts: Users can set alerts for price touching active SnR lines or retesting broken history lines (Role Reversal).
Settings
Current Timeframe SnR: Adjust the pivot depth and colors for local support/resistance.
Decision Levels: Toggle H4 gap analysis.
Higher Timeframe Overlay: display daily/weekly levels on your current chart.
このスクリプトは、マレーシア式SnR(サポレジ)戦略とディシジョン・レベル(ギャップ分析)を組み合わせたツールです。
機能とロジック
SnRレベル(V字/A字)
フラクタル幾何学に基づき、一定期間(Depth)の高値・安値が確定したポイントにラインを引きます。
Fresh(新規): まだブレイクされていないライン。
History(履歴): ブレイクされたラインは、ロールリバーサル(サポレジ転換)ラインとして点線で表示されます(SBR/RBS)。
ディシジョン・レベル
主にH4(4時間足)のローソク足の形成パターンに基づき、強い売り買いのギャップが発生した地点を「Decision Level」として表示します。
使い方
上位足のラインやディシジョン・レベルが重なるポイント(コンフルエンス)でのプライスアクションに注目してください。アラートを設定することで、ラインへのタッチやリテストを通知することが可能です。
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.