Hermes Rule Based Trade Template v1.10 - User Manual

4 December 2026, 01:47
Juan Francisco Fraguela
0
5

This manual describes Hermes Rule Based Trade Template for MetaTrader 5, version 1.10, product number 212790 in the MetaQuotes Market. It explains what the Expert Advisor does, how to install it, how each input works and how to read the chart panel and the Experts log.

The Expert Advisor executes the rules you configure. Past results in the Strategy Tester do not guarantee future results, and this product does not promise any profit.

1. What it does, and what it does not do

Hermes Rule Based Trade Template is a rule-based Expert Advisor. You choose one of four well-known entry signals, optionally add a trend filter and a higher timeframe filter, and wrap the entry in a complete set of risk and execution controls.

It is meant for traders who want transparent behavior that they can test and adjust in the Strategy Tester before using it on any account.

What it does:

  • Trades one of four entry signals: moving average cross, Relative Strength Index (RSI) levels, previous candle, or session range breakout.
  • Optionally filters entries with a long moving average on the signal timeframe, and with a moving average on a higher timeframe.
  • Places a stop loss and a take profit in fixed points, or as multiples of the Average True Range (ATR).
  • Manages open positions with break-even and a trailing stop, in the same stop mode.
  • Sizes the position as a fixed lot or as a percentage of the account balance risked at the stop loss.
  • Limits new entries with a maximum number of open positions, a daily loss limit, a daily profit limit, a maximum spread filter and an optional trading-hours window.
  • Works on netting and hedging accounts.
  • Writes every decision, including the signals it rejects and the reason, to the Experts log, and can show the current settings and the last decision on the chart.

What it does not do:

  • It does not use martingale, grid or averaging.
  • It opens at most one entry per bar of the signal timeframe.
  • It never touches positions from other Expert Advisors or from manual trades. It only manages positions that use its own magic number on the current symbol.
  • It does not call external DLL files and it does not make web requests.
  • It does not promise or imply any profitability. It is a template of clearly documented rules, not a ready-made money-making system.

2. Quick installation in MetaTrader 5

  1. Buy or rent the product from its Market page, or download the demo version from that same page. The demo runs in the Strategy Tester only.
  2. In MetaTrader 5, open the Navigator (Ctrl+N) and find the Expert Advisor under Market, or under Experts if you already installed it.
  3. Before you attach it to a live chart, test it in the Strategy Tester (Ctrl+R). Select Hermes Rule Based Trade Template, a symbol and a timeframe, for example EURUSD on the one-hour timeframe, and the model "Every tick based on real ticks". Start with the default inputs, then change one group of settings at a time.
  4. When you attach it to a chart, keep "Allow Algo Trading" enabled in the Expert Advisor properties, and make sure the AutoTrading button on the toolbar is also enabled.
  5. Confirm that the Experts tab of the Toolbox shows an INIT line with version 1.10, the symbol, the signal timeframe, the stop mode and the account type (netting or hedging).
  6. Test first on a demo account. Only then consider a live account.

If the Expert Advisor does not start, read section 9 (Frequently asked questions).


3. Entry signals (choose one)

The input InpSignalMode selects one of the four signals. Only the selected signal is evaluated. All signals use closed bars only (shift 1 or greater), so a signal does not change after the bar is closed.

The input InpSignalTF sets the timeframe used for that signal. PERIOD_CURRENT means the timeframe of the chart. InpDirection can allow both buy and sell, buy only, or sell only.

3.1 Moving average cross (SIGNAL_MA_CROSS, default)

A buy is taken when the fast moving average crosses above the slow moving average on a closed bar. A sell is taken when the fast moving average crosses below the slow moving average.

You can set the fast period (InpFastMAPeriod, default 9), the slow period (InpSlowMAPeriod, default 21), the method (InpMAMethod, default exponential) and the applied price (InpMAPrice, default close). The fast period must be greater than zero and smaller than the slow period.

3.2 Relative Strength Index levels (SIGNAL_RSI_LEVELS)

A buy is taken when the RSI leaves the oversold level from below (it was at or below the level on the previous closed bar, and is above it on the last closed bar). A sell is taken when the RSI leaves the overbought level from above.

Defaults: period 14, oversold 30, overbought 70. The settings must satisfy 0 < oversold < overbought < 100, and the period must be greater than 1.

