OPEN-SOURCE SCRIPT
BOS + FVG Retest Signals

How it works:
Break of Structure (BOS): Uses pivots (configurable Pivot Length) to find highs and lows. A close above a previous pivot high triggers a Bullish BOS (uptrend), and a close below a pivot low triggers a Bearish BOS (downtrend).
Fair Value Gaps (FVG): When an FVG forms in the direction of the current trend (Bullish FVG during an uptrend, Bearish FVG during a downtrend), it plots a colored box extending to the right.
Retest & Rejection:
For buy signals: Price must dip into the bullish FVG (Low <= FVG Top and Close > FVG Bottom), and the candlestick's lower wick must be larger than its body based on a Wick vs Body Multiplier (default is 1.5).
For sell signals: Price must retest the bearish FVG (High >= FVG Bottom and Close < FVG Top), with an upper wick larger than the body.
Break of Structure (BOS): Uses pivots (configurable Pivot Length) to find highs and lows. A close above a previous pivot high triggers a Bullish BOS (uptrend), and a close below a pivot low triggers a Bearish BOS (downtrend).
Fair Value Gaps (FVG): When an FVG forms in the direction of the current trend (Bullish FVG during an uptrend, Bearish FVG during a downtrend), it plots a colored box extending to the right.
Retest & Rejection:
For buy signals: Price must dip into the bullish FVG (Low <= FVG Top and Close > FVG Bottom), and the candlestick's lower wick must be larger than its body based on a Wick vs Body Multiplier (default is 1.5).
For sell signals: Price must retest the bearish FVG (High >= FVG Bottom and Close < FVG Top), with an upper wick larger than the body.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Tradingmientrung
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Tradingmientrung
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.