OPEN-SOURCE SCRIPT

Malaysian SnR Kai[DoN]

164

This indicator is a sophisticated trading tool based on Malaysian SnR (Support and Resistance) techniques. It is designed to identify high-probability reversal and continuation zones by filtering market noise and tracking the "life cycle" of a price level.
Here is a detailed explanation of its core features and logic:
1. SMA 21 "Quality Control" Filter
Unlike standard indicators that mark every pivot point, this script uses the 21-period Simple Moving Average (SMA) as a quality filter:
Resistance (A-Peaks): Only peaks that form above the SMA 21 are drawn.
Support (V-Bottoms): Only troughs that form below the SMA 21 are drawn.
The Logic: Sharp peaks/troughs that deviate from the moving average represent strong momentum and clear market rejection. These levels are much more likely to be respected by institutional traders.
2. Dynamic Role Reversal (RBS & SBR)
The indicator automatically tracks when a level's "role" changes, a concept central to Price Action trading:
RBS (Resistance Become Support): When a previously confirmed Resistance (A-Peak) is broken to the upside, it turns into a potential Support zone.
SBR (Support Become Resistance): When a confirmed Support (V-Bottom) is broken to the downside, it turns into a potential Resistance zone.
Auto-Delete (Invalidation): If price breaks through an RBS or SBR line again (violating the new role), the indicator instantly removes the line. This ensures your chart only shows levels that are currently valid.
3. Proximity Filter (Top 2 Closest)
To prevent "chart clutter," the script includes an intelligent filtering system for historical lines:
It calculates the distance between the current price and all active RBS/SBR lines.
It only displays the top 2 closest lines to the current price.
This keeps your focus on the levels that matter most for your next trade.
4. Higher Timeframe (HTF) Confluence
The indicator overlays SnR levels from a Higher Timeframe (e.g., Daily or 4H) onto your current chart:
These are displayed as dashed lines.
Trading Tip: When a Current Timeframe RBS/SBR level aligns with an HTF level, you have a "Confluence Zone," which significantly increases the win rate of a setup.
5. Advanced Visuals
Zones (Boxes): Instead of a thin line, the indicator draws a box (zone) that includes the price action near the peak/trough, acknowledging that SnR is an area, not a specific pip.
Labels at Origin: Labels (e.g., "V: 1.0850") are placed at the exact starting point of the level. This allows you to quickly see which specific historical move created the current level.
Future Extension: All active lines are extended into the future, providing a clear visual guide for where price might react next.
How to Use It in Your Strategy
Pullback Trading: Wait for the price to return to a cyan (Support) or orange (Resistance) zone. Look for rejection candles (pin bars, engulfing) within the box.
Role Reversal Entry: Watch for the price to retest an RBS (Resistance Become Support) line after a breakout. This is a classic "Buy the Dip" entry in an uptrend.
Confluence: The strongest signals occur when the price hits a Current TF line and an HTF dashed line at the same time.
Risk Management: If a line disappears from your chart, the "logic" for your trade has been invalidated. This can serve as a signal to close a position or move your stop loss.
Summary
This tool is built for traders who value clean charts and high-conviction levels. It automates the tedious work of drawing and deleting lines, allowing you to focus purely on price reaction at key decision points.


このインジケーターは、マレーシアスタイルのFX手法(特にSnRや役割転換を重視する手法)に基づいた、**「高勝率な反発・押し目ポイントを自動描画する」**ための非常に高度なツールです。
主な特徴は、SMA21によるフィルタリングと、役割転換(RBS/SBR)の自動管理にあります。
各機能の解説を以下にまとめました。
1. SMA21 フィルター(品質の選別)
ただの山や谷をすべて描画するのではなく、移動平均線(SMA21)を使って「意味のあるポイント」だけを抽出します。
Aライン(レジスタンス / 山): 頂点がSMA21より上にある場合のみ描画。
Vライン(サポート / 谷): 底がSMA21より下にある場合のみ描画。
理由: 移動平均線から乖離した位置にある「鋭い山・谷」は、市場参加者に意識されやすく、強い反発根拠になるためです。
2. ロールリバーサル(RBS/SBR)の自動管理
このインジケーターの最も強力な部分です。ラインが破られた後の「役割の交代」を追跡します。
RBS (Resistance Become Support):
元々「Aライン(山)」だったレジスタンスが、価格に上抜かれた後、今度は「サポート」として機能している状態。
SBR (Support Become Resistance):
元々「Vライン(谷)」だったサポートが、価格に下抜かれた後、今度は「レジスタンス」として機能している状態。
自動削除(再ブレイク判定):
一度役割が転換したライン(RBS/SBR)でも、価格が再びそのラインを突き抜けた場合、そのラインは「無効」とみなして自動的に削除されます。これにより、常に「現在有効なライン」だけがチャートに残ります。
3. 近接フィルター(情報の整理)
チャートがラインだらけになるのを防ぐため、RBSとSBRの履歴ラインは**「現在値に近い順に最大2本まで」**しか表示されません。常に今すぐトレードに役立つラインに集中できます。
4. HTF(上位足)SnRの重ね合わせ
現在の足よりも上位(例:日足や4時間足)の重要なラインを点線で表示します。
下位足でのエントリーポイントが、上位足のラインと重なっていれば、それは非常に強力な「コンフラウンス(根拠の重なり)」となります。
5. ビジュアル(視覚的な工夫)
ゾーン表示(ボックス): ライン単体ではなく、ヒゲを含めた「帯」として意識するためのボックスを描画します。
起点ラベル: ラベルをラインの発生源(起点)に表示することで、過去のどの山・谷から引かれたラインなのかが一目でわかります。
未来延長: リアルタイムでラインが右側に伸びるため、将来の反発予測がしやすくなっています。
トレードでの活用例
押し目買い/戻り売り:
SMA21フィルターを通った新鮮なA/Vライン、または現在表示されているRBS/SBRラインに価格が戻ってきたところを狙います。
根拠の重なり(合流):
現在の足のRBSラインと、上位足(点線)のサポートラインが同じ価格帯にある場合、そこは非常に強い反発ポイントになります。
損切りの目安:
表示されているラインを価格が実体で明確に抜けると、インジケーターからそのラインが消えます。これは「根拠が崩れた」サインであり、損切りの判断材料になります。
まとめ
このインジケーターは、**「トレンドの中での目立った節目」を見つけ、それが「役割を変えてからも機能しているか」**を自動で監視してくれる、トレーダーの環境認識を大幅に短縮するツールです。

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.