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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。