Lodestar
Daily range breakout for gold with a built-in recovery order.
Lodestar marks the high and low of a morning price window on XAUUSD, then trades the first break of that range - at most one main trade per day. Every main trade is paired with an opposite stop order placed at its stop-loss.
$499
One-time payment · lifetime license for 2 MT5 accounts
Verified strategy overview
How Lodestar trades
Written from the EA's own source code. This describes the rules it follows, not how it has performed.
The daily range
- Each day Lodestar records the highest high and lowest low of a time window: 07:00 to 10:00 broker time by default.
- When the window closes, those two prices become the day's levels. Trading is armed until midnight.
Entry
- Buy when the ask price reaches the range high plus a small buffer (0.16 by default).
- Sell when the bid price reaches the range low.
- One main trade per day. No new trade while an earlier trade or its recovery order is still open.
Exits
- Every main trade has a fixed stop-loss (15.00 in price) and a fixed take-profit (5.00 in price).
- No trailing stop, no break-even step and no time-based exit.
The recovery order
- When a main trade opens, Lodestar places a stop order in the opposite direction at the main trade's stop-loss price.
- Its size is the main lot multiplied by an input (15 by default). Its take-profit is 1.30 beyond its entry and it has its own stop-loss.
- If the main trade reaches its take-profit, the recovery order is cancelled.
- If the main trade is stopped out, the recovery order fills at the same price.
All distances, the time window and the multiplier are inputs you can change.
Features
What you get
Daily range breakout
Levels are rebuilt every day from a time window you choose.
One main trade per day
It trades the first break and then stands down.
Fixed stops on every order
Stop-loss and take-profit are set the moment each order is placed.
Automatic recovery order
Placed with the main trade and removed automatically when it is not needed.
Restart-safe
Reads the account history on start-up, so restarting MT5 does not cause a second trade that day.
Open inputs
Window times, distances, buffer, lot size and multiplier are adjustable.
Account-bound license
Your key works on the MT5 account numbers you activate.
Free backtesting
Runs in the MT5 Strategy Tester without a key.
Recommended conditions
Where it is meant to run
- Platform
- MetaTrader 5
- Symbol
- XAUUSD (prices quoted to 2 decimals; distances are in price units)
- Chart timeframe
- Any - levels are built from M1 data
- Account type
- Hedging account required. A netting account behaves differently.
- Default lot size
- 0.03 main trade, 0.45 recovery order (15x)
- Margin
- The account must be able to carry the recovery order, not just the main trade
- Uptime
- MetaTrader 5 must stay open. A VPS is recommended.
Risk, stated plainly
The recovery order is far larger than the main trade. With the default 0.03 lots it is 0.45 lots, and its 15.00 stop-loss is about USD 675 on a standard 100 oz contract - many times the size of a normal winning trade. Lower the multiplier or the lot size to fit your account, and test your settings in the Strategy Tester first.
Trading leveraged products carries a high risk of loss. Lodestar cannot guarantee a profit and can lose money. Past performance and backtests do not guarantee future results. Read the full risk disclaimer.
Test results
Backtests and statistics
Results from the MetaTrader 5 Strategy Tester, each with the conditions the test ran under.
Real-tick backtest, January to November 2026
- Data
- MetaQuotes-Demo server, real ticks (history quality 100%)
- Period
- 1 January to 30 November 2026
- Chart
- XAUUSD, any timeframe (test run on M15)
- Deposit and leverage
- USD 10,000, 1:500
- Settings
- Main lot 0.30 (the default is 0.03) with the default hedge multiplier of 15, so hedge orders are 4.50 lots. Every other input at its default
- Net result
- +$19,298
- Profit factor
- 1.48
- Largest drawdown
- 58.0%
- Trades
- 294
- Winning trades
- 79.3%
- Largest single loss
- $6,795
Full sizeMost trades win a small amount (average win $256) and a few lose a lot: the two sharp drops in the curve are hedge orders that lost about $6,790 each, which is roughly 26 average wins and two thirds of the starting deposit. At its worst the account was 58% below its peak. This lot size only works with high leverage: at 1:100 a USD 10,000 account cannot open the 4.50-lot hedge orders, and without its hedge the same 2026 test ended slightly negative. The demo server charges no commission, and the spread is the one recorded in its ticks. A live account with commission, wider spreads or slippage will do worse than this.
Longer test, January 2025 to November 2026
- Data
- MetaQuotes-Demo server. Real ticks from 27 May 2025 (79% of the test); for the months before that the tester builds its ticks from one-minute bars
- Period
- 1 January 2025 to 30 November 2026
- Chart
- XAUUSD, any timeframe (test run on M15)
- Deposit and leverage
- USD 10,000, 1:500
- Settings
- Main lot 0.30 (the default is 0.03) with the default hedge multiplier of 15, so hedge orders are 4.50 lots. Every other input at its default
- Net result
- +$41,242
- Profit factor
- 1.53
- Largest drawdown
- 55.5%
- Trades
- 598
- Winning trades
- 80.4%
- Largest single loss
- $6,795
Full sizeFour hedge orders lost about $6,790 each over the 23 months: in March and August 2025 and in April and June 2026. Dollar amounts follow the lot size, so at the default 0.03 main lot each one is a tenth of what is shown here. Lodestar works with small distances (the hedge take-profit is $1.30), so the months built from one-minute bars are a rougher guide than the real-tick months. This lot size only works with high leverage: at 1:100 a USD 10,000 account cannot open the 4.50-lot hedge orders, and without its hedge the same 2026 test ended slightly negative. The demo server charges no commission, and the spread is the one recorded in its ticks. A live account with commission, wider spreads or slippage will do worse than this.
Historical tests are not a prediction. Results on your broker and account will differ. Risk disclaimer.
Before you buy
What lot fits your deposit
Lot size helper
Enter the deposit you will run Lodestar on. Lodestar's large losses come from the hedge order, so the lot is sized on a day when the main trade and the hedge are both stopped out. That happened four times in the 23-month test. The helper picks the largest lot that keeps that loss at about half of the deposit.
The lot appears here once you enter a deposit.
Worked out from the January 2025 to November 2026 backtest on the Lodestar product page, scaled to the lot. The margin is an estimate at a gold price of 4,750. It is a starting point, not advice: a future loss can be larger than any in the test. Try the lot in the Strategy Tester before trading it.
Download and installation
Up and running in five steps
- 1
Download the file
After payment is confirmed, sign in and download the .ex5 file from your account.
- 2
Open the data folder
In MetaTrader 5 choose File > Open Data Folder, then open MQL5 > Experts and copy the .ex5 file there.
- 3
Refresh the Navigator
Back in MetaTrader 5, right-click Expert Advisors in the Navigator panel and choose Refresh.
- 4
Get your license key
In your account, enter the MetaTrader 5 account number you will trade on. Your key is created immediately.
- 5
Attach and activate
Drag the EA onto an XAUUSD chart, paste the key into the License key input, allow Algo Trading and press OK.