OPEN-SOURCE SCRIPT
Actualizado

MTF Market Structure Highs and Lows

97 396
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.
Notas de prensa
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.
Notas de prensa
Breach lines and more alert functions added

- Any level cross alert
- Any level low cross alert
- Any level high cross alert
Notas de prensa
Fixed error in code for alerts. Alerts once per breach and then resets for the next breach.
Notas de prensa
Monthly, 30m, 15m and 5m MS highs and lows option added.
Notas de prensa
Upgraded to Pine Script v6

Bug 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.

Exención de responsabilidad

La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.