ForexBestRobots.comCompare EAs →
EN

DeMarker · Momentum indicators

DeMarker in Forex: 14 Periods, High/Low Changes and Rolling-Window Crosses

Read DeMarker(14) on real EUR/USD H1 candles. Inspect High/Low changes, 0.30/0.70 returns, rolling-window effects and 7/14/28 periods interactively.

Real EUR/USD H1, UTC. Candle color shows Open versus Close; the blue line is DeMarker(14). The highlighted candle ends at 2024-01-05 15:00 UTC.
Real EUR/USD H1, UTC. Candle color shows Open versus Close; the blue line is DeMarker(14). The highlighted candle ends at 2024-01-05 15:00 UTC.

DeMarker can cross a level even when the latest candle makes neither a higher High nor a lower Low. This guide uses real EUR/USD H1 quotes to explain that moving-window effect, the 14-period calculation and the difference between an oscillator reading and an executable trade.

1. Read what DeMarker actually measures

For each completed candle, record only the upward extension of its High and the downward extension of its Low relative to the preceding recorded candle. These nonnegative contributions are called DeMax and DeMin. A candle can contribute to both, one or neither; its body color does not decide the result.

The ratio compares their totals over N observations. Here H1 means recorded hourly candles, the quote unit is USD per EUR and one pip is 0.0001. A value of 0.70 means the DeMax total is 70% of the combined total. It is not a 70% probability that price will rise or fall.

Real EUR/USD H1, UTC. Candle color shows Open versus Close; the blue line is DeMarker(14). The highlighted candle ends at 2024-01-05 15:00 UTC.
Real EUR/USD H1, UTC. Candle color shows Open versus Close; the blue line is DeMarker(14). The highlighted candle ends at 2024-01-05 15:00 UTC.

2. Calculate 14 comparisons from 15 candles

Use DeMax(t)=max(High(t)−High(t−1),0) and DeMin(t)=max(Low(t−1)−Low(t),0). Add the most recent N contributions. Because both simple averages have the same divisor N, it cancels: DeM=U/(U+D). N comparisons require N+1 observed candles, so this reference leaves the warm-up values unavailable.

For the hour ending 2024-01-05 15:00 UTC, the 14-bar DeMax total is 50 pips and the DeMin total is 84 pips. Therefore 50/(50+84)=0.373134. The previous reading was 0.236364. The current candle adds 27 pips to DeMax while an old 3-pip contribution leaves the window: 26−3+27=50.

If both totals are zero, the ratio is 0/0 and has no defined value. This explorer displays an unavailable reading and generates no crossing across it; it does not insert zero or 0.50. Platform behavior must be checked separately.

U = Σ DeMax(t−N+1 … t)
D = Σ DeMin(t−N+1 … t)
DeM = U / (U + D)
0 ≤ DeM ≤ 1   (U + D > 0)

3. Separate zones, returns and the midpoint

This guide uses the 0–1 scale: 0.30 and 0.70 correspond to 30 and 70 on a scale multiplied by 100. Below 0.30 and above 0.70 describe the current balance of extensions. A reading can remain extreme across several candles; entering an extreme is not proof of an imminent reversal.

A return above 0.30 requires previous DeM≤0.30 and current DeM>0.30. A return below 0.70 requires previous DeM≥0.70 and current DeM<0.70. A 0.50 crossing is a separate event. The explorer tests full-precision ratios, not rounded screen values, and can report multiple crossings on the same candle.

The hour ending 2024-01-04 at 13:00 UTC shows 0.779221, the fifth consecutive reading above 0.70. This illustrates persistence in the upper zone, not a recorded short entry. No later outcome was used to label it a successful signal.

4. A crossing can come from the departing candle

At 2024-01-10 05:00 UTC, the completed candle has High 1.0931 and Low 1.0928. Neither extends the preceding extreme, so the new DeMax and DeMin are both zero. Yet the 14-period value falls from 0.313433 to 0.258065, crossing below 0.30.

An old 5-pip DeMax observation drops out. U falls from 21 to 16 pips while D stays at 46 pips: 21/(21+46) becomes 16/(16+46). The oscillator reacts to its entire rolling window, not solely to new pressure on the highlighted candle. This is a calculation mechanism, not proof that the move is tradable.

Real EUR/USD H1, UTC. At 2024-01-10 05:00 the new contributions are both zero, yet an old DeMax leaving the window lowers DeM(14) through 0.30.
Real EUR/USD H1, UTC. At 2024-01-10 05:00 the new contributions are both zero, yet an old DeMax leaving the window lowers DeM(14) through 0.30.

