PROTECTED SOURCE SCRIPT
Mis à jour

DM Flow Algo

130
DM Flow Algo is a volume-based flow analysis tool that compares buying vs. selling pressure in the market over a rolling window of bars.
It helps identify whether buyers or sellers are dominant, and optionally, it can align that with trend direction (via EMAs).
It’s designed for volume flow insight, trend confirmation, and momentum shifts.
Notes de version
DM Flow Algo is a volume-based flow analysis tool that compares buying vs. selling pressure in the market over a rolling window of bars.
It helps identify whether buyers or sellers are dominant, and optionally, it can align that with trend direction (via EMAs).
It’s designed for volume flow insight, trend confirmation, and momentum shifts.
Notes de version
Long entries

Enter when most of these line up on the same bar or within 1–2 bars:

Unified BUY marker prints.

Price above EMA(9) (white) and preferably above EMA(20) (blue) if you’ve enabled it.

RSI > 50 (your flow block turns “bullish”).

Dominance: DM Buy Dom% > 50% (table row 7).

Volume: “UNUSUAL” helps confirm.

Trigger options

Conservative: Wait for the bar to close above EMA(9) with a Unified BUY.

Aggressive: Enter on the break of the Unified BUY bar’s high, if it remains above EMA(9).

Initial stop

Use ATR stop: stop = entry − (1.0–1.5) × ATR(flowAtrLen)
or

Structure stop: below the most recent swing low or below EMA(20) if you use it as trend filter.

2) Short entries

Mirror the above:

Unified SELL marker.

Price below EMA(9) (white) and preferably below EMA(50) (green) / EMA(20).

RSI < 50, DM Sell Dom% > 50%.

UNUSUAL volume confirms.

Trigger

Conservative: close below EMA(9) with Unified SELL.

Aggressive: break of the signal bar’s low, staying below EMA(9).

Initial stop

stop = entry + (1.0–1.5) × ATR or above recent swing high / above EMA(20).

Make the 9-EMA your “decision line”

Think of the 9-EMA as the heartbeat of the move. It tells you whether to hold or get out:

When you’re in a long

Hold while:

Price closes above EMA(9), and

EMA(9) is rising (higher highs/lows on the line), and

No Unified SELL has printed.

Trim/defend when:

You get wicks into PDH/PMH or major levels and momentum slows (RSI rolls over toward 50).

Exit (or reduce) on close when any of these happen:

A full candle close below EMA(9) (not just a wick), and the next bar fails to reclaim EMA(9).

A Unified SELL prints while price is under EMA(9).

RSI loses 50 and DM Buy Dom% drops < 50% (momentum shift).

Hard exit if your stop or structure break is hit.

When you’re in a short

Hold while price closes below EMA(9) and the line is sloping down.

Exit/trim on a close above EMA(9) that does not fail on the next bar, or a Unified BUY while price holds above EMA(9).

Simple rule of thumb:
Above a rising EMA(9) = stay long/defend.
Below a falling EMA(9) = stay short/defend.
Two-sided closes through EMA(9) (lose it and fail to reclaim next bar) = decision to flatten or flip.

Trade management & scaling

Trail with EMA(9):

For longs, trail your stop a tick under EMA(9) once price is > +1× ATR from entry.

For shorts, trail a tick above EMA(9).

Add-ons: Only add when price pulls back to EMA(9) and holds, and trend context (ADX/volume/RSI/DM dominance) remains intact.

First profit target: Prior day levels (PDH/PDL) or 1× ATR. Move stop to breakeven once first target is hit.

Higher timeframe confluence: Entries aligned with higher-TF EMA(20/50) bias are higher quality.

Checklist (copy/paste to your notes)

Before entry

ADX strong? ☐

Volume UNUSUAL? ☐

Unified signal in direction? ☐

Price on correct side of EMA(9)? ☐

RSI >50 (long) or <50 (short)? ☐

DM dominance in your favor? ☐

Not buying into PDH/PMH or selling into PDL/PML? ☐

Stop level set (ATR or structure)? ☐

While in trade

Candle closes on your side of EMA(9)? ☐

EMA(9) slope still with you? ☐

No opposite Unified signal? ☐

Trail stop along EMA(9) after +1× ATR? ☐

Exit triggers

Confirmed close across EMA(9) (and no instant reclaim). ☐

Opposite Unified signal with EMA(9) flip. ☐

Hit target at PDH/PDL/PMH/PML or ATR multiple. ☐

Breach of structure/stop. ☐

Two quick examples

Long example

ADX = STRONG, Volume = UNUSUAL, Unified BUY prints.

Price closes above EMA(9); RSI = 55; DM Buy Dom% = 62%.

Enter on close; stop = entry − 1.2× ATR.

Hold while closes stay above EMA(9).

Take partial at PDH; trail stop a tick under EMA(9).

Exit remainder when a candle closes below EMA(9) and next bar fails to reclaim.

Short example

ADX = VERY STRONG, Unified SELL prints, RSI = 44, DM Sell Dom% = 58%.

Enter on break of signal bar low; stop = entry + 1× ATR.

Trail above EMA(9) after +1× ATR in profit.

Final exit on close above EMA(9) that holds.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.