Read DeMarker from changes in highs and lows

Read DeMarker from changes in highs and lows

Start with two adjacent bars

Record highs and lows for the current and previous bar. Count the positive increase in the high and the positive decrease in the low separately. Zero out each component if its boundary did not extend. The closing price is not needed for these two comparisons.

Let both extremes expand

Yesterday's range was 100 to 90. Today's range is 103 to 88. The high component contributes 3 and the low component contributes 2. Over this single comparison their relative share on the high side is 0.6. A bullish or bearish body cannot tell you that both components were active.

DeM = ΣDeMax / (ΣDeMax + ΣDeMin)

Add a second comparison

Now use 102 and 89 as the next high and low. Both lie inside the previous range, so this bar adds zero to each component. For a two-comparison window the totals remain 3 and 2. Averaging each component over the same length gives the same ratio as dividing their sums.

Inspect a quiet stretch

To compare with MT5, gather one more candle than the configured period so that the first difference is available. In a run of nested ranges both component sums can reach zero. Flag that window in your worksheet. Classifying such a fallback value as a fresh extreme would confuse missing directional expansion with an actual move.

Sources and further reading

Back to top

MQLume Bespoke

Built around your ambition.

Explore bespoke services →

Have something more specific in mind?

Ask us about advanced custom development. Share your requirements through private support or email; we will discuss the scope and quote separately.

100% committed to following up on your delivery and support requests.

Free downloads. Real source files.

FREE

Lizard [MQLume]

MQL5 / MT5Version v2.21

Free editable gold breakout project with six independently selectable cores, session filters and flexible position sizing.

US$149.00FREE
FREE

Scraper Gold [MQLume]

MQL5 / MT5Version v3.80

Free editable source with compiled EX5: four gold breakout engines with independent profiles, sizing, direction and exits.

US$95.00FREE
FREE

EA Black Dragon [MQLume]

MQL5 / MT5Version v13.0

Trend-based entries with optional grid additions, side controls and virtual exits.

US$30.00FREE
FREE

Hamster Scalping [MQLume]

MQL5 / MT5Version v21.0

RSI entries with two ATR filters, configurable sessions and optional grid management.

US$30.00FREE
MQLume

More to explore. A community to share it with.

Stay close to MQLume, wherever you like to learn.

YouTube

See our EAs in action. Explore backtests, walkthroughs and practical guides.

Watch on YouTube

Telegram

Meet other EA users, share ideas and keep up with what’s new.

Join the community Follow official updates

Cart

One personal-use licence per project. Each project can be added once.

Your cart is waiting for its first passenger.

Choose an EA or source edition to get started.

Continue shopping