Market Cultivator
- Experts
- 버전: 1.20
- 활성화: 5
Market Cultivator
Cultivating Small Moves into Sustainable Growth
Market Cultivator is a fully automated Expert Advisor for MetaTrader 5, developed for short-term trading on XAUUSD. It combines an initial two-direction hedge, controlled layered position management, monetary average-profit trailing, and a profit-bank recovery process.
The system is designed to keep its settings understandable. It does not depend on ATR, ADX, EMA, or a large collection of technical indicators. Trade management is based on price distance, current monetary profit, spread conditions, and M5 price momentum during recovery.
Important: Market Cultivator uses a martingale-style lot multiplier and does not place a fixed Stop Loss on each individual position. Please read the risk information before using it.
Core Trading Process
At the beginning of a new cycle, the EA checks the current spread and opens one Buy and one Sell position with the same initial lot size.
The Buy and Sell sides are then managed independently:
- A profitable side is managed using Average Profit Trailing in account currency.
- A losing side can receive additional positions after price moves by the configured layer distance.
- Layering stops when the configured maximum number of layers is reached.
- Total open volume is restricted by the MaxTotalLot setting.
- After a cycle is completed, the EA waits for the configured cooldown before starting a new cycle.
Average Profit Trailing
Market Cultivator does not use a conventional point-based basket Take Profit. Instead, each direction has its own monetary trailing process.
When the combined profit of one side reaches AverageTrailStartMoney, the EA records its highest floating profit. If the profit then falls by AverageTrailDistanceMoney from that peak, all positions on that side are closed.
This allows the exit level to follow favorable movement without requiring a fixed price target.
Controlled Layering
If one side is losing, the EA can add a new position after price has moved against the most recent position by LayerDistancePoints.
The next position volume is calculated from InitialLot and LotMultiplier. Broker volume steps and limits are applied automatically. A minimum internal delay between layers helps prevent multiple orders from being opened too quickly.
The number of positions per direction is limited by MaxLayers. The EA does not use unlimited layering.
Profit Bank Recovery
When a losing direction reaches MaxLayers, Market Cultivator can enter recovery mode.
During recovery:
- The EA stops adding normal martingale layers.
- It waits for M5 momentum confirmation before opening a small position in the opposite direction.
- Realized results from recovery scalps are recorded in the Profit Bank.
- When the accumulated bank can cover an eligible losing recovery position, the EA closes the least expensive losing layer first.
- The process continues gradually until the recovery exposure has been reduced.
Recovery scalp losses are limited by ScalpMaxLossMoney. The complete trading cycle is protected by MaximumCycleLossMoney, which closes all Market Cultivator positions when the configured monetary loss threshold is reached.
Main Features
- Fully automated XAUUSD trading for MetaTrader 5.
- Recommended M5 chart operation.
- Independent Buy and Sell management.
- Monetary Average Profit Trailing.
- Controlled martingale-style layering with a maximum layer limit.
- M5 momentum-filtered recovery scalps.
- Profit Bank for gradual recovery-position reduction.
- Spread filter before opening positions.
- Maximum total lot restriction.
- Maximum monetary loss limit per trading cycle.
- Margin, broker volume-limit, and trading-session checks.
- Order retry and execution verification logic.
- Recovery state persistence after terminal restart.
- On-chart dashboard with live account and cycle information.
- Manual Close All, Close Buy, Close Sell, Pause, and Resume controls.
- Green and orange chart theme.
Dashboard Information
The dashboard displays:
- EA operating status.
- Account balance and equity.
- Current spread and spread-filter status.
- Cycle number and running time.
- Buy and Sell position count, volume, average price, and floating result.
- Total position volume and floating result.
- Current layer count.
- Average trailing settings and recorded profit peaks.
- Recovery state and Profit Bank value.
Recommended Environment
- Platform: MetaTrader 5.
- Symbol: XAUUSD (Gold).
- Timeframe: M5.
- Account type: Hedging account is required.
- Execution: A low-spread account with reliable market execution is recommended.
- Hosting: A low-latency VPS is recommended for continuous operation.
- Algo Trading: Must be enabled.
Symbol specifications, point size, spread, commission, swaps, execution speed, and slippage vary between brokers. Always test the EA using data and trading conditions from the intended broker.
Default Parameters
Main Trading
- MarketCultivatorMagic = 26091601
Unique identifier used to separate Market Cultivator positions from other trades. - InitialLot = 0.01
Starting volume for the initial Buy, Sell, and recovery scalp positions. - CycleCooldownSeconds = 60
Waiting time before a new trading cycle can begin.
Average Profit Trailing Per Side
- AverageTrailStartMoney = 2.00
Combined directional profit required to activate trailing. - AverageTrailDistanceMoney = 0.50
Allowed decline from the recorded directional profit peak before closing that side.
Controlled Martingale
- EnableMartingale = true
Enables additional positions on a losing direction. - MaxLayers = 5
Maximum position count allowed for each direction. - LotMultiplier = 1.30
Multiplier used to calculate the next layer volume. - LayerDistancePoints = 300
Minimum adverse price distance from the latest position before another layer is considered.
Profit Bank Recovery
- EnableProfitBankRecovery = true
Enables the recovery process after a side reaches its maximum layer count. - EnableScalpMomentumFilter = true
Requires directional confirmation from closed M5 candles before opening a recovery scalp. - ScalpMaxLossMoney = 4.00
Monetary loss threshold for a recovery scalp side. - MaximumCycleLossMoney = 500.00
Emergency monetary loss threshold for the complete EA cycle.
Essential Protection
- MaxSpreadPoints = 50
Maximum permitted spread for new entries. - MaxTotalLot = 1.00
Maximum combined volume allowed across all positions managed by this EA on the current symbol.
Installation
- Install Market Cultivator through the MQL5 Market in MetaTrader 5.
- Open an XAUUSD M5 chart.
- Attach Market Cultivator to the chart.
- Enable Algo Trading.
- Confirm that the trading account uses Hedging mode.
- Start with the default settings in the Strategy Tester and on a demo account.
- Use a VPS if the EA is expected to operate continuously.
Use only one Market Cultivator instance with the same Magic Number on the same symbol. If multiple instances are required, assign a different Magic Number to each instance.
Internal Backtest Reference
The following result is an internal historical test, not a live trading result:
- Symbol and timeframe: XAUUSD M5.
- Test period: 1 August 2026 to 16 September 2026.
- Modeling: Real ticks.
- History quality: 99 percent.
- Initial deposit: 10,000.
- Net result: 5,065.62.
- Profit factor: 1.54.
- Maximum equity drawdown: 888.05, or 6.58 percent.
- Total trades: 6,381.
This is a short historical test period and must not be treated as proof of future performance. Results can differ significantly because of broker conditions, spreads, commissions, swaps, slippage, data quality, and future market behavior.
Important Risk Information
Market Cultivator uses hedging, multiple positions, and martingale-style volume progression. These methods can create substantial floating drawdown during strong or prolonged one-directional movement.
The EA does not apply a fixed Stop Loss to every individual position. MaximumCycleLossMoney is a cycle-level monetary protection and may be affected by slippage, gaps, disconnections, rejected orders, and execution latency. It cannot guarantee that the final realized loss will equal the configured value.
Do not select a lot size based only on expected profit. Consider the complete possible exposure of all layers. Test every parameter change in the Strategy Tester and on a demo account before using real funds.
Trading Forex, Gold, and CFDs involves substantial risk. Losses are possible, and past backtest performance does not guarantee future results. Use only capital you can afford to lose.
Support
For installation questions, settings guidance, bug reports, and product support, use the Market Cultivator product comments or the MQL5 messaging system.
