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.
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ LHAMA-Trading โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
Skip the drama, ride the LHAMA!
คำจำกัดสิทธิ์ความรับผิดชอบ
สคริปต์แบบเฉพาะผู้ได้รับเชิญเท่านั้น
เฉพาะผู้ใช้งานที่ผู้เขียนอนุมัตเท่านั้นจึงจะสามารถเข้าถึงสคริปต์นี้ได้ คุณจะต้องขอและได้รับอนุญาตก่อนใช้งาน ซึ่งโดยทั่วไปจะได้รับอนุญาตหลังจากชำระเงินแล้ว สำหรับรายละเอียดเพิ่มเติม โปรดทำตามคำแนะนำของผู้เขียนด้านล่าง หรือติดต่อ LHAMA-Trading โดยตรง
TradingView ไม่แนะนำให้จ่ายเงินหรือใช้สคริปต์ เว้นแต่คุณจะเชื่อถือผู้เขียนและเข้าใจวิธีการทำงานของสคริปต์นั้นอย่างถ่องแท้ คุณยังสามารถหาทางเลือกแบบโอเพนซอร์สฟรีได้ใน สคริปต์ชุมชนของเรา
คำแนะนำของผู้เขียน
Skip the drama, ride the LHAMA!