HTrend: installing and setting up in MetaTrader 5

HTrend: installing and setting up in MetaTrader 5

26 November 2026, 20:17
David John Thompson
0
18

This guide covers installing HTrend in MetaTrader 5, adding it to a chart and making the first settings. HTrend is an indicator. It does not open, change or close trades.

Before you start

  • MetaTrader 5 on a computer, with your MQL5 account entered under Tools, Options, Community.
  • An XAUUSD one minute (M1) chart. The default settings are for this market and timeframe.

Install and add to a chart

  1. In MetaTrader 5, open the Market section and search for HTrend.
  2. Download it. It then appears in the Navigator window under Indicators, in the Market folder.
  3. Open an XAUUSD chart and select M1.
  4. Drag HTrend from the Navigator onto the chart.
  5. Check the inputs and press OK. The panel appears on the chart.

First checks

  • The panel has five rows (M1, M5, M15, H1 and H4) and three columns (OMA, ORSI and VWAP).
  • If a cell shows n/a, there is not yet enough price history for that timeframe. While an enabled cell shows n/a, no zone is given. Open that timeframe on a chart to let the history load.
  • VWAP shows FLAT when its slope is smaller than the level set in input [13].

Settings to look at first

  • [24] Cells that must agree (default 8): the number of enabled cells needed for BUY ZONE or SELL ZONE. That side must also outnumber the other. If fewer cells are enabled than this number, all enabled cells must agree.
  • [26] Pop-up alert and [27] Sound alert (both on by default).
  • [28] Push notification (off by default): to use it, enter your MetaQuotes ID under Tools, Options, Notifications, then set this input to true.
  • [30] Chart name (blank by default): a name of your choice, shown on the panel and in messages.
  • [33] Quiet bars (default 30): the number of M1 bars without a zone before the next zone is marked FIRST.
  • [34] FIRST zones only (on by default): alerts and flashing apply to first zones. Later zones show as REPEAT.

Using the panel

  • Drag the header to move the panel.
  • Click a cell to include or exclude it. Click a timeframe name to switch the whole row.
  • Click the VWAP heading to count all slopes (VWAP ALL) or only strong slopes (VWAP STRONG).
  • ZONE turns zone alerts on or off.
  • WAIT turns on an alert for when a zone ends. It is off by default.
  • ARROWS shows or hides the zone arrows.
  • FIRST chooses between alerts for first zones only and alerts for all zones.

Panel position and button choices are saved for each chart. To reset the panel position, set input [22] to true. To enable all cells again, set input [23] to true. Set the input back to false afterwards.

Record file

By default HTrend writes a record of its readings to HTrend_log.csv in the MetaTrader Common Files folder. Turn this off with input [31]. If you use HTrend on more than one chart, give each chart its own file name in input [32].

Please note

With the default settings, the M1 reading uses the last closed bar, while the M5 to H4 readings use the bar still forming. A zone can therefore change or end before those bars close. A zone describes agreement between readings. It is not an instruction to buy or sell.

If something in this guide is unclear, please ask in the comments.