Momentum indicator guide

DeMarker: How to Use It in a cTrader cBot

Learn how DeMarker works, how to automate its signals in a cTrader cBot, which settings cBot Factory exposes, useful pairings, backtesting, and risk limits.

RoleExhaustion momentum
AccessPremium
Common pairingsADX · Keltner Channels · ATR

What is DeMarker?

In cTrader automation, DeMarker is most useful when it answers one specific question. In cBot Factory its role is described as exhaustion momentum: compares recent highs and lows to estimate directional exhaustion. DeMarker compares changes in recent highs and lows and smooths the resulting pressure into a bounded oscillator. It is designed to show when directional pressure is relatively stretched. That makes the indicator a source of evidence, not a complete trading system on its own.

In cBot Factory, DeMarker belongs to Momentum, is tagged Premium, and serves as a exhaustion momentum. That is the factual product scope for this article. Pair with a range or trend-state filter before using extreme levels. Before testing, turn the intended use into a sentence that could be evaluated on a single completed bar without looking ahead to later price action.

How DeMarker works

A useful way to understand the calculation is to ask what information it compresses and what information it leaves out. Higher DeMarker readings indicate stronger recent upward pressure and lower readings indicate stronger downward pressure. Crosses out of an extreme zone can be used as recovery events. Whatever it omits must come from price structure, another indicator, risk controls or a rule that keeps the bot inactive. Automation is strongest when an indicator condition is deliberately narrow rather than overloaded with several interpretations.

Sensitivity follows from the selected inputs. DeMarker derives momentum from changes in highs and lows rather than directly from close-to-close gains and losses like RSI. Changing a lookback or threshold therefore changes how often the bot recognizes a condition and how quickly it reacts. Faster recognition can increase noise; slower recognition can reduce noise while arriving later. Evaluate the trade-off against the purpose of the strategy rather than assuming that more responsiveness is automatically better.

How to interpret the signal in a cTrader strategy

DeMarker should occupy one explicit role inside the cBot rather than acting as an all-purpose signal.

Interpretation becomes more reliable when the strategy separates context from trigger. DeMarker can provide either context or the event that opens the setup, but asking it to do both often creates circular logic. Exhaustion context, range reversals, pullback recovery and momentum-state filters fit the indicator's design. Pair with a range or trend-state filter before using extreme levels. The chosen interpretation should be tested across different volatility regimes and more than one isolated market sample.

DeMarker settings in cBot Factory

The configurable DeMarker inputs in cBot Factory are intentionally explicit. Each value changes either the lookback, sensitivity, threshold or interpretation of the indicator. The exact current parameters and defaults are listed below. Treat them as a reproducible specification for a test, not as an optimization target to maximize historical profit. If dozens of nearby combinations fail while one precise combination looks exceptional, the result may be fragile rather than insightful.

Current cBot Factory controls

DeMarker editable parameters

Premium
ParameterDefaultAvailable input / rule
Period14Numeric input · min 2 · max 500
Level0.3Numeric input · min 0 · max 1 · step 0.01
RuleCrosses above levelCrosses above level · Crosses below level · Is above level · Is below level

The interpretation selected in the Rule control changes the event model of the cBot. A condition such as 'is above' can qualify repeatedly, while a crossing or flip is naturally one-time until the next transition. For DeMarker, document whether repeated eligibility is intended and how confirmation candles interact with the original event so the backtest does not accidentally test a different strategy.

How to automate DeMarker signals in a cTrader cBot

The safest automation pattern is to write the DeMarker rule as a yes/no statement that can be tested on a completed bar. A cBot might require low ADX or a Keltner range context, then wait for DeMarker to cross back above a low threshold before considering a long entry. From there, define whether the condition can open another position while one is already active, whether an opposite signal closes or reverses exposure, and whether confirmation candles are required. Those implementation details often change results more than a small parameter adjustment.

Best strategy styles

The supported strategy styles for DeMarker are Mean reversion, Trend following, and Hybrid / custom. A useful design test is to explain in one sentence why the indicator belongs in that style. If the explanation is only that the indicator is widely used, the rule is not specific enough. The bot needs a hypothesis connecting the indicator state to the behavior the strategy is trying to capture.

A strong use case stays close to the indicator's native job. For DeMarker, that means exhaustion context, range reversals, pullback recovery and momentum-state filters. The strategy can still be creative, but every interpretation should be written in advance. When one reading means continuation in one regime and reversal in another, the cBot needs a separate regime rule to decide which branch is allowed.

Indicators that pair well with it

