OPEN-SOURCE SCRIPT
SFP 1:2RR

This strategy is a top-down liquidity model that combines higher timeframe swing structure with lower timeframe imbalance entries.
Overview
The model identifies confirmed swing highs and swing lows on the 1H timeframe.
It waits for a liquidity sweep (SFP-style mitigation) of those swings, followed by displacement away from the level.
Execution is performed on the 5-minute timeframe using Fair Value Gap (FVG) retracement entries.
The strategy enforces a fixed 1:2 Risk:Reward structure.
Logic Flow
Step 1 – 1H Swing Identification
Confirmed 3-candle pivot highs and lows are marked.
These represent external liquidity pools.
Step 2 – 1H Mitigation (SFP Condition)
Bearish: Price wicks above a prior 1H swing high and closes back below it.
Bullish: Price wicks below a prior 1H swing low and closes back above it.
This indicates liquidity has been taken.
Step 3 – Displacement Confirmation
After mitigation, a strong directional impulse must form.
This reduces false sweeps in consolidation.
Step 4 – 5M Fair Value Gap Formation
An FVG must form in the direction of displacement.
This defines the retracement entry zone.
Step 5 – Entry
Trade is triggered when price retraces into the 5M FVG.
Stop loss is placed beyond the 1H sweep wick.
Take profit is fixed at 2x risk (1:2 RR).
Risk Management
Fixed 1:2 Risk:Reward.
One trade per mitigation event (optional).
No pyramiding.
Entries are executed on the next bar to avoid same-candle execution artifacts.
Strategy Characteristics
Moderate win rate (typically 35–50% depending on market regime).
Performs best in trending or directional environments.
Avoids mid-range chop by requiring displacement after mitigation.
Designed for structured continuation rather than pure scalping.
Intended Use
Best applied to:
Major FX pairs
Indices
Gold
High-liquidity instruments
Recommended execution timeframe: 5-minute
Higher timeframe bias: 1-hour
Overview
The model identifies confirmed swing highs and swing lows on the 1H timeframe.
It waits for a liquidity sweep (SFP-style mitigation) of those swings, followed by displacement away from the level.
Execution is performed on the 5-minute timeframe using Fair Value Gap (FVG) retracement entries.
The strategy enforces a fixed 1:2 Risk:Reward structure.
Logic Flow
Step 1 – 1H Swing Identification
Confirmed 3-candle pivot highs and lows are marked.
These represent external liquidity pools.
Step 2 – 1H Mitigation (SFP Condition)
Bearish: Price wicks above a prior 1H swing high and closes back below it.
Bullish: Price wicks below a prior 1H swing low and closes back above it.
This indicates liquidity has been taken.
Step 3 – Displacement Confirmation
After mitigation, a strong directional impulse must form.
This reduces false sweeps in consolidation.
Step 4 – 5M Fair Value Gap Formation
An FVG must form in the direction of displacement.
This defines the retracement entry zone.
Step 5 – Entry
Trade is triggered when price retraces into the 5M FVG.
Stop loss is placed beyond the 1H sweep wick.
Take profit is fixed at 2x risk (1:2 RR).
Risk Management
Fixed 1:2 Risk:Reward.
One trade per mitigation event (optional).
No pyramiding.
Entries are executed on the next bar to avoid same-candle execution artifacts.
Strategy Characteristics
Moderate win rate (typically 35–50% depending on market regime).
Performs best in trending or directional environments.
Avoids mid-range chop by requiring displacement after mitigation.
Designed for structured continuation rather than pure scalping.
Intended Use
Best applied to:
Major FX pairs
Indices
Gold
High-liquidity instruments
Recommended execution timeframe: 5-minute
Higher timeframe bias: 1-hour
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.
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.
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.