OPEN-SOURCE SCRIPT
Zaktualizowano Monday Liquidity Sweep - WolfWeb

⚡ 1. Liquidity Sweep Parameters (Wick-Extreme Logic)
These settings determine when the strategy detects a liquidity sweep through Monday’s high/low.
liqPct — Liquidity Sweep % of Wick Extreme
Default: 0.0002 (0.02%)
Minimum size the wick must extend above Monday’s high or below Monday’s low
Prevents tiny wiggles from counting as sweeps
Example:
If the sweep high (after Monday) is 1.20000
→ Wick must extend at least 1.20000 × 0.0002 = 0.00024 (2.4 pips)
maxWickPct — Max Wick % Allowed
Default: 0.0025 (0.25%)
If the wick is too big, it’s considered inefficient/noisy and skipped
Avoids entering after huge spikes that aren’t real liquidity grabs
slPct — SL Offset % of Wick Extreme
Default: 0.0002 (0.02%)
Stop loss is placed beyond the sweep wick by this percentage
Prevents immediate stop-outs from tiny spread/noise beyond the sweep point
Short example:
SL = wickHighExtreme + (wickHighExtreme × slPct)
Long example:
SL = wickLowExtreme – (wickLowExtreme × slPct)
⚡ 2. Risk Management Settings
riskUsd — Fixed Dollar Risk per Trade
Default: $100
Strategy automatically adjusts position size so that
max loss = $100
Regardless of SL distance, your dollar risk stays constant
rr — Reward/Risk Ratio (used for one TP scenario)
Default: 3.5
Minimum R multiple the strategy tries to achieve
If Monday range TP is smaller, strategy takes the larger TP
tpRangePct — TP % of Monday Range
Default: 130%
Final TP = max( 3.5R , 130% of Monday range )
Why?
Because sometimes Monday range is wide, and 3R is not enough contextually.
Examples:
Monday range = 50 pips → TP = 65 pips (because 130% > 3.5R? depends on risk)
Monday range = 10 pips → TP = whichever is larger (usually 3.5R)
This makes the strategy adapt to volatility differences week by week.
⚡ 3. Break-Even System (Two Conditions)
You have two independent BE triggers. If either hits, SL moves to a safe level.
BE Trigger Condition 1:
beRRTrigger — Break-Even Trigger in R Multiples
Default: 1.5
When the trade reaches +1.5R profit, we activate break-even logic.
BE Trigger Condition 2:
beBars — Break-Even After N Candles
Default: 24 bars
If trade doesn’t hit 1.5R but stays open long enough (24 candles),
SL moves to a break-even location.
This prevents trades from floating too long and reversing violently.
beLockFraction — Lock-In Fraction After BE
Default: 0.1
Meaning:
Once BE is triggered, SL moves to lock in 10% of the initial risk as profit.
Example:
Initial risk (entry→SL) = 20 pips
Lock fraction 0.1 → lock in 2 pips profit after BE activation.
This avoids pure breakeven (0 profit), which often gets wicked out.
⚡ 4. Monday + Time Logic
hourShift — Monday Start Shift
Default: 7 hours
Used to shift Monday start earlier/later depending on broker
Many forex brokers start the week late (Sunday evening).
This fixes the Monday box to real market structure.
Monday Box & Range
Strategy tracks Monday High & Low
Draws a box ONLY for Monday
Sweeps must occur after Monday
Entries must be back into the Monday range on next candle
⚡ 5. Session & Close Logic
nyOpenHour — New York Session Start Hour
Default: 14 (2 PM exchange time)
Friday Auto-Close
Any open trade is closed on Friday at:
NY Open + 2 hours
So with NY at 14 → auto-close at 16 (4 PM).
This protects from weekend gaps.
⚡ 6. Entry Mode
entryMode — “Tuesday Only” or “One Trade Per Week”
Tuesday Only → Strategy only enters on Tuesday
One Trade Per Week → Can enter any day after Monday, but only once per week
These settings determine when the strategy detects a liquidity sweep through Monday’s high/low.
liqPct — Liquidity Sweep % of Wick Extreme
Default: 0.0002 (0.02%)
Minimum size the wick must extend above Monday’s high or below Monday’s low
Prevents tiny wiggles from counting as sweeps
Example:
If the sweep high (after Monday) is 1.20000
→ Wick must extend at least 1.20000 × 0.0002 = 0.00024 (2.4 pips)
maxWickPct — Max Wick % Allowed
Default: 0.0025 (0.25%)
If the wick is too big, it’s considered inefficient/noisy and skipped
Avoids entering after huge spikes that aren’t real liquidity grabs
slPct — SL Offset % of Wick Extreme
Default: 0.0002 (0.02%)
Stop loss is placed beyond the sweep wick by this percentage
Prevents immediate stop-outs from tiny spread/noise beyond the sweep point
Short example:
SL = wickHighExtreme + (wickHighExtreme × slPct)
Long example:
SL = wickLowExtreme – (wickLowExtreme × slPct)
⚡ 2. Risk Management Settings
riskUsd — Fixed Dollar Risk per Trade
Default: $100
Strategy automatically adjusts position size so that
max loss = $100
Regardless of SL distance, your dollar risk stays constant
rr — Reward/Risk Ratio (used for one TP scenario)
Default: 3.5
Minimum R multiple the strategy tries to achieve
If Monday range TP is smaller, strategy takes the larger TP
tpRangePct — TP % of Monday Range
Default: 130%
Final TP = max( 3.5R , 130% of Monday range )
Why?
Because sometimes Monday range is wide, and 3R is not enough contextually.
Examples:
Monday range = 50 pips → TP = 65 pips (because 130% > 3.5R? depends on risk)
Monday range = 10 pips → TP = whichever is larger (usually 3.5R)
This makes the strategy adapt to volatility differences week by week.
⚡ 3. Break-Even System (Two Conditions)
You have two independent BE triggers. If either hits, SL moves to a safe level.
BE Trigger Condition 1:
beRRTrigger — Break-Even Trigger in R Multiples
Default: 1.5
When the trade reaches +1.5R profit, we activate break-even logic.
BE Trigger Condition 2:
beBars — Break-Even After N Candles
Default: 24 bars
If trade doesn’t hit 1.5R but stays open long enough (24 candles),
SL moves to a break-even location.
This prevents trades from floating too long and reversing violently.
beLockFraction — Lock-In Fraction After BE
Default: 0.1
Meaning:
Once BE is triggered, SL moves to lock in 10% of the initial risk as profit.
Example:
Initial risk (entry→SL) = 20 pips
Lock fraction 0.1 → lock in 2 pips profit after BE activation.
This avoids pure breakeven (0 profit), which often gets wicked out.
⚡ 4. Monday + Time Logic
hourShift — Monday Start Shift
Default: 7 hours
Used to shift Monday start earlier/later depending on broker
Many forex brokers start the week late (Sunday evening).
This fixes the Monday box to real market structure.
Monday Box & Range
Strategy tracks Monday High & Low
Draws a box ONLY for Monday
Sweeps must occur after Monday
Entries must be back into the Monday range on next candle
⚡ 5. Session & Close Logic
nyOpenHour — New York Session Start Hour
Default: 14 (2 PM exchange time)
Friday Auto-Close
Any open trade is closed on Friday at:
NY Open + 2 hours
So with NY at 14 → auto-close at 16 (4 PM).
This protects from weekend gaps.
⚡ 6. Entry Mode
entryMode — “Tuesday Only” or “One Trade Per Week”
Tuesday Only → Strategy only enters on Tuesday
One Trade Per Week → Can enter any day after Monday, but only once per week
Informacje o Wersji
⚡ 1. Liquidity Sweep Parameters (Wick-Extreme Logic)These settings determine when the strategy detects a liquidity sweep through Monday’s high/low.
liqPct — Liquidity Sweep % of Wick Extreme
Default: 0.0002 (0.02%)
Minimum size the wick must extend above Monday’s high or below Monday’s low
Prevents tiny wiggles from counting as sweeps
Example:
If the sweep high (after Monday) is 1.20000
→ Wick must extend at least 1.20000 × 0.0002 = 0.00024 (2.4 pips)
maxWickPct — Max Wick % Allowed
Default: 0.0025 (0.25%)
If the wick is too big, it’s considered inefficient/noisy and skipped
Avoids entering after huge spikes that aren’t real liquidity grabs
slPct — SL Offset % of Wick Extreme
Default: 0.0002 (0.02%)
Stop loss is placed beyond the sweep wick by this percentage
Prevents immediate stop-outs from tiny spread/noise beyond the sweep point
Short example:
SL = wickHighExtreme + (wickHighExtreme × slPct)
Long example:
SL = wickLowExtreme – (wickLowExtreme × slPct)
⚡ 2. Risk Management Settings
riskUsd — Fixed Dollar Risk per Trade
Default: $100
Strategy automatically adjusts position size so that
max loss = $100
Regardless of SL distance, your dollar risk stays constant
rr — Reward/Risk Ratio (used for one TP scenario)
Default: 3.5
Minimum R multiple the strategy tries to achieve
If Monday range TP is smaller, strategy takes the larger TP
tpRangePct — TP % of Monday Range
Default: 130%
Final TP = max( 3.5R , 130% of Monday range )
Why?
Because sometimes Monday range is wide, and 3R is not enough contextually.
Examples:
Monday range = 50 pips → TP = 65 pips (because 130% > 3.5R? depends on risk)
Monday range = 10 pips → TP = whichever is larger (usually 3.5R)
This makes the strategy adapt to volatility differences week by week.
⚡ 3. Break-Even System (Two Conditions)
You have two independent BE triggers. If either hits, SL moves to a safe level.
BE Trigger Condition 1:
beRRTrigger — Break-Even Trigger in R Multiples
Default: 3
When the trade reaches +3R profit, we activate break-even logic.
BE Trigger Condition 2:
beBars — Break-Even After N Candles
Default: 24 bars
If trade doesn’t hit 3R but stays open long enough (24 candles),
SL moves to a break-even location.
This prevents trades from floating too long and reversing violently.
beLockFraction — Lock-In Fraction After BE
Default: 2
Meaning:
Once BE is triggered, SL moves to lock in 200% of the initial risk as profit.
Example:
Initial risk (entry→SL) = 20 pips
Lock fraction 0.1 → lock in 2 pips profit after BE activation.
This avoids pure breakeven (0 profit), which often gets wicked out.
⚡ 4. Monday + Time Logic
hourShift — Monday Start Shift
Default: 7 hours
Used to shift Monday start earlier/later depending on broker
Many forex brokers start the week late (Sunday evening).
This fixes the Monday box to real market structure.
Monday Box & Range
Strategy tracks Monday High & Low
Draws a box ONLY for Monday
Sweeps must occur after Monday
Entries must be back into the Monday range on next candle
⚡ 5. Session & Close Logic
nyOpenHour — New York Session Start Hour
Default: 14 (2 PM exchange time)
Friday Auto-Close
Any open trade is closed on Friday at:
NY Open + 2 hours
So with NY at 14 → auto-close at 16 (4 PM).
This protects from weekend gaps.
⚡ 6. Entry Mode
entryMode — “Tuesday Only” or “One Trade Per Week”
Tuesday Only → Strategy only enters on Tuesday
One Trade Per Week → Can enter any day after Monday, but only once per week
Informacje o Wersji
🟦 1. Liquidity Sweep FiltersliqPct Minimum wick extension beyond Monday extreme
maxWickPct Maximum allowed sweep wick size
slPct SL offset beyond wick extreme
🟦 2. Risk & TP
rr Base RR target (only chosen if bigger than Monday Range TP)
tpRangePct TP = % of Monday range (chosen if > RR target)
riskUsd Fixed $ risk per trade
hourShift Defines real Monday based on broker offset
🟦 3. Entry Mode
entryMode Only Tuesday entries, or one entry per week
🟦 4. Profit Lock System
Input Meaning
lockProfitAt Trigger lock when trade reaches this many R (e.g., 5R)
lockFraction Set SL to +X R when price lock triggers
lockBars After N bars, time-lock activates
fixedTimeLock SL = entry ± (timeLock * R) after N bars
✔ Price lock (e.g., 5R) moves SL to +3.5R
✔ Time lock (e.g., 12 bars) moves SL to +0.1R
🟦 5. Friday Close
Input Meaning
fridayCloseHour Hour to auto-close trade
fridayCloseMinute Minute to close trade
Uses same time shift as Monday detection for consistency.
Informacje o Wersji
OVERVIEWYour strategy trades a Monday liquidity sweep pattern:
Wait for Monday high/low to form.
After Monday ends, detect price wicking outside Monday’s high or low.
Confirm a liquidity sweep using wick size and percentage thresholds.
Wait for price to return inside the Monday range → entry signal.
Open a trade with dollar-based risk (using pip value).
Immediately place SL and TP using RR or Monday range.
Manage trade with profit lock logic.
Force-close all trades at a custom Friday broker time.
Generate alerts for entries and lock events.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.