OPEN-SOURCE SCRIPT
Zaktualizowano DM Price Action

Here’s a tight, rules-based playbook for trading with your DM Price Action (FVG + S/R + Order Blocks + VWAP + Auto PDH/PDL/PMH/PML). It’s educational, not financial advice—tune to your market & risk.
Core ideas (what each tool does for you)
VWAP → intraday trend/mean.
PDH/PDL → yesterday’s extremes; magnet & reversal/continuation levels.
PMH/PML → premarket extremes; first liquidity tests after the open.
FVG → imbalance zones for continuation entries.
Order Blocks (OBs) → origin of impulses; mitigation/breaks = structure shifts.
S/R → target rails and break alerts.
Setups (long/short mirror)
1) Bias + Pullback (FVG/OB) at Key Level
Bias (need 2+ conditions):
Price above VWAP (bulls) / below VWAP (bears)
Price above PDH/PMH (bulls) or below PDL/PML (bears)
Most recent Swing OB bias in your direction (script updates via crosses)
Entry (bullish example):
Wait for a Bullish FVG to form after we reclaim PMH or PDH.
Prefer FVG overlapping a Bullish OB or sitting just above Support.
Enter on retrace into FVG midline or first bullish reversal candle inside.
Stop: a few ticks below OB low (or FVG bottom, whichever is wider).
Targets:
T1: nearest Resistance or PDH/PMH if not yet tested.
T2: next HTF S/R or fixed 2R–3R.
Manage: to BE at 1R, trail under swing lows or VWAP on trend days.
Bearish mirror: below VWAP, below PDL/PML, Bearish FVG into Bearish OB / Resistance; stop above OB high.
2) Range Break & Retest at PDH/PDL (with OB confirmation)
Context: Price consolidates under PDH (or over PDL).
Trigger: Clean break of PDH/PDL with an OB breakout alert in the break direction.
Entry: On retest of PDH/PDL from the other side, look for a small FVG forming with the move → enter on the pullback.
Stop: beyond the retest wick or the OB edge.
Targets: next S/R, opposing day extreme (e.g., from PDH to PMH/HTF level) or 2R/3R.
3) Premarket Sweep Reversal (open-specific)
Setup: At/near the cash open, price sweeps PMH/PML (wick through) but closes back inside, then a counter-direction OB forms.
Entry: On first FVG in the reversal direction that overlaps that new OB.
Stop: beyond the sweep extreme (PMH/PML).
Targets: VWAP first, then PD midline levels/SR.
Confluence checklist (score ≥3 before clicking)
+1 Above/below VWAP in trade direction
+1 Trading from a PDH/PDL/PMH/PML reaction (reclaim or rejection)
+1 FVG overlaps an OB
+1 Entry at S/R (use the script’s lines)
+1 Fresh zone (recently formed OB/FVG)
+1 Higher-TF structure aligned (e.g., 1H trend)
Take the trade only if score ≥3; size up only at ≥4.
Execution framework (simple & repeatable)
Timeframes: 1H (bias) → 5–15m (execution).
Risk per trade: 0.25–1.0% of account (fixed).
Position size: Size = Risk $ / Stop distance.
Management:
Scale ½ at T1 (nearest SR/PD level), move stop to BE at 1R.
Let runner to T2 (2R–3R) or next PD level.
If VWAP flips against you and closes 2 bars opposite, exit remainder.
Using the inputs (what to tweak)
Order Blocks:
Scalping mode for intraday speed; Day Trade for cleaner swings.
Hide Internal OBs if noise is high; keep Swing OBs for structure.
FVG:
Keep Auto Threshold = ON.
If noisy, plot higher TF FVG (e.g., 15m FVG on 5m chart).
PDH/PDL/PMH/PML:
If chart is cluttered, keep “Show lines only on last bar” ON and labels ON.
Session markets (futures/US equities): use default 0400–0930 premarket; FX/crypto can disable PM lines if irrelevant.
Alerts to set (so you only act on confluence)
Create alerts for:
Bullish/Bearish FVG (execution zones)
Swing/Internal OB Breakout (structure shift)
Support/Resistance Broken (targets/continuation)
(Optional) Crossing PDH/PDL: use TV “Price crossing” with the plotted PDH/PDL values or visually monitor the labels
Workflow: Wait for ≥2 alerts to line up (e.g., Swing OB Breakout + Bullish FVG near PDH), then open the chart and execute the rule set.
Example trade (bullish)
Price reclaims PDH, holds above VWAP.
Bullish FVG prints overlapping a Bullish Internal OB just above PDH.
Limit at FVG midline, stop below OB low.
T1 = next Resistance; T2 = 2R. Move to BE at 1R; trail under new swing lows.
Core ideas (what each tool does for you)
VWAP → intraday trend/mean.
PDH/PDL → yesterday’s extremes; magnet & reversal/continuation levels.
PMH/PML → premarket extremes; first liquidity tests after the open.
FVG → imbalance zones for continuation entries.
Order Blocks (OBs) → origin of impulses; mitigation/breaks = structure shifts.
S/R → target rails and break alerts.
Setups (long/short mirror)
1) Bias + Pullback (FVG/OB) at Key Level
Bias (need 2+ conditions):
Price above VWAP (bulls) / below VWAP (bears)
Price above PDH/PMH (bulls) or below PDL/PML (bears)
Most recent Swing OB bias in your direction (script updates via crosses)
Entry (bullish example):
Wait for a Bullish FVG to form after we reclaim PMH or PDH.
Prefer FVG overlapping a Bullish OB or sitting just above Support.
Enter on retrace into FVG midline or first bullish reversal candle inside.
Stop: a few ticks below OB low (or FVG bottom, whichever is wider).
Targets:
T1: nearest Resistance or PDH/PMH if not yet tested.
T2: next HTF S/R or fixed 2R–3R.
Manage: to BE at 1R, trail under swing lows or VWAP on trend days.
Bearish mirror: below VWAP, below PDL/PML, Bearish FVG into Bearish OB / Resistance; stop above OB high.
2) Range Break & Retest at PDH/PDL (with OB confirmation)
Context: Price consolidates under PDH (or over PDL).
Trigger: Clean break of PDH/PDL with an OB breakout alert in the break direction.
Entry: On retest of PDH/PDL from the other side, look for a small FVG forming with the move → enter on the pullback.
Stop: beyond the retest wick or the OB edge.
Targets: next S/R, opposing day extreme (e.g., from PDH to PMH/HTF level) or 2R/3R.
3) Premarket Sweep Reversal (open-specific)
Setup: At/near the cash open, price sweeps PMH/PML (wick through) but closes back inside, then a counter-direction OB forms.
Entry: On first FVG in the reversal direction that overlaps that new OB.
Stop: beyond the sweep extreme (PMH/PML).
Targets: VWAP first, then PD midline levels/SR.
Confluence checklist (score ≥3 before clicking)
+1 Above/below VWAP in trade direction
+1 Trading from a PDH/PDL/PMH/PML reaction (reclaim or rejection)
+1 FVG overlaps an OB
+1 Entry at S/R (use the script’s lines)
+1 Fresh zone (recently formed OB/FVG)
+1 Higher-TF structure aligned (e.g., 1H trend)
Take the trade only if score ≥3; size up only at ≥4.
Execution framework (simple & repeatable)
Timeframes: 1H (bias) → 5–15m (execution).
Risk per trade: 0.25–1.0% of account (fixed).
Position size: Size = Risk $ / Stop distance.
Management:
Scale ½ at T1 (nearest SR/PD level), move stop to BE at 1R.
Let runner to T2 (2R–3R) or next PD level.
If VWAP flips against you and closes 2 bars opposite, exit remainder.
Using the inputs (what to tweak)
Order Blocks:
Scalping mode for intraday speed; Day Trade for cleaner swings.
Hide Internal OBs if noise is high; keep Swing OBs for structure.
FVG:
Keep Auto Threshold = ON.
If noisy, plot higher TF FVG (e.g., 15m FVG on 5m chart).
PDH/PDL/PMH/PML:
If chart is cluttered, keep “Show lines only on last bar” ON and labels ON.
Session markets (futures/US equities): use default 0400–0930 premarket; FX/crypto can disable PM lines if irrelevant.
Alerts to set (so you only act on confluence)
Create alerts for:
Bullish/Bearish FVG (execution zones)
Swing/Internal OB Breakout (structure shift)
Support/Resistance Broken (targets/continuation)
(Optional) Crossing PDH/PDL: use TV “Price crossing” with the plotted PDH/PDL values or visually monitor the labels
Workflow: Wait for ≥2 alerts to line up (e.g., Swing OB Breakout + Bullish FVG near PDH), then open the chart and execute the rule set.
Example trade (bullish)
Price reclaims PDH, holds above VWAP.
Bullish FVG prints overlapping a Bullish Internal OB just above PDH.
Limit at FVG midline, stop below OB low.
T1 = next Resistance; T2 = 2R. Move to BE at 1R; trail under new swing lows.
Informacje o Wersji
Here’s a tight, rules-based playbook for trading with your DM Price Action script (FVG + S/R + Order Blocks + VWAP + Auto PDH/PDL/PMH/PML). It’s educational, not financial advice—tune to your market & risk.Core ideas (what each tool does for you)
VWAP → intraday trend/mean.
PDH/PDL → yesterday’s extremes; magnet & reversal/continuation levels.
PMH/PML → premarket extremes; first liquidity tests after the open.
FVG → imbalance zones for continuation entries.
Order Blocks (OBs) → origin of impulses; mitigation/breaks = structure shifts.
S/R → target rails and break alerts.
Setups (long/short mirror)
1) Bias + Pullback (FVG/OB) at Key Level
Bias (need 2+ conditions):
Price above VWAP (bulls) / below VWAP (bears)
Price above PDH/PMH (bulls) or below PDL/PML (bears)
Most recent Swing OB bias in your direction (script updates via crosses)
Entry (bullish example):
Wait for a Bullish FVG to form after we reclaim PMH or PDH.
Prefer FVG overlapping a Bullish OB or sitting just above Support.
Enter on retrace into FVG midline or first bullish reversal candle inside.
Stop: a few ticks below OB low (or FVG bottom, whichever is wider).
Targets:
T1: nearest Resistance or PDH/PMH if not yet tested.
T2: next HTF S/R or fixed 2R–3R.
Manage: to BE at 1R, trail under swing lows or VWAP on trend days.
Bearish mirror: below VWAP, below PDL/PML, Bearish FVG into Bearish OB / Resistance; stop above OB high.
2) Range Break & Retest at PDH/PDL (with OB confirmation)
Context: Price consolidates under PDH (or over PDL).
Trigger: Clean break of PDH/PDL with an OB breakout alert in the break direction.
Entry: On retest of PDH/PDL from the other side, look for a small FVG forming with the move → enter on the pullback.
Stop: beyond the retest wick or the OB edge.
Targets: next S/R, opposing day extreme (e.g., from PDH to PMH/HTF level) or 2R/3R.
3) Premarket Sweep Reversal (open-specific)
Setup: At/near the cash open, price sweeps PMH/PML (wick through) but closes back inside, then a counter-direction OB forms.
Entry: On first FVG in the reversal direction that overlaps that new OB.
Stop: beyond the sweep extreme (PMH/PML).
Targets: VWAP first, then PD midline levels/SR.
Confluence checklist (score ≥3 before clicking)
+1 Above/below VWAP in trade direction
+1 Trading from a PDH/PDL/PMH/PML reaction (reclaim or rejection)
+1 FVG overlaps an OB
+1 Entry at S/R (use the script’s lines)
+1 Fresh zone (recently formed OB/FVG)
+1 Higher-TF structure aligned (e.g., 1H trend)
Take the trade only if score ≥3; size up only at ≥4.
Execution framework (simple & repeatable)
Timeframes: 1H (bias) → 5–15m (execution).
Risk per trade: 0.25–1.0% of account (fixed).
Position size: Size = Risk $ / Stop distance.
Management:
Scale ½ at T1 (nearest SR/PD level), move stop to BE at 1R.
Let runner to T2 (2R–3R) or next PD level.
If VWAP flips against you and closes 2 bars opposite, exit remainder.
Using the inputs (what to tweak)
Order Blocks:
Scalping mode for intraday speed; Day Trade for cleaner swings.
Hide Internal OBs if noise is high; keep Swing OBs for structure.
FVG:
Keep Auto Threshold = ON.
If noisy, plot higher TF FVG (e.g., 15m FVG on 5m chart).
PDH/PDL/PMH/PML:
If chart is cluttered, keep “Show lines only on last bar” ON and labels ON.
Session markets (futures/US equities): use default 0400–0930 premarket; FX/crypto can disable PM lines if irrelevant.
Alerts to set (so you only act on confluence)
Create alerts for:
Bullish/Bearish FVG (execution zones)
Swing/Internal OB Breakout (structure shift)
Support/Resistance Broken (targets/continuation)
(Optional) Crossing PDH/PDL: use TV “Price crossing” with the plotted PDH/PDL values or visually monitor the labels
Workflow: Wait for ≥2 alerts to line up (e.g., Swing OB Breakout + Bullish FVG near PDH), then open the chart and execute the rule set.
Example trade (bullish)
Price reclaims PDH, holds above VWAP.
Bullish FVG prints overlapping a Bullish Internal OB just above PDH.
Limit at FVG midline, stop below OB low.
T1 = next Resistance; T2 = 2R. Move to BE at 1R; trail under new swing lows.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.