PropFirm Ascent: setting up a gold EA for a prop-firm challenge, input by input
PropFirm Ascent is an intraday Expert Advisor for gold (XAUUSD) with the protections a prop-firm account needs built in: a daily loss limit, a maximum drawdown stop, profit targets and a safe mode that checks every trade against those limits before it is opened. Every trade has its stop-loss at the server from the moment it is opened, and there is no martingale, grid or averaging. This guide shows how to configure it for a typical two-step challenge.
1. Before you start
- MetaTrader 5, preferably a hedging account.
- Symbol XAUUSD under any name (XAUUSD.m, XAUUSDm, GOLD…).
- A VPS or a computer that stays connected during the trading week.
- One chart is enough; the chart timeframe does not change the trades.
The broker's server time is detected automatically (input Broker server time = Auto), so the trading day matches your broker's clock without a manual GMT offset.
2. Choose the risk first
Risk per trade is the average loss at the initial stop, in % of the balance. Five levels are available: 0.25, 0.5, 0.75, 1.0 and 1.4 %. For a challenge we suggest 0.5 %: the evaluation takes longer, but a normal losing streak stays far from the daily and overall limits. The level can also be changed on the dashboard with a click and a confirmation.
Below a certain balance the smallest volume (usually 0.01 lot) risks more than the chosen level. With 0.5 % this happens below roughly 12,000 USD of balance; the guide in the product lists the values for every level.
3. Translate the firm's rules into inputs
Example rules: 5 % maximum daily loss, 10 % maximum loss from the initial balance, +10 % target in phase 1 and +5 % in phase 2.
| Input | Value | Reason |
|---|---|---|
| Daily loss limit | Custom, 4 % | One point below the firm's rule, room for gaps and spread |
| Daily figures are measured from | Balance (or the higher of balance and equity, if the firm says so) | Must match the firm's definition |
| Daily loss limit counts | Whole account | Firms count every trade on the account |
| Maximum drawdown | Custom, 9 %, from the initial balance | One point below a static 10 % rule |
| Initial balance of the account | 100000 (the challenge size) | The percentages are measured from it |
| Prop-firm safe mode | On, buffer 0.5 % | See next section |
| Profit target | 10 in phase 1, 5 in phase 2, 0 when funded | Stops trading once the phase is passed |
For a firm with a 4 % daily and 8 % overall rule, use 3 % and 7 %. For a trailing overall rule choose Equity peak instead of Initial balance.
4. What the safe mode does
Before every new trade the EA adds up today's closed result, every open trade at its stop and the new trade at its stop. If the total would cross the daily limit or the maximum drawdown floor (minus the buffer), the volume of the new trade is reduced until it fits, or the trade is skipped. Near the limits, the account takes smaller trades instead of risking the rule on one more full-size loss.
5. Optional filters
- Maximum spread for new trades: 100–150 points is a sensible value for gold on most brokers.
- News pause: no new trades around high-impact USD releases from the MetaTrader economic calendar, if your firm restricts news trading.
- Weekend rule: closes on Friday evening, for account types that may not hold positions over the weekend.
6. Reading the dashboard
The status line shows Active in green when everything is ready, or why the EA is waiting (spread, news), paused (daily limit, target, weekend) or stopped. The tiles show today's result against the daily limit, the drawdown against its stop and the progress to the target; the prop-firm section shows the daily loss and the maximum drawdown in money against their limits, and the market section shows the spread and the next news pause. After a stop by the maximum drawdown or the profit target the EA stays stopped, also after a restart, until you press Resume.
7. What it does not do
It does not enforce minimum trading days or consistency rules of some firms, and it cannot prevent a price gap from pushing a day slightly beyond its limit; that is why the limits are set one point inside the firm's rules. It applies the rules you enter, so read your firm's current rules before starting.
Product page: https://www.mql5.com/en/market/product/204592


