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
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。