3.3 Previous candle (SIGNAL_PREV_CANDLE)

The Expert Advisor trades in the direction of the last closed candle: buy if that candle closed above its open, sell if it closed below its open.

Doji candles (a body smaller than half a point) are always skipped. You can also require a minimum body in points with InpMinBodyPoints (0 means any non-doji candle).

3.4 Session range breakout (SIGNAL_RANGE_BREAKOUT)

The Expert Advisor builds the high and the low of a time window in server time, draws that range on the chart when visual mode is on, and trades a close beyond it, with an optional buffer in points.

The range must start and end on the same server day (the end must be after the start). The default window is 00:00 to 08:00. Entries are evaluated only after the last closed bar is later than the end of the range.

If InpOneBreakoutPerSide is true (the default), the Expert Advisor takes at most one breakout entry per side per server day.


4. Optional filters

Both filters are optional and off by default. They can be used with any of the four entry signals. A signal that fails a filter is rejected for that bar, with the reason written to the log.

4.1 Trend filter

When InpUseTrendFilter is enabled, the Expert Advisor trades only in the direction of a long moving average on the signal timeframe.

It compares the close of the last closed bar with that moving average (also taken from the last closed bar, shift 1). A buy is allowed only when the close is above the moving average. A sell is allowed only when the close is below it.

Defaults when enabled: period 200, method exponential, applied to the close.

4.2 Higher timeframe filter (MTF)

When InpUseMTFFilter is enabled, the Expert Advisor also requires that the last closed bar of a higher timeframe agrees with the trade direction, compared with a moving average of that same higher timeframe.

It always uses shift 1 of the higher timeframe: the close of the last closed higher-timeframe bar versus the moving average of that same closed bar. The result does not change after that higher-timeframe bar is closed, so the filter does not repaint.

Rules and defaults:

  • InpMTFTimeframe default is the four-hour timeframe (PERIOD_H4).
  • The higher timeframe must not be below the signal timeframe. PERIOD_CURRENT is not accepted here: you must choose an explicit timeframe.
  • If the higher timeframe is below the signal timeframe, or the moving average period is not greater than zero, the Expert Advisor does not start. The Experts log shows: "Invalid inputs: higher timeframe filter: period must be > 0 and the timeframe must not be below the signal timeframe".
  • If the higher timeframe data is not ready yet, the entry is postponed and retried on the next tick of the same bar. The log shows "higher timeframe data not ready".
  • Defaults: period 50, method exponential, applied to the close.

The trend filter and the higher timeframe filter are independent. You can use one, both, or neither.


5. Stop mode: fixed points or Average True Range

A single input, InpStopMode, controls the stop loss, the take profit, the break-even and the trailing stop together. The default is STOP_MODE_POINTS (fixed points), which keeps the same behavior as version 1.00.

In both modes, distances that fall inside the broker stops level are automatically widened. The stop loss also adds the current spread to that minimum. Prices are normalized to the tick size. A position is not modified when the current price is inside the broker freeze level of the stop loss or the take profit.

5.1 Fixed points (STOP_MODE_POINTS)

The inputs in the groups "Stop loss / take profit (points mode)", "Break-even (points mode)" and "Trailing stop (points mode)" are used.

Defaults:

  • Stop loss 300 points, take profit 600 points. Zero means that stop is not placed. Risk-percent sizing requires a stop loss.
  • Break-even is on: it triggers after 200 points of profit and locks 20 points beyond the entry price. The lock must be smaller than the trigger.
  • Trailing stop is on: it starts after 300 points of profit, trails by 200 points, and only moves the stop loss when the improvement is at least 50 points.

Symbols with very different point sizes, such as gold, indices or cryptocurrencies, need larger point values than currency pairs. If you do not want to adjust those numbers by symbol, use the Average True Range mode.

5.2 Average True Range mode (STOP_MODE_ATR)

The stop loss, take profit, break-even and trailing stop are multiples of the Average True Range of the last closed bar (shift 1) on the ATR timeframe.

The ATR period (InpATRPeriod, default 14) and the ATR timeframe (InpATRTimeframe, default PERIOD_CURRENT, which means the signal timeframe) are configurable.