5. Compare 7, 14 and 28 on identical prices

On that same 05:00 candle, DeM(7)=0.500000, DeM(14)=0.258065 and DeM(28)=0.368000. Only the 14-period series crosses below 0.30 there. Changing the period changes which contributions remain in the numerator and denominator; it does not merely rescale the same line.

The three settings are an educational comparison, not a parameter search for the best historical outcome. A different timeframe rebuilds Highs and Lows and therefore changes the inputs as well. Four H1 readings cannot simply be averaged to obtain an H4 DeMarker.

Identical EUR/USD H1 candles, UTC. Blue: 7; gold: 14; violet: 28. The highlighted 05:00 candle has three different readings and only one crossing below 0.30.
Identical EUR/USD H1 candles, UTC. Blue: 7; gold: 14; violet: 28. The highlighted 05:00 candle has three different readings and only one crossing below 0.30.

6. Use completed values before considering execution

The highlighted timestamp is the end of the displayed H1 candle. Its final High, Low and DeMarker become available only after that interval ends. An unfinished candle can extend either extreme and change its reading; a temporary crossing is not the same as a completed-bar event.

In an MT4 EA, iDeMarker(symbol,timeframe,period,shift) selects a buffer value; shift 1 refers to the preceding bar, while shift 0 refers to the current bar. Check that the expected new candle exists and sufficient history is available. Matching this reconstruction to a native terminal has not been verified.

A trade plan still needs a separate price condition, entry deadline, executable Bid/Ask, spread, slippage, stop, target and risk limit. These provider OHLC quotes do not prove broker fills. No buy, sell or profit marker is inferred from an oscillator crossing.

7. Explore each closed candle

Choose a period and move through the recorded candles. The highlighted window contains N contributions and also needs the preceding candle to calculate its first comparison. Inspect both totals, the entering and departing contributions, the observed minute count and the event labels. Example buttons restore period 14; the ordinary period selector preserves the selected candle.

The history contains 31,736 minute rows and 529 observed H1 candles: 525 have 60 minute rows and four have fewer. Four gaps occur between recorded hours. Missing intervals are not filled with invented candles. The period counts observed bars across those gaps, so 14 bars need not mean 14 consecutive clock hours.

Loading historical quotes…

Candle end · UTC
—
OHLC · USD per EUR
—
DeMarker
—
Previous DeMarker
—
DeMax total · pips
—
DeMin total · pips
—
New DeMax · pips
—
New DeMin · pips
—
Departing DeMax · pips
—
Departing DeMin · pips
—
Observed minutes in this hour
—
Gap before this hour
—
Contribution window
—
Gaps within required history
—
Partial hours within required history
—
Completed-bar events

—

Historical illustration · no trades

Frequently asked questions

Is DeMarker the same as RSI?

No. This DeMarker compares adjacent Highs and Lows. Standard RSI uses changes between closing prices and a different smoothing calculation. Similar-looking zones do not make their readings interchangeable.

Does 0.70 mean a 70% chance of a reversal?

No. It describes a ratio of accumulated High/Low extensions. A reversal probability would require a separately specified outcome and an appropriately evaluated sample.

Can an inside candle cause a new crossing?

Yes. Older contributions can leave the rolling window even when the new DeMax and DeMin are both zero. The 2024-01-10 example shows this on actual quotes.

Is a current-bar crossing final?

No. The unfinished candle’s High and Low can still change. This guide classifies events only after the candle closes.

Which period is most profitable?

This guide does not test that question. It compares 7, 14 and 28 on the same history without simulated entries, exits or returns.

Data, calculation method and scope

The source is Forexite’s Trade/MetaStock minute OHLC archive for January 2024. Its labels are GMT+1; this reconstruction subtracts one hour to show UTC. Treating each minute label as an interval end, with H1 groups (start,end], is an explicit aggregation assumption. The first displayed hour starts 2024-01-01 22:00 UTC and the last ends 2024-01-31 23:00 UTC.

The package preserves all 31 original daily ZIPs and their SHA256 hashes, extracted EUR/USD rows, H1 candles, all three indicator series and two separately written calculation paths. All 31,736 rows and 1,538 available indicator values were cross-checked. The examples were selected to illustrate mechanisms, not to estimate signal frequency, predictive accuracy or returns. No broker-volume, Bid/Ask, live-forward or terminal-parity claim is made.

Primary references