OPEN-SOURCE SCRIPT
BOS & FVG Pullback Signals TMT

How it Works:
Fair Value Gaps (FVGs): The script looks for three-candle patterns where a gap is formed between the first candle's high/low and the third candle's low/high, indicating a strong momentum move (often occurring after a Break of Structure).
Pullback Detection:
For a BUY, price must pull back and touch an active Bullish FVG without breaking fully below it.
For a SELL, price must pull back into an active Bearish FVG without breaking fully above it.
Rejection & Continuation (The Signal):
BUY Signal: When price wicks into the Bullish FVG, confirms a rejection by closing above the top of the FVG, and displays a prominent lower wick.
SELL Signal: When price wicks into the Bearish FVG, confirms a rejection by closing below the bottom of the FVG, and displays a prominent upper wick.
Invalidation: An FVG is invalidated if price completely violates it (closes below a Bull FVG or above a Bear FVG). Once a signal is fired for a specific FVG, that FVG stops acting as a signal trigger to prevent duplicate entries on sideways movement.
You can customize the Minimum FVG Size (using an ATR multiplier) in the settings to filter out minor, insignificant gaps and focus only on the ones that cause strong trend continuations.
Fair Value Gaps (FVGs): The script looks for three-candle patterns where a gap is formed between the first candle's high/low and the third candle's low/high, indicating a strong momentum move (often occurring after a Break of Structure).
Pullback Detection:
For a BUY, price must pull back and touch an active Bullish FVG without breaking fully below it.
For a SELL, price must pull back into an active Bearish FVG without breaking fully above it.
Rejection & Continuation (The Signal):
BUY Signal: When price wicks into the Bullish FVG, confirms a rejection by closing above the top of the FVG, and displays a prominent lower wick.
SELL Signal: When price wicks into the Bearish FVG, confirms a rejection by closing below the bottom of the FVG, and displays a prominent upper wick.
Invalidation: An FVG is invalidated if price completely violates it (closes below a Bull FVG or above a Bear FVG). Once a signal is fired for a specific FVG, that FVG stops acting as a signal trigger to prevent duplicate entries on sideways movement.
You can customize the Minimum FVG Size (using an ATR multiplier) in the settings to filter out minor, insignificant gaps and focus only on the ones that cause strong trend continuations.
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.
Tradingmientrung
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.
Tradingmientrung
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.