cBot Factory commonly pairs DeMarker with ADX, Keltner Channels, and ATR. These pairings are useful because they can add evidence that is not identical to the indicator's primary job. DeMarker derives momentum from changes in highs and lows rather than directly from close-to-close gains and losses like RSI. Pairing should reduce ambiguity, not simply reduce the number of trades until a backtest looks cleaner. If two indicators are mathematical cousins, test whether the second actually contributes information rather than duplicating the first.

The library names ADX, Keltner Channels, and ATR as common companions, but that is a menu of possibilities rather than a requirement to stack all three. Begin with the DeMarker-only baseline, add one complementary condition, and compare the effect on expectancy, drawdown, stability and trade count. If the second indicator barely changes the quality of the sample, simplicity may be the stronger design choice.

How to backtest the cBot

A useful DeMarker backtest asks whether the logic survives changes in market conditions. Start with a baseline parameter set, then test nearby values to see whether performance is stable or collapses around one narrow optimum. Include transaction costs and enough trades for the result to be interpretable. After development, use an untouched sample and then forward test on a demo environment. Backtest profitability is historical evidence, not proof of future performance.

Go beyond the summary metrics and inspect where DeMarker fails. Break results into years, sessions, symbols and volatility regimes when possible. Clusters of losses can reveal the environment the rule handles poorly. Decide whether that weakness is part of the strategy's normal cost or whether a simple, pre-justified filter should be tested on untouched data. Avoid designing the filter after seeing every losing trade.

Common mistakes to avoid

The most common mistake is treating DeMarker as a prediction engine. Extreme readings can remain extreme during persistent directional movement, especially when the broader regime filter is ignored. Another mistake is selecting a threshold only because it maximizes one backtest. Settings should have behavioral logic and should remain reasonably stable when the date range moves. Finally, avoid adding several correlated confirmations until almost every losing trade disappears; that is a classic path to overfitting and very low real-world trade frequency.

Practical DeMarker cBot checklist

Keep a small research log for DeMarker. Record the baseline settings, each hypothesis-driven change, the expected effect on trade behavior and the actual result. That prevents optimization from becoming a sequence of undocumented tweaks. A strategy that is slightly less profitable in sample but more stable across periods, symbols and nearby settings may be a better candidate for forward testing than the single highest backtest result.

Risk management and practical limits

Risk management should not depend on DeMarker being correct. Define how much the cBot may lose on a trade, how many positions it can hold, whether correlated symbols may overlap, and when trading must stop after abnormal losses or execution conditions. Indicator confidence is not a substitute for exposure control. Demo and backtest results can help calibrate behavior, but neither guarantees live outcomes.

Risk note: DeMarker is based on historical market data and cannot guarantee future price direction or profitability. Backtests and demo results can differ materially from live trading because of spread, commission, slippage, liquidity, execution timing and changing market conditions.

DeMarker FAQ

Is DeMarker a leading or lagging indicator?

It is calculated from historical market data, so it is not a crystal-ball leading indicator. Momentum can change before a trend filter does, which sometimes makes the signal feel earlier, but the reading still describes price behavior that has already occurred.

What is the best DeMarker setting for a cTrader cBot?

There is no universal best setting. Use the cBot Factory defaults as a reproducible starting point, then test nearby values on the intended symbol, timeframe and cost assumptions. Prefer settings that remain reasonably stable across different periods over a single narrow historical optimum.

Can DeMarker be used by itself?

It can be coded as a stand-alone rule, but that does not make it a complete trading system. Pair with a range or trend-state filter before using extreme levels. A cBot still needs direction logic where applicable, entry timing, exits, position sizing, exposure limits and realistic validation.

Which indicators pair well with DeMarker?

The cBot Factory library commonly pairs DeMarker with ADX, Keltner Channels, and ATR. The useful pairing is the one that adds a different type of evidence rather than repeating the same calculation in another form.

Final takeaway on DeMarker

DeMarker can be valuable in a cTrader cBot when it has one clear responsibility and its settings are treated as testable assumptions. Start with the simplest rule that expresses the strategy thesis, combine it only with genuinely different evidence, and test the complete system across realistic market conditions. cBot Factory's role is to make those rules explicit enough to build and evaluate; the indicator itself cannot guarantee a profitable outcome.

Use DEM in a cBot

Turn the indicator into an explicit rule you can test.

Add DeMarker in cBot Factory, configure the current product parameters, combine it with complementary evidence where needed, and validate the complete cTrader strategy before forward or live execution.

Open Studio

Editorial basis: this guide uses the current cBot Factory Indicator Library as the product specification. Technical indicator terminology is checked against the official cTrader Algo indicator reference where applicable. Educational content only; nothing on this page is financial advice or a guarantee of trading results.