INVITE-ONLY SCRIPT
LHAMA MTF Structure & Fibs [LTS]

Overview
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”):
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:
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:
Automatic Fibonacci Levels
The script can draw up to five customizable Fibonacci retracement levels using the HTF structure logic:
Key Inputs & Customization
Market Structure (Current TF)
Market Structure (HTF)
Order Block Settings
Fibonacci Settings
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.
招待専用スクリプト
このスクリプトは作者が承認したユーザーのみアクセス可能です。使用するにはアクセス申請をして許可を得る必要があります。通常は支払い後に承認されます。詳細は下記の作者の指示に従うか、LHAMA-Tradingに直接お問い合わせください。
TradingViewは、作者を完全に信頼し、スクリプトの動作を理解していない限り、有料スクリプトの購入・使用を推奨しません。コミュニティスクリプトには無料のオープンソースの代替が多数あります。
作者の指示
This indicator is part of the LHAMA Trading Suite. See https://lhamatrading.com for access.
Creators of the LHAMA Trading Suite. Visit lhamatrading.com to unlock all our indicators.
Skip the drama, ride the LHAMA!
Skip the drama, ride the LHAMA!
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
招待専用スクリプト
このスクリプトは作者が承認したユーザーのみアクセス可能です。使用するにはアクセス申請をして許可を得る必要があります。通常は支払い後に承認されます。詳細は下記の作者の指示に従うか、LHAMA-Tradingに直接お問い合わせください。
TradingViewは、作者を完全に信頼し、スクリプトの動作を理解していない限り、有料スクリプトの購入・使用を推奨しません。コミュニティスクリプトには無料のオープンソースの代替が多数あります。
作者の指示
This indicator is part of the LHAMA Trading Suite. See https://lhamatrading.com for access.
Creators of the LHAMA Trading Suite. Visit lhamatrading.com to unlock all our indicators.
Skip the drama, ride the LHAMA!
Skip the drama, ride the LHAMA!
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。