Default multipliers:

  • Stop loss = ATR × 1.5 (InpATRSLMult). Zero means no stop loss, and is not allowed with risk-percent sizing.
  • Take profit = ATR × 3.0 (InpATRTPMult). Zero means no take profit.
  • Break-even trigger = ATR × 1.0, lock = ATR × 0.1. The lock must be smaller than the trigger.
  • Trailing start = ATR × 1.5, distance = ATR × 1.0, step = ATR × 0.25.

In Average True Range mode the break-even is applied only once, until the stop loss has reached the entry price (plus or minus the lock). After that, only the trailing stop continues to move the stop loss. This avoids repeated break-even modifications when the Average True Range itself changes from bar to bar.

If the Average True Range is not ready yet, the entry is postponed and retried on the next tick of the same bar. The log shows "ATR not ready". Successful entries log a line such as:

ATR(14,PERIOD_H1) = 0.00179 (179 pts): SL x1.50, TP x3.00

That example, taken from a test on EURUSD, placed a stop loss about 269 points away from the entry (1.5 × 179).

5.3 Practical examples

These are illustrations of how the default Average True Range multipliers behave on different symbols, not recommended settings and not a promise of results.

  • Forex, EURUSD, one-hour timeframe, ATR(14) around 179 points: stop loss ≈ 269 points, take profit ≈ 537 points, break-even trigger ≈ 179 points, trailing start ≈ 269 points and trailing distance ≈ 179 points.
  • Gold, XAUUSD, one-hour timeframe: the Average True Range is much larger in points (in one test, around 11,576 points, or about 11.58 in price). The same 1.5 / 3.0 multipliers follow that volatility automatically, so you do not have to guess a point value for gold.
  • Bitcoin, BTCUSD, four-hour timeframe: the same idea applies. Use the Average True Range mode, or, if you stay in fixed points, use a much larger point value than you would use on a currency pair.

You can also compute the Average True Range on a different timeframe than the signal, for example M15 signals with the Average True Range of the one-hour timeframe, by setting InpATRTimeframe to that higher timeframe.


6. Risk, limits and trading hours

6.1 Position size

InpLotMode is LOT_FIXED by default, with InpFixedLot = 0.01. If the fixed lot is below the broker minimum volume, the Expert Advisor uses the minimum and writes a SIZING line to the log.

LOT_RISK_PERCENT risks InpRiskPercent of the account balance at the stop loss distance (default 1.0). It requires a stop loss (in points, or a positive Average True Range stop loss multiplier). The volume is then normalized to the broker minimum, maximum and step, and is rejected if free margin is not enough or if the margin cannot be calculated.

6.2 Maximum positions and isolation

InpMaxPositions (default 1) limits how many open positions this magic number may have on the current symbol. On a netting account the limit is always 1, because the account itself allows only one position per symbol.

The Expert Advisor never modifies or closes a position that has a different magic number or a different symbol, including manual trades.

If, on a netting account, the symbol already has a position from another Expert Advisor or from a manual trade, a new entry is rejected.

6.3 Daily loss limit and daily profit limit

Both limits use the same format and the same profit basis: realized profit or loss today for this magic number and symbol (including swap, commission and fees), plus the floating profit or loss of the open positions of this Expert Advisor.

Each limit can be off (the default), a value in account currency, or a percentage of the balance at the start of the server day.

When a limit is reached:

  • No new entries are taken until the next server day.
  • The Experts log writes one line for that day, for example: "Daily profit 0.51 reached limit 0.50: no new entries until next server day" with the tag DAILY-PROFIT, or a similar DAILY-LIMIT line for the loss limit.
  • Later signals on that day are rejected with "daily profit limit reached" or "daily loss limit reached".
  • If the corresponding Close All input is true (the default), the open positions of this Expert Advisor are closed. You can set it to false if you want to keep the open positions and only block new entries.
  • The chart panel shows "DAILY LOSS LIMIT HIT - entries paused" or "DAILY PROFIT LIMIT HIT - entries paused".

Both limits reset at the first tick of a new server day.

6.4 Spread filter and trading hours

InpMaxSpreadPoints = 0 means the spread filter is off. If you set a value, an entry is postponed while the spread is above that number of points, and retried later in the same bar if the spread comes back.

Trading hours (InpUseTradingHours, off by default) restrict new entries to a window in server time. The end hour may be lower than the start hour, which means an overnight window. If InpCloseOutsideHours is true, positions of this Expert Advisor are closed when the time leaves the window.

