Lyra Gold Trend

Lyra Gold Trend is a trend expert for XAUUSD on M15. It mostly buys. Every trade has a stop loss. It uses no grid, martingale or averaging.

What it does

Lyra scores the trend direction on D1, H4, H1 and M15 and opens a trade at a score of 7 or more. ADX and spread filters must also pass. Trading hours are 07:00 to 20:00 server time, with hours 16 and 18 skipped.

Two entry filters skip trades: an entry where D1, H4 and H1 agree but M15 does not, and a new buy after gold has risen more than 8% in 20 days.

The stop is 2 times the H1 ATR and the target is 3 times the stop distance. At 1.5 R the stop moves to just past entry. Trades still open at 20:00 on Friday are closed.

It mostly buys. Sell trades need a higher score: 1.5 points more by default. Buys were 86% of trades in the 2024-26 test below and 76% in the 2019-24 test. It can sell, so it is not a buy-only expert. A long fall in gold is a poor market for it.

Win-rate counting. Lyra counts wins and losses by hour, weekday and pattern in a local file, and these counts add to the score, subtract from it, or skip an hour, day or pattern. Nothing is trained. A new user starts with no history. Some input names contain "AI"; they refer to this counting.

Lyra does not use a grid, martingale or averaging. It holds one position at a time on its chart symbol, and the lot never rises after a loss.

Before you use it

Check your broker's server time. All hours are broker server time. On a broker in another time zone, the trading hours will fall at different times of day unless you change the inputs.

Use it on XAUUSD or your broker's gold symbol. Lyra trades only the symbol of its chart. It runs on other symbols without errors, but its defaults were developed for gold and results on other symbols were not studied.

Use one chart per symbol.

A hedging account is assumed. It has not been tested on a netting account.

Main settings

Input Default Meaning
LotMode Manual Fixed lot or percent risk
ManualLots 0.01 Lot size in manual mode
RiskPercent, MaxLot 1.0, 0.50 Risk per trade in auto mode, and the largest lot
UseDDLotGuard, DDGuardPct, DDGuardMaxLot true, 3.0, 0.01 Limits the lot while the open loss is above this percent
MagicNumber 726300 Identifies this expert's trades
ATR_SL_Multi, TP1_RR 2.0, 3.0 Stop in H1 ATR, target in multiples of the stop
BE_TriggerR 1.5 Move the stop to just past entry at this R
SkipTFC6 true Skip entries where D1, H4 and H1 agree but M15 does not
SkipBuyAfterRise, RiseSkipPct true, 8.0 No new buy after a rise of this percent in 20 days
MinMTFScore, ShortExtraScore 7.0, 1.5 Lowest score to trade, extra score for a sell
ADX_Min, MaxSpreadATR 19.0, 0.5 Lowest H1 ADX, largest spread as a share of H1 ATR
StartHour, EndHour 7, 20 Trading hours, server time
BlockH16, BlockH18 true, true Skip hours 16 and 18
CloseOnFriday, FridayCloseHour true, 20 Close trades before the weekend
UseAIHours, UseAIDow, EnableAI true, true, true Use the win-rate counts by hour, weekday and pattern
MaxConsecLoss, CoolOffHours 2, 4 Pause after losses in a row
SLCooldownMins 15 Minutes to wait after a stop
MaxDD_Pct 20.0 Open loss that stops the expert, see below
MaxDailyLoss 5.0 Daily loss that stops new trades
MinMarginPct 30.0 Lowest free margin share to open a trade

The dashboard on the chart has these parts: Account (balance, equity, open profit, today, daily loss limit, drawdown), Signal (last check, score, setup), Position (side, lot, R, entry, stop, target, break-even), Market (bid and ask, spread, ADX, trend on D1, H4, H1 and M15, trading window), Performance (trades, win rate, profit factor and net by period, maximum equity drawdown), an Equity & Balance curve and the Last 10 closed trades. Its buttons are Light or Dark, Compact or Full, Hide, font size, minimize, Pause or Resume, and Close All with a second click to confirm. Light and Dark recolour the chart; the chart gets its own colours back when Lyra is removed.

The 20% stop is not a limit on your total loss. MaxDD_Pct compares open loss with the current balance. When the open loss reaches 20% of balance, Lyra stops opening trades and shows STOPPED on the panel. It does not close open trades, and it does not measure the fall from the account's peak. Press RESUME on the panel to restart.

The fixed lot is not a fixed risk. The stop distance follows volatility, so the loss from one 0.01 lot trade changes with it. In the 2024-26 test below the largest single loss was 75.67 EUR.

Percent mode. The lot comes from the money your broker's terminal calculates would be lost at the stop. Lyra refuses any lot that would lose more than 1.5 times the set risk at the stop. It then skips the trade and writes a line to the log. At 1% risk on gold with a 0.01 minimum lot, percent mode needs a balance of about 3,000 USD; below that more trades are refused. Manual mode has no such check: check the risk of your fixed lot yourself.

Historical test results

This is a historical test in the MetaTrader 5 Strategy Tester. It is not a live result.

