What is Envelopes?
Envelopes is a volatility indicator that cBot Factory exposes as a percentage price channel. Places fixed-percentage bands around a moving average. For an automated strategy, the useful question is not whether the indicator is popular; it is whether its output can be converted into a precise rule that has a clear job inside the system. Envelopes place upper and lower bands a fixed percentage above and below a moving-average centerline. The deviation is constant unless you change the parameter.
In cBot Factory, Envelopes belongs to Volatility, is tagged Premium, and serves as a percentage price channel. That is the factual product scope for this article. Calibrate deviation by symbol and timeframe; fixed bands do not adapt automatically. 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 Envelopes works
Because the indicator is calculated from completed historical inputs, its signal can lag the market event that created it. Price outside an envelope shows that it has moved a selected percentage away from the average. That can be treated as extension for mean reversion or as strength for breakout logic. In a cBot, completed-bar evaluation is often easier to reproduce in backtests than reacting to every intrabar fluctuation. The exact timing choice must remain consistent between backtest, demo and live execution so that the same rule is actually being measured.
Sensitivity follows from the selected inputs. Envelopes differ from Bollinger and Keltner channels because their width is fixed as a percentage rather than calculated from changing volatility. 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
The same Envelopes reading can be used differently in different strategy styles. That is acceptable as long as the meaning is defined before testing. Fixed-distance channels, mean-reversion thresholds, percentage breakouts and simple trend envelopes are the most natural research directions here. Calibrate deviation by symbol and timeframe; fixed bands do not adapt automatically. A good rule describes not only what must happen, but also whether the condition must persist for one or more completed candles before it counts.
Envelopes settings in cBot Factory
Parameter discipline matters as much as indicator choice. cBot Factory exposes a finite set of Envelopes controls so that the strategy can be reproduced exactly. The table below is the current product specification. Before optimizing, establish a baseline and record the expected behavioral effect of each parameter. That makes it easier to distinguish a genuine improvement from a lucky combination discovered through excessive searching.
Envelopes editable parameters
| Parameter | Default | Available input / rule |
|---|---|---|
| MA period | 20 | Numeric input · min 2 · max 1000 |
| Deviation (%) | 1 | Numeric input · min 0.01 · max 100 · step 0.01 |
| Rule | Price below lower envelope | Price below lower envelope · Price above upper envelope · Re-enters upward · Re-enters downward |
Do not treat the Rule field as a minor setting. For Envelopes, choosing a continuing state versus a discrete transition changes entry frequency, timing and re-entry behavior. The bot should also define what happens if confirmation arrives several bars after the original event. Explicit event semantics make the strategy reproducible and easier to troubleshoot.
How to automate Envelopes signals in a cTrader cBot
Turning Envelopes into code means removing words such as 'looks strong', 'near', or 'probably'. A cBot might require low ADX and price to re-enter above the lower envelope, then use RSI as a recovery trigger for a long mean-reversion setup. That example is intentionally conditional rather than predictive. A production rule also needs trade direction, bar timing, duplicate-entry handling, position limits and exit logic. The indicator only supplies one decision input. The cBot should remain deterministic when the same historical data is replayed.
Best strategy styles
The supported strategy styles for Envelopes are Mean reversion, Breakout, 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.
The clearest applications of Envelopes are fixed-distance channels, mean-reversion thresholds, percentage breakouts and simple trend envelopes. That list is more useful than trying to make the indicator support every possible style. Build one thesis at a time, define the market behavior it is supposed to capture, and measure whether the rule actually behaves that way across different periods rather than only in the optimization sample.
Indicators that pair well with it
Useful companions for Envelopes include ADX, RSI, and ATR. The reason to pair them is functional rather than cosmetic. Envelopes differ from Bollinger and Keltner channels because their width is fixed as a percentage rather than calculated from changing volatility. During testing, compare the base strategy with and without each confirmation rule. If removing an indicator barely changes trade quality or risk behavior, simplifying the cBot may be preferable to keeping redundant complexity.
The library points to ADX, RSI, and ATR as useful complementary evidence. That does not imply an optimal three-indicator recipe. Start small, compare versions and keep only rules that improve the strategy for a clear reason. Redundant filters often reduce trade count faster than they improve the quality of the underlying signal.
How to backtest the cBot
For Envelopes, the most informative test is often robustness rather than maximum historical profit. Verify that completed-bar timing, data source and symbol settings match the intended cTrader deployment. Test multiple date windows and inspect losing periods instead of optimizing them away. If the strategy only works after many thresholds, filters and exceptions are tuned together, simplify and retest. A smaller, understandable rule set is easier to diagnose when live behavior differs from the historical sample.
Trade-level review is essential for Envelopes. Sort outcomes by date, session, symbol and regime, then compare the signal behavior in the strongest and weakest periods. Look for a repeatable explanation rather than an exception for each loss. Any proposed filter should be written as a hypothesis and validated outside the sample that suggested it.
Common mistakes to avoid
The largest conceptual error is allowing Envelopes to answer questions it was not designed to answer. Fixed percentage width does not automatically expand when volatility rises or contract when volatility falls, so settings can become stale across regimes. A volatility indicator should be combined with separate risk logic and, when needed, another evidence category. Keep the rule falsifiable: you should be able to point to a bar and say exactly why the condition was true or false without looking at what happened afterward.
Practical Envelopes cBot checklist
A final pre-deployment check for Envelopes should answer five questions: What exact market condition makes the rule true? What independent evidence confirms it? What market regime should block it? What invalidates the setup after entry? What account-level control limits loss when the signal fails? If any answer depends on looking at future candles, the logic contains hindsight and should not move forward.
Risk management and practical limits
Risk management should not depend on Envelopes 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: Envelopes 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.
Envelopes FAQ
Is Envelopes a leading or lagging indicator?
It is best described as a descriptive or confirming measure of realized volatility conditions. It can identify contraction or expansion that may matter for a strategy, but it does not know the direction or magnitude of the next move.
What is the best Envelopes 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 Envelopes be used by itself?
It can be coded as a stand-alone rule, but that does not make it a complete trading system. Calibrate deviation by symbol and timeframe; fixed bands do not adapt automatically. A cBot still needs direction logic where applicable, entry timing, exits, position sizing, exposure limits and realistic validation.
Which indicators pair well with Envelopes?
The cBot Factory library commonly pairs Envelopes with ADX, RSI, 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 Envelopes
Use Envelopes as measurable evidence, not as a promise. A strong cBot design explains what the indicator measures, why the selected rule fits the strategy, what other condition confirms it, and what happens when it fails. That combination of explicit logic, realistic testing and independent risk control is far more important than any single indicator threshold.
Turn the indicator into an explicit rule you can test.
Add Envelopes 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 StudioEditorial 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.
