DeMarker Indicator on XAUUSD
Timing reversals with demand analysis on gold
DeMarker Oscillator on XAUUSD (14-Period, Scale 0-1)
How the DeMarker Formula Works: DeMax and DeMin
The DeMarker indicator, developed by Tom DeMark, measures buying demand and selling demand separately before combining them into a single oscillator reading. The process begins with two component calculations. DeMax(i) = High(i) - High(i-1) if this value is positive, and zero if negative. This captures upward extensions of the high relative to the previous bar. If today's high is above yesterday's high, buying demand pushed price to a new local extreme. If today's high is at or below yesterday's high, DeMax registers zero.
DeMin(i) = Low(i-1) - Low(i) if this value is positive, and zero if negative. This captures downward extensions of the low. If today's low undercuts yesterday's low, selling demand pushed price to a new lower extreme. If today's low is at or above yesterday's low, DeMin registers zero.
The final DeMarker value is: DeMarker = SMA(DeMax, N) / (SMA(DeMax, N) + SMA(DeMin, N)). Both components are smoothed over N periods (the default is 14), and DeMarker is the fraction of total pressure that is attributable to buying (DeMax). When buying pressure completely dominates, DeMarker approaches 1.0. When selling pressure completely dominates, it approaches 0.0. An equal balance of buying and selling pressure produces a reading of 0.5.
This construction from high and low extremes rather than closing prices is what makes DeMarker behaviorally distinct from RSI. The indicator is specifically tracking how aggressively buyers and sellers are extending the high and low of each bar, rather than where price ends up relative to a fixed lookback. On volatile gold markets, where intraday highs and lows can extend dramatically even on bars that close near open, DeMarker captures the intensity of buying and selling impulses in a way that close-based indicators cannot fully reflect.
DeMarker vs RSI on XAUUSD: Two Different Approaches to Momentum
RSI and DeMarker are both bounded oscillators designed to identify overbought and oversold conditions, but they measure fundamentally different aspects of price behavior. RSI calculates the ratio of average upward close-to-close changes to total average close-to-close changes. It is entirely driven by where price closes relative to where it opened or closed the previous bar. The body of each candle is what matters to RSI.
DeMarker, by contrast, focuses entirely on the high and low extremes of each bar. A candle can close near its open (a doji) but have very extended wicks in both directions. RSI might register the doji as a neutral reading, since close-to-close change is minimal. DeMarker would potentially register both significant DeMax and DeMin activity from those extended wicks, because both buyers and sellers pushed to extreme levels during the bar even if price ended flat.
On XAUUSD, gold is notorious for creating high-wick candles during sessions where institutional algorithms probe levels in both directions before settling on a direction. These wide-wick patterns often precede breakouts. DeMarker's sensitivity to these wick extensions means it may flag momentum pressure buildup earlier than RSI in these scenarios. The downside is that DeMarker can appear volatile on gold precisely because of this wick sensitivity, generating readings that fluctuate more rapidly than RSI on the same timeframe.
Neither indicator is objectively superior. RSI's use of closing prices produces a more stable reading that reflects the conviction behind each price move. DeMarker's use of highs and lows captures the full range of market aggression. In practice, using both indicators and requiring agreement between them before acting on a reversal signal produces more reliable signals than relying on either alone. When DeMarker is below 0.3 and RSI is also in the oversold zone simultaneously, the probability of a bounce on gold is meaningfully elevated.
The 0.7 and 0.3 Thresholds: When to Pay Attention
The 0.7 and 0.3 threshold levels in the DeMarker system function as alert zones rather than mechanical buy or sell triggers. A DeMarker reading above 0.7 means that over the past 14 bars, buying pressure (DeMax) has strongly dominated the combined high-low extension activity. Price has been consistently reaching new local highs, and the buying impulse has been persistent. However, this dominance also means that buyers have been actively pushing the market and may be approaching exhaustion.
Readings above 0.7 should prompt a trader to begin watching for reversal signals in price action rather than immediately selling. Gold is capable of sustaining DeMarker readings above 0.7 for many consecutive bars during strong trends, particularly during London and New York sessions when institutional momentum can carry the market in a single direction for hours. A DeMarker reading above 0.7 is not a sell signal by itself; it is a yellow flag indicating that a reversal should be on the radar and confirming entry signals should be monitored.
The 0.3 threshold works symmetrically. Readings below 0.3 mean selling pressure has dominated for the lookback period and buyers have been failing to extend local highs. The market has been persistently reaching new local lows. Again, gold can sustain these readings during genuine downtrends. The oversold reading below 0.3 alerts the trader to watch for a potential bounce or reversal but does not trigger a trade without additional confirmation.
The practical application on XAUUSD is to use the threshold crossings as attention signals. When DeMarker crosses above 0.7, start monitoring for a reversal candle, a CMF turning negative, or a fractal high forming. When DeMarker crosses below 0.3, look for bullish price action confirmation. Entering trades purely on the basis of DeMarker crossing a threshold, without any price or structure confirmation, produces unsatisfactory results on a volatile instrument like gold.
DeMarker Divergence on Gold: The High-Value Application
Divergence analysis with DeMarker on XAUUSD is where the indicator delivers its most reliable and highest-value signals. Bearish DeMarker divergence occurs when gold price makes a new swing high but the DeMarker reading at that high is lower than the DeMarker reading at the previous swing high. The price extended higher, but the buying demand behind that extension (as measured by DeMax) was weaker. Fewer bars were achieving new local highs relative to the previous rally period, indicating that buying pressure was decelerating.
On H1 XAUUSD, bearish DeMarker divergence often appears 2-5 bars before the actual price reversal. During the final push to a new high, price is moving on the remnant momentum of the preceding rally rather than fresh institutional buying. DeMarker captures this fading demand through the weakening DeMax component, while price is still technically advancing. This provides a forward-looking warning rather than a lagging confirmation.
Bullish DeMarker divergence operates in the opposite direction. When gold makes a new swing low but DeMarker makes a higher low, selling demand is weakening. Sellers are no longer extending the lows with the same vigor as in the previous decline. This deceleration in selling pressure is typically an early warning that the downtrend is losing momentum. Combined with a visible support structure (a fractal low, a previous high-volume reversal zone, or a Fibonacci retracement level), bullish DeMarker divergence provides high-confidence long entries.
The most powerful divergence signals on gold occur when DeMarker divergence is confirmed by CMF divergence simultaneously. If price is making new highs, DeMarker is making lower highs, and CMF is also declining toward zero or negative, two independent measures of market pressure are both flagging the same exhaustion. This multi-indicator divergence confirmation produces short-term reversal signals on XAUUSD with substantially better reliability than single-indicator divergence.
Best DeMarker Period Settings for Gold: 14 vs 21
The 14-period DeMarker is the standard setting and the most widely implemented. It looks back 14 bars for the smoothed average of DeMax and DeMin, producing an oscillator that reflects approximately two to three trading sessions on H1 XAUUSD. This period provides a good balance between responsiveness and stability for intraday gold trading, catching reversal signals early enough to act on while avoiding excessive whipsawing from single-bar noise.
At 14 periods, the DeMarker on H1 gold typically responds to threshold crossings within one to two bars of a genuine reversal in buying or selling pressure. The crossings above 0.7 or below 0.3 occur with sufficient frequency to provide trading opportunities without being so frequent that they lose meaning. In an active gold session during London-New York overlap, a 14-period DeMarker may touch or cross 0.7 two or three times, which is an appropriate signal frequency for an active trader or EA.
The 21-period setting produces a noticeably smoother DeMarker that changes direction more slowly. False crossings of the 0.7 and 0.3 thresholds become rarer, but genuine crossings also occur later relative to actual price peaks and troughs. For swing traders using H4 or daily gold charts, the 21-period DeMarker provides a cleaner signal set that is less vulnerable to intrabar noise. The reduced signal frequency is actually an advantage at these higher timeframes where trade frequency is inherently lower.
A practical approach for XAUUSD traders is to run the 14-period DeMarker on the execution timeframe (H1 for most active traders) and use the 21-period on one timeframe higher (H4) as a context filter. If the H4 21-period DeMarker is near 0.7, be more selective about taking long signals on H1. If it is near 0.3, favor long setups. This multi-timeframe approach uses both settings appropriately for their respective purposes.
Using DeMarker to Filter Gold EA Entries
Incorporating DeMarker into an EA-based trading system adds a demand-quality filter to the mechanical entry conditions. The fundamental rule is straightforward: only allow long entries when DeMarker is rising above 0.3 (demand recovering from oversold conditions) and only allow short entries when DeMarker is falling below 0.7 (demand collapsing from overbought conditions). This ensures the EA enters long positions when buying demand is recovering rather than exhausted, and short positions when selling pressure is building rather than depleted.
The direction of DeMarker is as important as its level. A DeMarker reading of 0.32 that is rising is a more favorable condition for longs than a reading of 0.45 that is declining. Rising DeMarker from below 0.3 means that buying demand (DeMax) is recovering relative to selling demand (DeMin), which is precisely the early-stage momentum condition where long entries have the highest probability of follow-through. An EA that reads the slope of DeMarker over the past three bars can use this as a directional confirmation rather than a simple threshold filter.
Combining DeMarker direction with a price structure entry creates a clean two-part condition for the EA. Part one: DeMarker is rising from below 0.3 on H1. Part two: price has formed a bullish engulfing candle or broken above a minor intrabar resistance level on M15. Both conditions together identify a scenario where demand is recovering at the oscillator level and price action is confirming the reversal at the micro-structure level. This layered approach avoids both the lag of pure price-action systems and the noise of pure indicator systems.
Gold EAs that incorporate DeMarker filtering alongside their primary technical triggers tend to have fewer but higher-quality trade entries. The reduction in trade frequency is modest (typically 10-20% fewer signals depending on market conditions) but the quality improvement can be significant, particularly in filtering out entries that occur at momentum extremes where reversal risk is highest. Pair the DeMarker filter with an ATR volatility check and a session time filter, and an EA operating on XAUUSD has three independent layers of entry quality control, each addressing a different dimension of market conditions.
Our EAs calculate these indicators automatically on XAUUSD -- without you watching a screen.
Goldie Sniper EA PRO, Goldie Razor V2, and Blind Sniper X PRO all use built-in demand analysis to avoid entering gold trades at momentum extremes, ensuring every entry is timed to recovering demand conditions.