Tested with the strategy's development build (same trading logic).

Item Value
Symbol and timeframe XAUUSD M15
Period 2024.10.10 to 2026.10.16
Modelling 100% real ticks
Deposit and leverage 3,000 EUR, 1:100
Lot Fixed 0.01
Net profit +1,129.01 EUR
Profit factor 1.66
Maximum balance drawdown 5.34% (223.89 EUR)
Maximum equity drawdown 7.25% (310.04 EUR)
Trades 177
Profitable trades 45.76%

Backtest results are historical and do not guarantee future performance.

Results will differ with your broker's data. Please test it yourself on your broker's data.

Known limits

  • The win-rate counts are weaker than their names suggest. Hour, weekday and pattern results are all credited to the values of the first trade held in memory, not to each trade's own.
  • No break-even after a restart. If the terminal or expert restarts while a trade is open, that trade no longer gets the move to break-even. Its stop and target stay in place.
  • The 20% stop does not close trades. See above.
  • Chart symbol only. One expert trades one symbol.
  • All hours are server time.

Risks

  • Trading leveraged products can lose all of your deposit. Use only money you can afford to lose.
  • Past and tested results do not predict future results. This product makes no promise of profit.
  • An earlier period was much weaker: the same settings from 2019.01.01 to 2024.10.09 (3,000 EUR, real ticks) made 343.77 EUR with a profit factor of 1.11 over 632 trades, 35.28% of them profitable.
  • The strategy mostly buys, so it depends on gold rising or trending. The tested years include a strong rise in gold.
  • The two entry filters were added after looking at recent gold data, so the 2024-26 result may be better than what you get in a new period.
  • Losing runs happen: the 2024-26 test had up to 7 losses in a row, and the 2019-24 test up to 14.
  • Spread, slippage, swap and execution differ between brokers and from the tester.
  • News can move price through a stop, so a loss can be larger than planned.
  • The daily loss limit and the 20% stop use the whole account. Other experts or manual trades on the same account can trigger them.
  • The expert must run continuously, so the terminal needs a stable connection.
  • This product is not financial advice.

Please run it on a demo account first.

Support

Please use the product comments or MQL5 messages.

作者のその他のプロダクト
Daily Range Meter shows three things in one small panel: Today: today's high to low range. Daily ATR: the average true range of the completed days before today. Percent used: today's range as a percent of the daily ATR, as a number and a bar. The bar stops at 100%. The number keeps counting, so a day above its average shows, for example, 130% used. The values come from daily bars, so they are the same on every chart timeframe. The panel picks its colours for a dark or light chart background and
FREE
Same PC Trade Copier copies trades between MetaTrader 5 terminals running on the same computer or VPS. It is one Expert Advisor with a Role input: the source account runs it with Role = Master , and every receiving terminal runs it with Role = Slave . The copies talk through a small file in the terminals' shared Common\Files folder: no internet service, no DLL, no web requests. Setup in 5 steps Install both terminals on the same computer (or VPS) and log each in to its account. Master: in the so
Private Trade Alerts to Telegram sends the events of your own MetaTrader 5 account to your own Telegram chat, through your own Telegram bot: positions opened and closed, partial closes, SL and TP changes, pending orders, a daily summary and optional warnings. It only reports what happened on the account. It never opens, changes or closes a trade, and it gives no signals or advice. Setup in 5 steps Create your bot. In Telegram, open the official BotFather chat, send the newbot command and follow
News Blackout for MT5 reads the economic calendar that is built into MetaTrader 5 and keeps a blackout window around the news you choose. During a blackout it can delete pending orders, close positions or move their stop loss to break even, and it sets a terminal global variable that your other Expert Advisors can read to skip new trades. A panel shows the countdown to the next blackout and the next events. It never opens trades and gives no signals. It is useful when your own rules, or your acc
Myrto marks the overnight price range and places stop orders on both sides of it. It was designed for XAUUSD on M15. Every trade has a stop loss, and open trades are closed at a set hour each day. What it does Myrto measures the high and low of a daily time window, 00:00 to 07:00 server time by default. After the window ends, it places a buy stop above the range and a sell stop below it. When one order fills, the other is cancelled. The stop loss sits on the opposite side of the range and the ta
Session and previous day levels from closed bars, with one break alert and one retest alert per level. No repaint. What it does Session Retest Levels draws the high and low of the Asian, London and New York sessions and of the previous day. It tells you when a closed bar breaks a level, and when price comes back to that level and holds on the break side. It is an indicator. It does not trade, and it gives no signals or advice. No repaint A level appears only after its session has closed. Its pri
Gold Market Dashboard puts the numbers a gold trader checks every day into one panel on the chart. It is made with XAUUSD in mind and works on any symbol and any chart timeframe. It is display only. Every value comes from the chart's own price data: bars, spread and the indicators built into MetaTrader 5. It never trades and gives no buy or sell signals. What the panel shows Header: symbol, timeframe, server time, the session now open (Asian, London, New York, or the London + New York overlap) a
フィルタ:
レビューなし
レビューに返信