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
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.