The Expert Advisor also skips entries when the symbol trade session is closed, when algo trading is disabled, or when the symbol trade mode does not allow that direction.

InpCloseOnOpposite (off by default) closes this Expert Advisor's open positions when an opposite signal appears, even if the new entry is later rejected by a filter.


7. The chart panel and the Experts log

7.1 Chart panel

When InpShowPanel is true (the default), the Expert Advisor writes a comment on the chart with the product name, the active signal, the trend filter, the higher timeframe filter, the stop mode, break-even, trailing, lot mode, daily limits, trading hours, the account type, the number of open positions, the profit or loss today, and the last decision.

In the Strategy Tester the panel is shown only in visual mode, so that fast tests stay inexpensive.

If the session range breakout is selected, a rectangle is also drawn for today's range (again, only in visual mode or on a live chart).

7.2 Experts log

Every line starts with [HermesTemplate] and a tag. Keep InpVerboseLog = true while you test, so that accepted and rejected decisions are both written.

Common tags:

  • INIT — startup line with version 1.10, symbol, signal, stop mode, higher timeframe filter, daily profit limit mode, account type, stops level, freeze level and volume limits. An invalid combination of inputs is also reported here, and the Expert Advisor does not start.
  • SIGNAL — a raw signal was found on a new bar.
  • ENTRY — a position was opened, with lot, price, stop loss, take profit, deal number and spread.
  • REJECT — a signal was not taken, with the reason, for example "MTF filter: PERIOD_H4 close … <= MA …", "daily profit limit reached", "max positions reached", "spread above max", "not enough free margin", or "outside trading hours". Transient reasons, such as a wide spread or missing data, are marked "(will retry this bar)".
  • ATR — the Average True Range value used to build the stops, in price and in points, with the multipliers.
  • MTF — the higher timeframe close versus its moving average, when the filter allows the trade.
  • MODIFY and MODIFY-SKIP / MODIFY-FAIL — break-even or trailing changes, or why a change was skipped (stops level, freeze level).
  • DAILY-LIMIT and DAILY-PROFIT — a daily limit was reached.
  • CLOSE and CLOSE-SKIP / CLOSE-FAIL — a position was closed, or the close was postponed because of the freeze level.
  • SIZING, STOPS, DATA, DAY, DEINIT — lot calculation, stop widening, missing indicator data, a new server day, and shutdown.

In the Strategy Tester, these lines appear in the Journal tab of the tester (and in the agent log). On a chart, they appear in the Experts tab of the Toolbox.


8. Complete input reference (version 1.10)

Values are the compiled defaults of version 1.10.

Entry signal

Input Default Description
InpSignalMode SIGNAL_MA_CROSS Entry signal: moving average cross, RSI levels, previous candle, or session range breakout.
InpSignalTF PERIOD_CURRENT Timeframe of the signal. Current means the chart timeframe.
InpDirection DIR_BOTH Allowed direction: buy and sell, buy only, or sell only.

Moving average cross

Input Default Description
InpFastMAPeriod 9 Fast moving average period. Must be greater than 0 and smaller than the slow period.
InpSlowMAPeriod 21 Slow moving average period.
InpMAMethod MODE_EMA Moving average method.
InpMAPrice PRICE_CLOSE Applied price of both moving averages.

RSI levels

Input Default Description
InpRSIPeriod 14 Relative Strength Index period. Must be greater than 1.
InpRSIOversold 30.0 Buy when the RSI crosses up through this level.
InpRSIOverbought 70.0 Sell when the RSI crosses down through this level.

Previous candle

Input Default Description
InpMinBodyPoints 0 Minimum candle body in points. 0 means any non-doji candle. Doji candles are always skipped.

Session range breakout (server time)

Input Default Description
InpRangeStartHour 0 Range start hour.
InpRangeStartMinute 0 Range start minute.
InpRangeEndHour 8 Range end hour. The range must end the same day, after it starts.
InpRangeEndMinute 0 Range end minute.
InpBreakoutBufferPts 0 The close must exceed the range high or low by this many points.
InpOneBreakoutPerSide true At most one breakout entry per side per server day.

Trend filter (optional, all modes)

