OPEN-SOURCE SCRIPT
FRAMA Zone Trapper [NHELD]

🔰 INSPIRATION:
• Wyckoff Method (Spring/Upthrust) - Smart money positioning
• John Ehlers (FRAMA) - Fractal adaptive calculations
• Market Profile - Previous value areas as magnets
📚 PUBLICATION NOTES:
This indicator combines classical Wyckoff psychology with modern adaptive mathematics.
The unique "Previous Bar Box / Next Bar Line" separation creates a natural confirmation delay,
filtering out false signals and aligning with institutional order flow.
✨ UNIQUE FEATURES:
1. Time-Shifted Box Placement - Box appears on PREVIOUS candle, line on CURRENT
2. Body-Only Detection - Only counts crosses WITHIN candle bodies (ignores wick noise)
3. Adaptive FRAMA Levels - Self-adjusts to market fractal efficiency
4. Touch Block Mechanism - Auto-deactivates after N touches (prevents repainting)
5. Dual Visualization - Lines, Boxes, or Both with intelligent color coding
⚙️ HOW IT WORKS:
1. FRAMA calculates adaptive support/resistance based on market fractal efficiency
2. When price crosses FRAMA WITHIN the candle body, a signal is generated
3. BOX appears on the PREVIOUS candle (marking the "Smart Money Zone")
4. LINE appears at the FRAMA level on the CURRENT candle (the "Trigger Level")
5. Each subsequent touch increments counter until block threshold is reached
6. Blocked elements turn gray and stop expanding
🧠 PSYCHOLOGICAL EDGE:
• Box on previous bar = "Where smart money positioned"
• Line on current bar = "Level to watch for confirmation"
• Break of line = "Smart money move is activating"
• Block after N touches = "Level is now exhausted/obvious to everyone"
• Wyckoff Method (Spring/Upthrust) - Smart money positioning
• John Ehlers (FRAMA) - Fractal adaptive calculations
• Market Profile - Previous value areas as magnets
📚 PUBLICATION NOTES:
This indicator combines classical Wyckoff psychology with modern adaptive mathematics.
The unique "Previous Bar Box / Next Bar Line" separation creates a natural confirmation delay,
filtering out false signals and aligning with institutional order flow.
✨ UNIQUE FEATURES:
1. Time-Shifted Box Placement - Box appears on PREVIOUS candle, line on CURRENT
2. Body-Only Detection - Only counts crosses WITHIN candle bodies (ignores wick noise)
3. Adaptive FRAMA Levels - Self-adjusts to market fractal efficiency
4. Touch Block Mechanism - Auto-deactivates after N touches (prevents repainting)
5. Dual Visualization - Lines, Boxes, or Both with intelligent color coding
⚙️ HOW IT WORKS:
1. FRAMA calculates adaptive support/resistance based on market fractal efficiency
2. When price crosses FRAMA WITHIN the candle body, a signal is generated
3. BOX appears on the PREVIOUS candle (marking the "Smart Money Zone")
4. LINE appears at the FRAMA level on the CURRENT candle (the "Trigger Level")
5. Each subsequent touch increments counter until block threshold is reached
6. Blocked elements turn gray and stop expanding
🧠 PSYCHOLOGICAL EDGE:
• Box on previous bar = "Where smart money positioned"
• Line on current bar = "Level to watch for confirmation"
• Break of line = "Smart money move is activating"
• Block after N touches = "Level is now exhausted/obvious to everyone"
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.