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」として表示します。
使い方
上位足のラインやディシジョン・レベルが重なるポイント(コンフルエンス)でのプライスアクションに注目してください。アラートを設定することで、ラインへのタッチやリテストを通知することが可能です。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。