OPEN-SOURCE SCRIPT
更新済 MTF Market Structure Highs and Lows

The indicator marks the last fractal highs and lows (W,D,4H and 1H options) to help determine current market structure. The script was created to help with directional bias but also as a MTF visual aid for stop hunts/liquidity raids.
Liquidity areas are where we assume trader's stop losses would be when buying or selling. Liquidity lies above and below swing points and institutions need liquidity to fill large orders.
Monitor price action as it hits these areas for a potential reversal trade.
Liquidity areas are where we assume trader's stop losses would be when buying or selling. Liquidity lies above and below swing points and institutions need liquidity to fill large orders.
Monitor price action as it hits these areas for a potential reversal trade.
リリースノート
Alert function has been added for when price crosses a specified MS high/low. Also option to show previous broken highs/lows has been included.リリースノート
Breach lines and more alert functions added- Any level cross alert
- Any level low cross alert
- Any level high cross alert
リリースノート
Fixed error in code for alerts. Alerts once per breach and then resets for the next breach.リリースノート
Monthly, 30m, 15m and 5m MS highs and lows option added.リリースノート
Upgraded to Pine Script v6Bug Fix — Missing trigger resets for 30m, 15m, and 5m lows Previously, once a low was breached on the 30-minute, 15-minute, or 5-minute timeframe, the alert would not fire again even after a new pivot low formed. This has been corrected — all timeframe triggers now properly reset when a new pivot is detected.
Bug Fix — Line origin accuracy Improved the logic that maps higher-timeframe pivot timestamps to the current chart. Lines now anchor to the correct candle rather than appearing offset due to weekend gaps and session breaks.
New Feature — Price on labels (toggle) Added a "Show Price on Labels" option in settings (enabled by default). When active, each level label displays the price value alongside the timeframe name (e.g. "Daily MS High | 0.70942"). Can be toggled off for a cleaner look.
New Feature — Dynamic alerts for webhooks Added alert() calls for all timeframes alongside the existing alertcondition entries. Each alert includes the ticker, level breached, and current price — ready for webhooks, Telegram, email, or any external notification setup. Select "Any alert() function call" when creating your alert in TradingView.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。