Trebuchet - user manual (draft for the research build 0.24)
1. What it does
Trebuchet trades gold (XAUUSD) breakouts of a price channel with seven exit legs per breakout. See the listing for the full description. Nothing here is financial advice. Trading leveraged products carries a high risk of loss. Past results, backtested or live, do not predict future results.
2. Installing
Attach the EA to any XAUUSD chart on a hedging account and enable algorithmic trading. It needs no set file. Keep the terminal running (VPS or always-on PC): the break-even and the protection locks run inside the EA.
3. Modes
| Mode | What changes |
|---|---|
| Default | near-miss protection on (burst lock and near-target lock), spread-aware break-even |
| Selective | as Default, and no new orders while gold's recent daily range is in the busiest 40 percent of its own past year |
| Maximum protection | as Default, and a trailing stop over the last stretch to the target |
4. Inputs that matter
| Input | Default | Meaning |
|---|---|---|
| Lot per order | 0.01 | fixed lot for every leg (balance-based sizing in preparation) |
| Maximum spread | 300 points | a new order waits while the spread is wider |
| Burst lock | 40 % within 3 min, keep 30 % | fast spikes toward the target |
| Near-target lock | at 75 %, keep 20 % | trades close to their target |
| Busy-market filter | off (on in Selective) | stand aside in busy markets |
| Trailing stop | off (on in Maximum protection) | from 90 % of the way, 15 % of the target behind the price |
5. Backtesting it yourself
Run it in the MetaTrader 5 Strategy Tester with "Every tick based on real ticks" on a gold symbol, any chart timeframe.