Input Default Description
InpUseTrendFilter false Trade only in the direction of the trend moving average on the signal timeframe.
InpTrendMAPeriod 200 Trend moving average period. Must be greater than 0 when the filter is on.
InpTrendMAMethod MODE_EMA Trend moving average method.

Higher timeframe filter (optional, all modes)

Input Default Description
InpUseMTFFilter false Trade only in the direction of a higher timeframe moving average. Uses the last closed bar (shift 1).
InpMTFTimeframe PERIOD_H4 Higher timeframe. Must not be below the signal timeframe. PERIOD_CURRENT is not accepted.
InpMTFMAPeriod 50 Higher timeframe moving average period. Must be greater than 0 when the filter is on.
InpMTFMAMethod MODE_EMA Higher timeframe moving average method.

Stop mode (points or Average True Range)

Input Default Description
InpStopMode STOP_MODE_POINTS Stop mode for stop loss, take profit, break-even and trailing: fixed points, or Average True Range multiplier.
InpATRPeriod 14 Average True Range period (used only in Average True Range mode). Must be between 1 and 1000.
InpATRTimeframe PERIOD_CURRENT Average True Range timeframe. Current means the signal timeframe.
InpATRSLMult 1.5 Average True Range mode: stop loss = ATR × this. 0 means none, and is not allowed with risk-percent sizing.
InpATRTPMult 3.0 Average True Range mode: take profit = ATR × this. 0 means none.
InpATRBETriggerMult 1.0 Average True Range mode: break-even trigger = ATR × this.
InpATRBELockMult 0.1 Average True Range mode: distance locked beyond the entry = ATR × this. Must be smaller than the trigger.
InpATRTrailStartMult 1.5 Average True Range mode: trailing starts at profit = ATR × this.
InpATRTrailDistMult 1.0 Average True Range mode: trailing distance = ATR × this.
InpATRTrailStepMult 0.25 Average True Range mode: minimum stop loss improvement = ATR × this.

Stop loss / take profit (points mode)

Input Default Description
InpStopLossPoints 300 Stop loss in points. 0 means none, and is not allowed with risk-percent sizing.
InpTakeProfitPoints 600 Take profit in points. 0 means none.
InpCloseOnOpposite false Close this Expert Advisor's open positions on an opposite signal.

Break-even (points mode)

Input Default Description
InpUseBreakEven true Use break-even.
InpBETriggerPoints 200 Profit in points that triggers break-even. Must be greater than 0 when break-even is on.
InpBELockPoints 20 Points locked beyond the entry price. Must be smaller than the trigger.

Trailing stop (points mode)

Input Default Description
InpUseTrailing true Use trailing stop.
InpTrailStartPoints 300 Profit in points before trailing starts.
InpTrailDistancePts 200 Trailing distance in points. Must be greater than 0 when trailing is on.
InpTrailStepPoints 50 Minimum stop loss improvement in points per modification.

Position sizing

Input Default Description
InpLotMode LOT_FIXED Lot mode: fixed lot, or a percentage of the balance risked at the stop loss.
InpFixedLot 0.01 Fixed lot. If it is below the broker minimum, the minimum is used.
InpRiskPercent 1.0 Risk percent of the balance per trade. Used only in risk-percent mode. Must be in (0, 100].

Limits and filters

Input Default Description
InpMaxPositions 1 Maximum open positions for this magic number and symbol. On netting accounts the effective limit is 1.
InpMaxSpreadPoints 0 Maximum spread in points. 0 means the filter is off.
InpDailyLossMode DAILY_LOSS_OFF Daily loss limit: off, account currency, or a percentage of the balance at day start.
InpDailyLossValue 3.0 Daily loss limit (money or percent). Must be greater than 0 when the limit is on.
InpDailyLossCloseAll true Close this Expert Advisor's positions when the daily loss limit is hit.
InpDailyProfitMode DAILY_PROFIT_OFF Daily profit limit: off, account currency, or a percentage of the balance at day start.
InpDailyProfitValue 3.0 Daily profit limit (money or percent). Must be greater than 0 when the limit is on.
InpDailyProfitCloseAll true Close this Expert Advisor's positions when the daily profit limit is hit.

Trading hours (server time)

Input Default Description
InpUseTradingHours false Restrict new entries to a time window.
InpStartHour 8 Start hour.
InpStartMinute 0 Start minute.
InpEndHour 20 End hour. May be lower than the start hour: that is an overnight window.
InpEndMinute 0 End minute.
InpCloseOutsideHours false Close this Expert Advisor's positions outside the window.

