MT5 gold breakout Expert Advisor · Version 1.00 · November 2026
Trading leveraged products carries a high level of risk. Backtest results are not a promise of future returns.
This is the full user manual for TriGold Orient 1.00, the MetaTrader 5 gold breakout Expert Advisor. The three ready-made set files (Prop-firm, Standard, Risky) are attached at the bottom of this post.
Product page: TriGold Orient. Want all three TriGold engines? See TriGold Pro.
Contents: 1. What TriGold Orient is · 2. Requirements and account size · 3. Installation and first start · 4. How it trades · 5. The dashboard · 6. Risk management and the prop-firm guard · 7. The three set files and backtest results · 8. Input parameters · 9. News filter, Telegram alerts and logs · 10. Troubleshooting and FAQ · 11. Risk warning
1. What TriGold Orient is
TriGold Orient (version 1.00) is a MetaTrader 5 Expert Advisor that trades one gold breakout a day. It marks gold's range at the start of the Asian session, places a stop order on each side, trades the first break and closes everything by 11:55 New York time.
It is the dawn-breakout engine of TriGold Pro, sold on its own. It has the same dashboard, risk manager and prop-firm guard. If you later move to TriGold Pro, its Orient engine trades by the same rules.
| Symbol | Gold (XAUUSD, GOLD ...), found automatically |
|---|---|
| Chart | M15 |
| Trades | At most one a day, closed by 11:55 New York |
| Stop loss | 1% of the entry price, on every order |
| Not used | Grid, martingale, averaging down, hedging of losing trades |
2. Requirements and account size
TriGold Orient needs MetaTrader 5 and a gold symbol. A balance of 10,000 USD (or 100 USD on a cent account) matches the backtests.
- Account type: developed and tested on a hedging account.
- Symbol: gold (XAUUSD, GOLD, XAUUSD.r and similar). For auto-detection the name must contain XAU or GOLD.
- Leverage: 1:100 or higher (the backtests use 1:100).
- Uptime: a VPS is recommended. The range is measured overnight, so the terminal must run without interruption from 20:05 to 11:55 New York time.
How the balance matters. The smallest gold trade (0.01 lot) with a 1% stop risks about 35–40 USD at current gold prices. The Small-account block (on by default) refuses a trade when 0.01 lot would risk more than the Min-lot risk limit (2% of balance). The block never sizes a trade up past that limit.
| Account | Balance | What to expect |
|---|---|---|
| Below minimum | under about 2,000 USD | No trades: the Small-account block refuses every one |
| Minimum | about 2,000 USD (20 USD cent) | Trades the minimum lot at close to 2% risk |
| Recommended, Risky set (2%) | 2,000 USD or more | Matches the set file |
| Recommended, Standard set (1%) | 4,000 USD or more | Matches the set file |
| Recommended, Prop-firm set (0.5%) | 8,000 USD or more | Matches the set file |
| Backtest size | 10,000 USD (100 USD cent) | Matches the backtests below |
Below the recommended balance for your set, the EA trades the minimum lot at a higher risk than the set file states, but never above the 2% block. A cent account's 0.01 lot is a hundred times smaller, so 100 USD on a cent account trades like the 10,000 USD backtest.
Smaller account? Switch the small-account block off. If you want to run TriGold Orient below the recommended balance, switch the block off. The EA then always trades at least 0.01 lot, so each trade risks more than the set file states: about 3.5–4% of a 1,000 USD account and about 7–8% of a 500 USD account. A few losing trades in a row can cost a large part of a small account, so only do this with money you can afford to lose.
- On a live or demo chart: open the Engine tab on the dashboard, set Small-acct block to Off and press Save. To allow a bit more risk instead of none, raise Min-lot risk limit (2% by default).
- In the Strategy Tester: add orient.smallacct=0 to the input "Advanced: dashboard values". If a set file already filled it, add it at the end after a semicolon, for example ...; orient.smallacct=0 .
3. Installation and first start
Attach TriGold Orient to one XAUUSD M15 chart, load a set file and switch on Algo Trading. The dashboard then shows "Active".
- Buy or rent TriGold Orient in the MQL5 Market from inside MetaTrader 5 (Toolbox > Market). It appears under Navigator > Expert Advisors > Market.
- Download the three set files attached to this post (TriGold_Orient_propfirm.set, TriGold_Orient_standard.set, TriGold_Orient_risky.set). Save them in the terminal's MQL5\Presets folder (File > Open Data Folder).
- Tools > Options > Charts: set Max bars in chart to 100,000 or more.
- Open an XAUUSD M15 chart and scroll back a few weeks once, so the M1, M15 and D1 history downloads.
- Drag TriGold Orient onto the chart. On the Inputs tab press Load and pick a set file, then OK.
- Press Algo Trading in the toolbar so it turns green.
- Check the dashboard: Active, the gold symbol and M15 in the header chip, magic 168372xxxx and v1.00 in the footer.
Telegram alerts (optional): tick Tools > Options > Expert Advisors > Allow WebRequest and add https://api.telegram.org. Section 9 covers the rest.
Do not restart the terminal during the range window, 20:05–23:05 New York time. A restart there can cost that day's trade.
Run only one TriGold Orient per account. A second copy on another chart would trade gold twice. TriGold Orient uses its own magic numbers, so it can run next to TriGold Pro, but then gold is traded by both.
4. How it trades
- Range. From 20:05 to 23:05 New York time (the quiet start of the Asian session), the EA records gold's high and low. It waits until the M1 history for the whole window is loaded, so the range is never built from a gap.
- Orders. At 23:05 it places a buy stop at the range high and a sell stop at the range low. Each order carries its stop loss, 1% of the entry price. There is no fixed target by default.
- First break. The first order to fill is the trade of the day, and the other order is cancelled (OCO). At most one trade per day.
- Volatility regime. The EA compares gold's daily volatility (ATR as a percent of price) with its median over the past months. Below the threshold (0.95) the day counts as quiet and is traded at half risk. Instead of half risk, Regime mode can skip quiet days or switch the regime off. With fewer than 120 daily bars of history the regime is unknown, and the day is traded at half risk (or skipped with Skip quiet).
- Management. The Forward profile trails the stop once the trade is 2R in profit, at a distance of 1R. Break-even and a fixed take profit (in R) are optional on the Engine tab.
- Exit. Any open trade and any unfilled order are closed at the flat time, 11:55 New York. No position is held overnight or over the weekend.
All times are New York time and follow daylight saving automatically, whatever your broker's server time. The range window and the flat time can be changed on the Engine tab.
Profiles. The profile sets the regime and trailing rules in one step:
| Profile | Quiet days | Trailing |
|---|---|---|
| Forward (default) | Half risk below 0.95 | From 2R |
| Validated | Half risk below 1.10 | None, flat time only |
| All days | Regime off | None, flat time only |
5. The dashboard
Every setting is changed on the chart: click − or + (or the arrows for a choice), and the change applies at once. Save keeps the values after a restart; Reset goes back to the profile's defaults.
The header shows the symbol, price, trading state (Active, Paused, Halted by the guard, Algo off, or Orient off) and the time. Below it are equity, day profit or loss, prop drawdown against its limit, open risk against its cap, gold risk against its cap, and positions against the maximum.
| Tab | What it shows and controls |
|---|---|
| Portfolio | Left: the Orient card (on/off, symbol, trend, state, volatility regime). Right: Today (buy/sell stop prices or the range so far, today's volatility against the threshold, the plan: when the orders arm and when the EA goes flat) and Track record (closed trades, total R, average R per trade and risk per trade on this account). Buttons: Pause, Close all, Telegram test |
| Engine | Profile, state and every Orient parameter. Buttons: Close engine trades, Levels on chart |
| Outlook | What the EA is waiting for today and why |
| News | Upcoming calendar events and the filter settings |
| Risk | Risk caps, position limits and trade management mode |
| Guard | Prop-firm guard: loss limits, drawdown anchor, profit target, current state |
| Log | Recent messages: orders, fills, exits, skipped days and why |
On the chart. With Levels on chart on, the range window is shaded and the buy stop, sell stop and stop losses are drawn as lines.
Pausing and closing. Pause stops new orders but keeps open trades and their stops. Close all asks for a second click within 3 seconds, then closes TriGold Orient's own positions and removes its orders. Trades from other EAs and manual trades are never touched.
The corner handle resizes the panel; the − button in the header minimizes it.
6. Risk management and the prop-firm guard
Risk is set on the Engine tab, capped for the whole account on the Risk tab, and protected by the guard on the Guard tab.
Risk per trade is a percent of balance (0.30% by default), halved on quiet days. The lot size is the risk divided by the distance to the stop loss, rounded to the broker's lot step.
Risk tab
| Setting | Default | Effect |
|---|---|---|
| Total open risk cap | 6% | No new trade when the open risk of all positions would pass this (0 = off) |
| Symbol risk cap | 5% | The same, per symbol |
| Symbol positions | 12 | Most positions on one symbol |
| Total positions | 20 | Most positions in total |
| Trade management mode | Per engine | Per engine = Orient's own break-even and trailing; Central = the Risk tab's break-even and trail rule |
Open risk counts each position's distance to its stop loss.
Prop-firm guard (Guard tab)
The guard watches the whole account and stops TriGold Orient when a loss limit is hit.
| Setting | Default | What it does |
|---|---|---|
| Prop guard | On | Switches the guard |
| Daily loss limit | 5% | Equity loss within the server day; trading resumes the next server day |
| Max drawdown | 10% | Total loss limit; stays locked until you reset it |
| Drawdown anchor | Static | Static: from the balance when the guard started. Dynamic: from the equity high (trailing). Baseline: from an amount you enter, such as the challenge size |
| On breach | Close all, lock | Close all positions and stop, or Lock only (stop new trades) |
| Profit target | 8% | Measured from the start balance (or Baseline) |
| At target | Show only | Show only, or Stop trading once the target is reached, as a prop challenge needs |
Deposits and withdrawals are not counted as profit or loss. The guard keeps its state in the terminal, so a restart does not reset the drawdown reference. Match the limits to your prop firm's rules, and set them a little tighter than the firm's.
7. The three set files and backtest results
Standard is the everyday choice. Pick Prop-firm for a challenge or funded account, and Risky only with money you can afford to lose.
| Prop-firm | Standard | Risky | |
|---|---|---|---|
| Risk per trade | 0.5% | 1% | 2% |
| Risk caps (total / symbol) | 3% / 2.5% | off | off |
| Prop guard (daily / max loss) | 4% / 8%, Static | 6% / 25% | off |
| Profit target | 10%, Stop trading | off | off |
| Net profit | +3,916 USD | +11,742 USD | +35,900 USD |
| Profit factor | 1.20 | 1.23 | 1.24 |
| Max equity drawdown | 7.3% | 15.5% | 29.4% |
| Trades | 1,995 | 1,995 | 1,995 |
Backtest: Vantage XAUUSD M15, 1:100, every tick based on real ticks, September 2018 – November 2026, 10,000 USD start.
- Prop-firm is shown without its profit target. With the target on, the test reaches +10% in March 2021 and stops trading, as intended.
- The edge is modest (profit factor about 1.2) and uneven: some years lose money (2019, 2022 and 2023 in the Standard test). Judge the EA over many months.
- Risk compounds with the balance, so the later years of a test trade larger lots and make more of the profit.
- Backtests are not a forecast. Live results differ with broker, spread, swap, execution and account size.
Testing in the Strategy Tester (free demo)
The free demo on the MQL5 Market runs only in the Strategy Tester. Use these settings to reproduce the results above.
- Expert: TriGold Orient. Symbol: your broker's gold (XAUUSD, GOLD ...). Period: M15.
- Modelling: Every tick based on real ticks. Faster modes give somewhat different numbers.
- Deposit: 10,000 USD, leverage 1:100.
- Inputs: right-click the inputs table, choose Load and pick one of the three set files. Without a set file the EA uses its defaults: 0.30% risk per trade and a prop guard of 5% daily and 10% maximum loss.
- Dates: a full 2018–2026 real-tick test takes a while. The last 12 months is a quick first check.
- History: the volatility regime needs 120 daily bars. With less history the EA trades at half risk until they exist.
Test on gold: in the tester the EA trades the chart symbol, and the rules were developed on gold only. The economic-calendar news filter does not work in the tester. Results depend on your broker's price history and spread, so they will differ somewhat from the figures above.
8. Input parameters
The Inputs tab holds only what must be known at start; everything else is set on the dashboard.
| Input | Default | Meaning |
|---|---|---|
| Orient: gold dawn-range breakout | true | The strategy on or off |
| Profile at first start and in the tester | Forward | Forward, Validated or All days (Section 4) |
| Symbol to trade | blank | Blank = find the gold symbol automatically. Enter a name only if auto-detection fails |
| Allow non-gold symbols | false | Lets the EA trade a symbol that is not gold. The rules are tested on gold only |
| Magic base | 168372 | Trades use 1683721000. Change it only if another EA on the account already uses 168372xxxx |
| Telegram alerts | false | Send alerts to Telegram |
| Telegram bot token / chat id | blank | Your bot's token and chat id (Section 9) |
| Dashboard left / top offset | 10 / 26 px | Where the panel sits on the chart |
| Advanced: dashboard values (2 inputs) | blank | Filled by the set files; leave empty when you set things by hand |
When live, values saved from the dashboard win over the defaults. A set file's values are applied when you load it, and again whenever its text changes.
Engine tab parameters
| Parameter | Default | Meaning |
|---|---|---|
| Risk per trade | 0.30% | Percent of balance risked per trade |
| Regime mode | Half on quiet | Off / Skip quiet / Half on quiet |
| Vol regime threshold | 0.95 | Below this, the day is quiet |
| Stop, % of entry | 1.0% | Stop-loss distance |
| Break-even | Off | Moves the stop to entry + lock once the trigger is reached |
| Break-even trigger / lock | 2.0R / 0.10R | When break-even happens and how much profit it locks |
| Trail start / distance | 2.0R / 1.0R | Trailing stop (0 = off) |
| Take profit | off | Fixed target in R (0 = off) |
| Range start / end (NY) | 20:05 / 23:05 | The range window |
| Flat time (NY) | 11:55 | Everything closes |
| Obey news filter | No | Whether the news filter can block the day's orders |
| Small-acct block / Min-lot risk limit | On / 2.0% | Refuse a trade when 0.01 lot would risk more than the limit |
9. News filter, Telegram alerts and logs
News filter (News tab)
The filter reads the MetaTrader 5 economic calendar and blocks new orders around important events for the traded symbol's currencies (USD for gold).
| Setting | Default | Choices |
|---|---|---|
| News filter | High impact | Off / High impact / Medium + high |
| Block before news | 15 min | 0–240 min |
| Block after news | 15 min | 0–240 min |
Orient does not obey the filter by default (Obey news filter = No on the Engine tab), because the backtests ran without it. The filter only blocks new orders; open trades keep their stops. The calendar is not available in the Strategy Tester.
Telegram alerts
- In Telegram, open @BotFather, send /newbot and copy the bot token.
- Send any message to your new bot, then get your chat id (for example from @userinfobot).
- In MT5: Tools > Options > Expert Advisors > tick Allow WebRequest and add https://api.telegram.org.
- In TriGold Orient's inputs set Telegram alerts = true and enter the token and chat id. Alternatively, put two lines TELEGRAM_TOKEN=... and TELEGRAM_CHAT_ID=... in TriGoldOrient.keys in the terminal's Common\Files folder, so the token never sits in a set file. (An existing TriGoldPro.keys is read too.)
- Press Telegram test on the Portfolio tab.
Alerts cover orders, fills, exits with profit or loss, guard events and errors. Each alert names the symbol and broker.
Logs and files
- Log tab on the dashboard: the latest messages, such as orders, fills, exits and why a day was skipped.
- Experts tab in MT5's Toolbox: the full log.
- MQL5\Files\TriGoldOrient\settings_<account>_<magic>.ini: the dashboard values you saved.
- Common\Files\TriGoldOrient_TRADES_<symbol>_....csv: one line per trade with its planned and actual risk.
10. Troubleshooting and FAQ
| What you see | Why | What to do |
|---|---|---|
| Header says Algo off | Algo Trading is off in the terminal or in the EA's Common tab | Press Algo Trading in the toolbar; tick Allow Algo Trading in the EA's settings |
| Header says Halted | The prop guard hit a loss limit or the profit target | See the Guard tab. A daily limit releases the next server day; a max-drawdown or target stop stays until you reset it there |
| Header says Paused | Pause was pressed | Press Resume on the Portfolio tab |
| Idle, "gold only" note | The symbol found is not gold | Leave the symbol input blank, or enter your broker's gold symbol name |
| No trades at all, Log mentions the minimum lot | 0.01 lot would risk more than 2% of the balance | Use a larger balance or a cent account, or switch Small-acct block Off / raise the Min-lot risk limit on the Engine tab (higher risk per trade; Section 2) |
| No trade today | Quiet day with Skip quiet, the range window was interrupted, the news filter (if obeyed), or neither stop was reached before 11:55 | Read the Log tab; it says why |
| No Telegram messages | WebRequest not allowed, or wrong token or chat id | Check Tools > Options > Expert Advisors, then press Telegram test |
Can I run TriGold Orient next to other EAs? Yes. It only manages trades with its own magic number (168372xxxx). The risk caps count TriGold Orient's own positions, but the prop guard measures the whole account's equity, so other EAs' losses count toward its limits.
Can I trade other symbols? Only with Allow non-gold symbols switched on. The rules were developed and tested on gold only, and the same rules did not hold up on silver, oil, FX majors or stock indices.
Which timeframe should the chart be? M15. The EA reads M1, M15 and D1 data whatever the chart shows, but the backtests and the dashboard assume M15.
Does it use martingale, grid or averaging? No. One trade a day at most, with a stop loss sized from the risk setting.
Can I change settings while a trade is open? Yes. Changes apply to the next orders; an open trade keeps its stop.
What happens after a restart? Saved dashboard values, the guard state and open trades are picked up again. Avoid restarting during the range window (20:05–23:05 New York).
What is the difference from TriGold Pro? TriGold Pro runs Orient together with two more gold engines (Zenith swing breakout and Nadir H4 confluence) under one risk manager. TriGold Orient is the Orient engine alone.
11. Risk warning
Trading gold and other leveraged CFDs carries a high level of risk and can lose money quickly. Depending on your broker, losses can exceed your deposit. All results in this manual are backtests on historical data. Backtests and past performance do not guarantee future results, and no profit or return is promised.
Results on your account will differ with broker, spread, swap, execution and account size. Trade only money you can afford to lose, and run TriGold Orient on a demo account first. TriGold Orient is a trading tool, not investment advice.


