AX Strata
- Experts
- Versione: 1.0
- Attivazioni: 5
AX Strata – Multi-Horizon Breakout EA for Gold (XAUUSD)
AX Strata is a rule-based breakout Expert Advisor for gold on MetaTrader 5. It places buy stop and sell stop orders at the edges of the recent price range. When gold breaks out, the broker fills the order. Every order has a stop loss and a take profit from the moment it is placed. There is no grid, no martingale and no averaging down.
HOW IT WORKS
• The EA tracks three breakout horizons: about 4, 6 and 8 weeks of completed H1 bars (components G, F and A).
• For each horizon it keeps a buy stop just below the recent high and a sell stop just above the recent low.
• Orders follow the market: they are refreshed every 15 minutes and at the daily placement time.
• Stop loss = 0.36 × daily ATR(14). Take profit = 4.71 × stop loss.
• Positions are closed only by their stop loss or take profit, which are held on the broker's server.
WHAT TO EXPECT
• This is a breakout system: most trades end at the stop loss, and fewer, larger take profits are expected to pay for them. Losing streaks are normal.
• The EA waits for real breakouts. Many days have no trades, and several positions can open together when a breakout happens.
ADVANTAGES
• Simple, transparent logic – every rule is documented.
• Volatility-scaled stops: wider stops and smaller lots in volatile markets, tighter stops and larger lots in quiet markets – the money at risk per order stays the same.
• Risk-based position sizing using the broker's own profit calculation, rounded to the broker's volume step.
• Minimum-lot protection: if the broker's minimum lot would risk more than allowed, the order is skipped.
• Free-margin check and broker volume-limit check before every order.
• Spread filter and optional Friday cut-off.
• Optional protections: total open-risk limit, daily loss limit, equity drawdown limit, pause after consecutive losses.
• Restart-safe: after a terminal restart the EA restores its state from the account history and does not duplicate orders.
• Single-instance guard: a second copy with the same magic number on the same symbol will not start.
• Works with broker symbol names such as XAUUSD, XAUUSDm, XAUUSD.a, GOLD, GOLD#.
• Detailed CSV log of every decision (orders, skip reasons, fills, exits).
REQUIREMENTS
• MetaTrader 5, hedging account (netting accounts are not supported).
• Gold symbol (XAUUSD or your broker's equivalent).
• Any chart timeframe – M15 recommended. The chart timeframe does not change the trading decisions.
• Algo Trading enabled. A VPS is recommended.
INPUT PARAMETERS
1. General Settings
• Magic number base – identifier of the EA's orders (the EA uses base to base+7). Change it if you run more than one copy on the same account.
• Logging detail – CSV only, CSV plus key journal messages, or detailed journal.
• Write the CSV log to Common\Files – location of the log file.
• CSV log file name prefix – first part of the log file name.
2. Risk Settings
• Position sizing mode – risk % per order or fixed lot.
• Risk per order, % – money lost if one order hits its stop loss (default 0.50%). Up to 3 components × 2 positions can be open at the same time.
• Fixed lot – lot size in fixed-lot mode.
• Account value used for the risk % – lower of balance and equity (recommended) or the highest closed balance.
• Volume rounding – nearest volume step or always round down (never above the risk %).
• Min-lot risk cap, % – if the broker's minimum lot risks more than your setting, the order is allowed only up to this %; otherwise it is skipped.
3. Protection Settings
• Max total open risk, % – limit for open positions plus pending orders (0 = off).
• Daily equity loss limit, % – no new orders until the next server day (0 = off).
• Equity drawdown limit, % – no new orders after this drawdown from the equity peak (0 = off).
• Pause after N consecutive losses – pause until the next day (0 = off).
• Check free margin – check margin before every order.
• Single-instance guard – refuse a second copy with the same magic number.
• Strict startup checks – refuse to start if the spread is far above the limit.
• Allow live trading on a non-gold symbol – off by default; other symbols are not tested.
4. Trading Settings
• Max spread, points – no new orders above this spread (0 = off).
• Friday stop hour – no new orders on Friday from this server hour (25 = never).
• Max deviation, points – allowed price deviation.
5. Strategy Settings
• Component G / F / A – switch each breakout horizon (about 4 / 6 / 8 weeks) on or off.
• Max open positions per component – default 2.
• Volatility-scaled SL/TP – on: ATR-based stops; off: fixed 0.35% SL / 1.64% TP.
6. Broker Time
• Broker daylight-saving schedule – European, US or none (used for log timestamps).
• Strategy Tester: broker winter offset – UTC offset of the broker in the tester.
• Live: broker winter offset – -99 = detect automatically.
7. Advanced Settings
• Daily placement time, day-switch wait, 15-minute order refresh, retries, order update method, max pending orders per side, resize threshold, specification tolerance, starting peak balance, drawdown risk reduction. Leave these at their defaults unless you have a specific reason.
RECOMMENDATIONS
• Test first in the Strategy Tester ("Every tick based on real ticks") and on a demo account with your broker.
• Start with 0.5% risk per order or less.
• Use one chart per account and magic number.
RISK WARNING
Trading CFDs on gold involves a high risk of loss. AX Strata does not guarantee profits or any particular win rate. Backtests are simulations and past results do not guarantee future results. Spreads, swaps, slippage and broker conditions affect results. Only trade with money you can afford to lose.