General

Input Default Description
InpMagic 20261130 Magic number. Change it if you run more than one copy on the same symbol.
InpOrderComment HermesTemplate Order comment.
InpSlippagePoints 20 Maximum slippage in points.
InpVerboseLog true Log every decision. Recommended in the Strategy Tester.
InpShowPanel true Show the inputs and the status on the chart (Comment).

9. Frequently asked questions

The Expert Advisor does not start, or it is removed from the chart immediately. Open the Experts tab and read the INIT line. Typical causes: invalid moving average periods (the fast period must be smaller than the slow period), invalid RSI levels, a range window that does not end after it starts on the same day, a daily limit value of zero while the limit is on, risk-percent sizing without a stop loss, or a higher timeframe filter whose timeframe is below the signal timeframe. Correct the input and attach the Expert Advisor again.

The higher timeframe filter will not enable: I used a lower timeframe than the signal, or PERIOD_CURRENT. That combination is rejected on purpose, so that the filter cannot look at a timeframe below the signal. Choose an explicit timeframe that is equal to or above the signal timeframe. Example: signal on the one-hour timeframe, higher timeframe filter on the four-hour timeframe.

There is a signal on the chart, but no trade is opened. This is normal whenever a filter rejects the signal. Read the REJECT line in the Experts tab (or the Journal tab in the tester). Common reasons: the trend filter or the higher timeframe filter did not agree, the daily loss or daily profit limit was already reached, the maximum number of positions is already open, the spread is above the maximum, the time is outside the trading hours or the symbol session, free margin is not enough, or an entry was already taken on this bar. If the reason is marked "will retry this bar", the Expert Advisor will try again later in the same bar.

I enabled the Average True Range mode and nothing happens at the first bars of a test. The Average True Range needs enough closed bars to be calculated. Until the value is ready, entries are postponed with "ATR not ready" and retried. The same can happen with the higher timeframe moving average at the very beginning of a test ("higher timeframe data not ready").

Stops are wider than the values I typed. The Expert Advisor widens the stop loss and the take profit to the broker stops level when needed, and the stop loss also adds the current spread. A STOPS line in the log records that change. This avoids "invalid stops" rejections on symbols with a large spread, such as some metals and cryptocurrencies.

A break-even or trailing modification did not happen. Look for MODIFY-SKIP. The new stop loss may be inside the broker stops level, or the current price may be inside the freeze level. The modification is postponed; it is not forced.

Gold, indices or cryptocurrencies almost never reach my take profit, or they are stopped out immediately, when I use fixed points. A point on those symbols is not the same size as a point on EURUSD. Either raise the point values, or switch InpStopMode to STOP_MODE_ATR so that the distances follow the volatility of the symbol.

The daily profit limit closed my trade as soon as it went slightly positive. That is what the limit is designed to do when InpDailyProfitCloseAll is true and the threshold is very small. Raise InpDailyProfitValue, or set InpDailyProfitCloseAll to false if you only want to block new entries and leave the open position running.

I already have a manual position on this symbol, on a netting account. The Expert Advisor will not touch that position, and it will not open a new one on the same symbol. Close or move the manual trade first, or use a hedging account if your broker offers one.

How do I run two copies on the same symbol? Give each copy a different InpMagic. Each copy then counts, closes and reports only its own positions.

Where is support? Use the comments section of the product page, or the private messages of the MQL5 site. Product support is provided there, not through external messengers.

Does this product guarantee a profit? No. The Expert Advisor only executes the rules you configure. Test it in the Strategy Tester and on a demo account, and use risk limits that you accept.


10. Version 1.10 in short

Version 1.10 keeps the version 1.00 defaults (fixed points, filters off, daily profit limit off), so a set file from version 1.00 can be used as a starting point. What is new:

  • Stop loss, take profit, break-even and trailing stop can use multiples of the Average True Range, with a configurable period and timeframe.
  • An optional higher timeframe moving average filter, always based on the last closed bar of that timeframe.
  • A daily profit limit, next to the existing daily loss limit, with optional closing of this Expert Advisor's positions.

For a custom version with your own rules, or a port of the same logic to MetaTrader 4, contact us through the MQL5 private messages.