Centucode AI All rounder Expert Advisor
- Experts
- Version: 1.0
- Activations: 7
Centucode AI All Rounder Expert Advisor
Short product summary
A self-contained MetaTrader 5 Expert Advisor that combines closed-bar trend analysis, ATR-based trade planning, configurable position sizing and R-based profit protection with broker-aware execution checks.
Full MQL5 product description
Centucode AI All Rounder Expert Advisor is a fully automated Expert Advisor for MetaTrader 5. It evaluates the active chart using a closed-bar exponential moving-average trend model and uses Average True Range to adapt stop-loss and take-profit distances to current volatility.
The EA is designed for traders who want rule-based execution, user-controlled risk and clear operational safeguards. It runs locally inside MetaTrader 5 and does not require a Centucode licence key, external dashboard, DLL, WebRequest permission or third-party signal subscription.
When the fast EMA is above the slow EMA and buying is enabled, the EA can prepare a buy plan. When the fast EMA is below the slow EMA and selling is enabled, it can prepare a sell plan. The signal is evaluated using a completed candle. Before any order is sent, the EA checks the current quote, spread, account permissions, symbol trading properties, stop distance, volume constraints, available margin, filling mode and the result of the platform's order-validation process.
Every accepted entry is submitted with a stop loss and take profit. Position size can be calculated from a selected percentage of account capital or set to a fixed lot. The EA also monitors daily equity loss, account drawdown and aggregate stop risk before approving a new position.
Profit protection is based on the trade's original risk distance, expressed as R. The default configuration can move protection toward break-even after the trade reaches 1R, secure 0.5R after the position reaches 1.5R and begin trailing after 2R while preserving a configurable gap. Protection changes are attempted only when the proposed stop improves the existing stop and complies with the broker's stop and freeze levels.
The strategy does not use martingale position multiplication, grid recovery or averaging into a losing trade. It maintains at most one position on the active symbol and can close an EA-owned position after an opposite completed-bar trend is detected when that option is enabled.
Core features
• Fully automated MetaTrader 5 trade execution.
• Closed-bar EMA trend logic with configurable fast and slow periods.
• ATR-based volatility measurement and configurable stop multiplier.
• Configurable risk-to-reward target.
• Automatic percentage-risk or fixed-lot position sizing.
• Independent controls for buy trades and sell trades.
• Optional exit after an opposite completed-bar trend.
• Maximum spread filter expressed in points.
• Maximum EA-owned concurrent exposure setting.
• Persistent daily equity-loss and drawdown protection.
• R-based break-even, profit-lock and trailing-stop management.
• Broker-aware volume, margin, stop-distance and filling-mode validation.
• OrderCheck validation before OrderSend.
• Persistent uncertain-submission protection to reduce accidental duplicate entries after an unresolved order response.
• No DLL calls, no external WebRequest and no additional customer licence configuration.
How the trading process works
1. The EA waits for sufficient price history and fully calculated EMA and ATR data.
2. At the beginning of a new bar, it reads the previous completed candle's fast EMA, slow EMA and ATR values.
3. It determines whether the current trend condition supports a permitted buy or sell direction.
4. It builds an ATR-adjusted stop loss and take profit while respecting the symbol's tick size, spread, stop level and freeze level.
5. It validates confidence, entry direction, reward-to-risk, current quote age, spread, trading permissions and entry drift.
6. It calculates a broker-valid volume and checks symbol volume limits, aggregate account risk and free margin.
7. It sends the market order only after the platform's OrderCheck accepts the request.
8. It supervises the resulting EA-owned position and applies configured profit-protection stages when their conditions are met.
Default inputs
| Setting | Default | Purpose |
| Fast EMA period | 20 | Measures the shorter trend component |
| Slow EMA period | 50 | Measures the broader trend component |
| ATR period | 14 | Measures recent volatility |
| Stop ATR multiplier | 1.50 | Sets the initial volatility-based stop distance |
| Risk reward | 2.00 | Sets the minimum planned reward relative to risk |
| Allow buy | True | Permits long entries |
| Allow sell | True | Permits short entries |
| Exit on opposite trend | True | Allows an opposite closed-bar trend to close an EA position |
| Risk percent | 1.00 percent | Defines risk budget in automatic sizing mode |
| Use fixed lot | False | Selects automatic percentage-risk sizing by default |
| Fixed lot | 0.01 | Volume used when fixed-lot mode is enabled and accepted by risk checks |
| Maximum concurrent trades | 2 | Caps EA-owned positions and pending exposure across the account |
| Maximum spread | 300 points | Blocks entries when spread exceeds the configured limit |
| Daily equity-loss limit | 3.0 percent | Stops new entries after the daily equity-loss threshold is reached |
| Drawdown limit | 10.0 percent | Stops new entries after the persistent equity drawdown threshold is reached |
| Break-even trigger | 1.0R | Starts cost-aware break-even protection |
| Profit-lock trigger | 1.5R | Starts the configured profit-lock stage |
| Profit locked | 0.5R | Target risk multiple secured at the profit-lock stage |
| Trailing start | 2.0R | Starts R-based trailing protection |
| Trailing gap | 1.0R | Maintains the configured distance behind peak R |
Markets and timeframes
The EA reads the symbol and timeframe of the chart to which it is attached. The calculation is timeframe-independent, but the frequency and character of trades will change significantly between M1, M30, H1, D1 and other periods.
It can be tested on Forex, metals and other broker symbols that provide valid tick size, volume, margin, profit-calculation and trading-mode properties. A symbol being technically supported does not mean that the default settings are suitable or profitable for that symbol. Users should test each symbol, timeframe, broker specification and parameter set independently.
Installation and first use
1. Purchase or download the product through the official MQL5 Market channel.
2. Install it through MetaTrader 5 and confirm that Algo Trading is enabled.
3. Open a chart for the intended symbol and timeframe.
4. Attach Centucode AI All Rounder Expert Advisor to the chart.
5. Review every input, especially risk percent, fixed-lot mode, maximum spread, daily loss and drawdown settings.
6. Run a Strategy Tester backtest using representative broker history and trading costs.
7. Run the chosen settings on a demo account before considering live use.
8. Monitor the Experts and Journal tabs for initialization, trade approval, trade blocking and profit-protection messages.
Recommended operating practice
• Begin with conservative risk and do not assume that settings suitable for one symbol will suit another.
• Use realistic spread, commission, swap and execution assumptions during backtesting.
• Use a stable MetaTrader 5 terminal or VPS if uninterrupted monitoring is required.
• Do not manually remove or widen an EA-managed stop without understanding the resulting risk.
• Investigate repeated MARKET BLOCK messages instead of increasing risk or disabling safeguards.
• Re-test after changing broker, account type, symbol suffix, timeframe or major input values.
Important limitations
• The current Market edition uses a local rules-based EMA and ATR engine. It does not use remote artificial intelligence, machine learning, news feeds or economic-calendar analysis.
• It is not a multi-symbol scanner. It evaluates the active chart symbol and timeframe.
• It does not guarantee that a signal will occur within a particular period.
• It can decline a trade because of spread, margin, volume, broker permissions, stale quotes, insufficient history, existing exposure or account-risk limits.
• Stop loss, take profit and trailing behavior remain subject to gaps, slippage, broker execution and market liquidity.
• Backtest results are not a forecast of future performance.
MQL5 Product Questions and Answers
Does the EA guarantee profit
No. No automated strategy can guarantee profit. Results depend on market conditions, broker execution, symbol specifications, trading costs, selected inputs and risk management.
Does the Market edition require a Centucode licence key
No. The MQL5 Market edition uses the protection and activation system supplied by MQL5. It does not require an external Centucode customer credential.
Does it need WebRequest or a DLL
No. The Market edition is self-contained and does not call an external API or DLL.
Does it use martingale or grid recovery
No. The current strategy does not multiply volume after losses, build a recovery grid or average into losing positions.
How are trade signals generated
The EA compares configurable fast and slow exponential moving averages using the previous completed bar. ATR is used to adapt the initial stop distance to volatility.
How is lot size calculated
Users can select automatic percentage-risk sizing or fixed-lot mode. The EA still validates the resulting volume against broker limits, the configured risk budget and available margin.
How does profit protection work
The EA reconstructs the position's original risk distance from the confirmed opening order. It can then apply cost-aware break-even, profit-lock and trailing stages using configurable R multiples.
Can it trade any symbol
It can evaluate the active chart symbol when MetaTrader provides the required price, volume, margin and trading properties. Users must test each symbol and broker specification separately.
Can it trade any timeframe
The logic is timeframe-independent, but trade frequency and behavior vary materially by timeframe. Adequate price history is required before signals can be evaluated.
Why might the EA place no trade
Possible reasons include no qualifying EMA direction, insufficient bars, disabled buy or sell direction, excessive spread, inadequate free margin, broker volume limits, stale quotes, an existing position, trading permissions or triggered loss controls.
Can I change the default settings
Yes. Strategy, sizing, spread, account-safety and profit-protection inputs are configurable. Every new configuration should be backtested and demo-tested.
Does the EA continue running when MetaTrader is closed
No. MetaTrader must remain open and connected for the EA to evaluate new entries and manage its active protection logic. The broker-held stop loss and take profit remain at the broker, subject to broker operation.
Should I use a VPS
A VPS is optional but may improve continuity when around-the-clock operation is required. It does not improve strategy quality or guarantee execution results.
What account type can be used
The execution logic is designed for standard MT5 environments and maintains one position per symbol. Broker rules and netting or hedging behavior should be confirmed in the Strategy Tester and on demo.
