DeMarker Calculator
Calculate the published ratio of rolling positive high changes to the combined high-change and low-change averages.
Enter a period and ordered high-low bars
Use completed bars from one symbol, timeframe and broker feed.
One completed bar per line. Commas, semicolons or tabs are accepted.
Current entered-series DeMarker
Entered Price Extremes Oscillators 1.0.0.
| Label | High | Low | DeMax | DeMin | Average DeMax | Average DeMin | DeMarker |
|---|
How DeMarker is calculated
DeMin[i] = max(low[i − 1] − low[i], 0)
DeMarker[i] = SMA(DeMax, N) ÷ [SMA(DeMax, N) + SMA(DeMin, N)]
Version 1.0.0 seeds both first-row difference buffers at zero. The rolling averages use the latest N positive high-increase and low-decrease values.
The first reportable value begins at zero-based index N. When both rolling averages are zero, the result is zero, matching the published MetaQuotes source.
Assumptions and limits
- At least period plus one ordered high-low bars are required.
- Rows must be oldest to newest and use one symbol, timeframe and feed.
- A high change contributes only when the current high exceeds the prior high.
- A low change contributes only when the current low is below the prior low.
- The page does not classify 0.3, 0.7, reversal, divergence, direction or trading signals.
Worked example from the audited fixture
How to interpret the result
The ratio compares rolling positive high changes with the combined high-change and low-change averages. The 0 to 1 scale is arithmetic only here. A value of 0.714286 is not labelled overbought, directional or predictive.
Frequently asked questions
- Enter a period and at least period plus one ordered high-low bars from one symbol, timeframe and feed.
- DeMax is the positive amount by which the current entered high exceeds the prior high, otherwise zero.
- DeMin is the positive amount by which the prior entered low exceeds the current low, otherwise zero.
- The simple average of DeMax is divided by that average plus the simple average of DeMin.
- The first reportable index N needs N adjacent high and low comparisons, which require one preceding bar.
- The result is zero, matching the published MetaQuotes source zero-denominator convention.
- Not necessarily. Feed history, entered starting point, symbol and timeframe can change the rolling buffer.
- No. The page does not classify thresholds, reversals, divergence, entries or exits.
Sources and methodology
- MetaQuotes Code Base — DeMarker — Published difference buffers, rolling averages and zero-denominator result.
- MetaTrader 5 Help — DeMarker — Official DeMax, DeMin and ratio formula.
- MetaQuotes Code Base — MovingAverages — Official simple-average implementation and report start.
- MQL5 Reference — iDeMarker — Official period interface and one-buffer contract.
Continue entered indicator analysis
Compare the chart feed and trading terms
Use one broker feed, symbol and timeframe for every entered observation, and compare the source history with your terminal before relying on a platform match.
Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

