OPEN-SOURCE SCRIPT
Zaktualizowano 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.
Informacje o Wersji
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.Informacje o Wersji
Breach lines and more alert functions added- Any level cross alert
- Any level low cross alert
- Any level high cross alert
Informacje o Wersji
Fixed error in code for alerts. Alerts once per breach and then resets for the next breach.Informacje o Wersji
Monthly, 30m, 15m and 5m MS highs and lows option added.Informacje o Wersji
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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.