LHAMA MTF Structure & Fibs [LTS]

LHAMA MTF Structure & Fibs is a multi-purpose market structure toolkit that combines current-timeframe structure, higher-timeframe structure, Imbalance/FVG-based order blocks, and automatic Fibonacci retracements into a single chart overlay.
Current-Timeframe Structure
The indicator first maps current-timeframe market structure using swing highs and lows based on a user-defined pivot length (“Time-Horizon”):
- Labels swing points as HH, HL, LH, and LL.
- Draws BOS (Break of Structure) when price breaks beyond a prior swing.
- Optionally identifies CHoCH (Change of Character) when a break occurs against the previous direction.
- Lets you choose whether BOS/CHoCH confirmation uses closes or wicks.
- Provides options to show/hide swing labels, choose line style (solid/dashed/dotted), and configure bullish/bearish colors.
Higher-Timeframe (HTF) Structure
On top of the local structure, the script builds a higher-timeframe structure map and projects it onto your active chart:
- Aggregates price into HTF “bars” (e.g., 4h structure on a 5m chart).
- Detects HTF pivots with their own pivot length setting.
- Draws HTF BOS/CHoCH lines and labels back on the lower timeframe.
- Lets you choose wick vs close confirmation for HTF breaks.
- Optional “pending” HTF levels: lines extended from the latest HTF swing highs/lows that remain “waiting” until price breaks them.
This is designed to make it easier to see how intraday price is moving relative to the dominant higher-timeframe trend.
Order Blocks (Imbalance/FVG-Based)
The indicator detects simple bullish and bearish order blocks based on fair value gaps and prior sweeps:
- Identifies bullish/bearish FVGs together with a sweep of a previous low/high.
- Creates colored boxes anchored to an “anchor” candle and extends them forward.
- Marks boxes as “broken” when price trades inside or through the opposite side.
- Broken blocks can have reduced emphasis (more transparent, dashed border) and can optionally be deleted.
- Show Nearest Only mode highlights only the closest active bullish and bearish blocks to reduce chart clutter.
- Periodic cleanup removes very old boxes to maintain chart responsiveness.
Automatic Fibonacci Levels
The script can draw up to five customizable Fibonacci retracement levels using the HTF structure logic:
- Measures swings using HTF pivots and extremes.
- Historical mode: measures between two confirmed pivots in one direction.
- Live mode: starts from the last confirmed pivot and tracks the evolving extreme; if price reverses through that pivot, measurement can flip to track the new leg.
- Each Fib level has its own on/off toggle, ratio value, and color.
- Draws a main swing line plus retracement lines projected slightly into the future.
Key Inputs & Customization
Market Structure (Current TF)
- Pivot length (“Time-Horizon”).
- BOS confirmation: candle close or wicks.
- BOS/CHoCH line style and width.
- Swing labels on/off and global label size.
- Bullish/bearish colors.
Market Structure (HTF)
- HTF timeframe selection.
- Separate pivot length for HTF swings.
- Close vs wick confirmation for HTF breaks.
- HTF swing labels and CHoCH labels on/off.
- Pending HTF levels: style, color, and visibility.
Order Block Settings
- Bullish/bearish box colors and border width.
- Maximum number of boxes to display.
- Optional deletion of broken blocks.
- “Show Nearest Only” filter to highlight the closest active zones.
- Max bars to backscan for the anchor candle.
- Cleanup frequency for removing very old boxes.
Fibonacci Settings
- Show/hide auto Fibs.
- Historical vs Live tracking mode.
- Five user-defined ratios with individual toggles and colors.
Skrip jemputan sahaja
Hanya pengguna disahkan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Keizinan selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi LHAMA-Trading secara terus.
TradingView TIDAK menyarankan pembayaran atau penggunaan skrip kecuali anda mempercayai sepenuhnya penulis dan memahami bagaimana ia berfungsi. Anda juga boleh menjumpai alternatif sumber terbuka dan percuma yang lain di dalam skrip komuniti kami.
Arahan penulis
Skip the drama, ride the LHAMA!
Penafian
Skrip jemputan sahaja
Hanya pengguna disahkan oleh penulis boleh mengakses skrip ini. Anda perlu memohon dan mendapatkan kebenaran untuk menggunakannya. Keizinan selalunya diberikan selepas pembayaran. Untuk lebih butiran, ikuti arahan penulis di bawah atau hubungi LHAMA-Trading secara terus.
TradingView TIDAK menyarankan pembayaran atau penggunaan skrip kecuali anda mempercayai sepenuhnya penulis dan memahami bagaimana ia berfungsi. Anda juga boleh menjumpai alternatif sumber terbuka dan percuma yang lain di dalam skrip komuniti kami.
Arahan penulis
Skip the drama, ride the LHAMA!