HalfTrend with Signal Stats

An independent MetaTrader 4 implementation of the classic HalfTrend method, as popularised on TradingView by everget. It was written from the method description. Credit for the method goes to its authors.

Also available for MetaTrader 5 (free): https://www.mql5.com/en/market/product/212443

What it shows

  • A stepped trend line. In an up-trend it follows the highest low of the last bars and only moves up; in a down-trend it follows the lowest high and only moves down.
  • The trend turns down when the moving average of highs falls below the highest low of the trend and the bar closes below the previous low; it turns up the opposite way. Amplitude sets how many bars are used.
  • A Buy or Sell arrow on the bar where the trend turns, half an ATR away from the line.
  • Optional ATR channel around the line (channel deviation x ATR/2).

Default inputs: Amplitude 2, Channel deviation 2, ATR 100. The ATR is Wilder's average. The built-in MetaTrader 4 ATR is a simple average, so versions that use it can show slightly different channels.

Made for MetaTrader 4

  • No repainting. The line and the arrows of a closed bar never change afterwards. Signals appear on the closed bar only.
  • Alerts on a new signal: popup, sound only, push notification to the MetaTrader mobile app, or e-mail. Once per signal, on the closed bar.
  • Signal statistics panel. It buys at the open of the bar after a Buy signal, sells after a Sell signal, and closes and reverses at the opposite signal. It shows trades, win rate, the net result in money at your lot size after spread and commission, the result before costs, profit factor, average win and loss, longest losing streak, maximum drawdown, the open trade and the cost per trade. Click the header to fold it to one line; put it in any corner. Colors follow your chart, dark or light.
  • Trade marks on the chart: hover a mark to see prices, exit reason and result.
  • Optional daily session filter for the statistics, in your own time zone (overnight windows allowed), with session shading and an optional close at session end. Off by default.
  • Works on any symbol and timeframe. Only new bars are calculated after the first load.

For EA developers

buffer 6 = HalfTrend line, 7 = trend (0 up, 1 down), 8 = ATR, 2 / 3 = channel upper / lower, 4 = Buy, 5 = Sell (arrow price on the signal bar, EMPTY_VALUE otherwise). Simplest call with the default inputs: iCustom(NULL, 0, "Market\\HalfTrend with Signal Stats", buffer, shift) . If you pass inputs, each separator line in the inputs counts as one parameter (pass an empty string for it). Values on the closed bar (shift 1) are final.

The panel describes what past signals would have done under the simple rule above, after the costs you set. It is not a backtest with stop-loss or take-profit, it is not a trading system and it says nothing about future results. Check the cost line first: on 1 to 5 minute charts the spread and commission per trade are often large compared with the average move between two signals.

This is a visual tool. It does not place trades and does not predict prices. Test any rule built on it before you trade with it.

Plus de l'auteur
A line-by-line MQL5 port of "UT Bot Alerts" by QuantNomad (Pine v4, 2020). The idea is by HPotter and the first version by Yo_adriiiiaan. The original is published as open source on TradingView. All credit goes to those authors. Also available for MetaTrader 4 (free): https://www.mql5.com/en/market/product/203726 Same logic as the original ATR is atr(c) = Wilder RMA seeded with an SMA. The built-in iATR is not used. Trailing stop follows the original nested iff / nz recursion: it ratchets up whi
FREE
Gold Entry
Thanh Trung Tran
Gold Entry runs two independent trend systems for XAUUSD in one Expert Advisor. Each system reads the market in its own way and manages its own position, so the EA does not depend on a single rule. A stop loss on every order and at most one position per system. This is the same EA that trades the Gold Entry signal on MQL5, so you can watch it on a real account before you buy. Historical test results are shown below with their settings and costs; they are not forecasts. Also available for MetaTra
Adaptive SuperTrend KMeans is a MetaTrader 5 port of the open-source TradingView indicator "Machine Learning Adaptive SuperTrend" by AlgoAlpha (Mozilla Public License 2.0). All credit for the idea and the original code goes to AlgoAlpha. Also available for MetaTrader 4 (free): https://www.mql5.com/en/market/product/198796 At a glance What it is: a SuperTrend whose band width adapts to the current volatility level Volatility levels: K-means sorts recent ATR values into high, medium and low cluste
FREE
A line-by-line MQL5 port of "Range Filter Buy and Sell 5min" : the original Range Filter by DonovanWall , the simplified version by guikroth and the Pine v5 update by tvenn . It is published as open source on TradingView. All credit goes to those authors. Also available for MetaTrader 4 (free): https://www.mql5.com/en/market/product/203727 Same logic as the original Smoothed range = EMA(EMA(|close - close[1]|, period), 2 x period - 1) x multiplier. Each EMA is seeded with an SMA, the same as ta.
FREE
A line-by-line MQL5 port of "Chandelier Exit" , (c) 2019-present Alex Orekhov ( everget ), distributed under the GPL-3.0 license. The original is published on TradingView. This port is released under the same license. Also available for MetaTrader 4 (free): https://www.mql5.com/en/market/product/203729 Same logic as the original ATR = multiplier x ta.atr(length) (Wilder RMA, seeded with an SMA). Long stop = highest(close or high, length) - ATR. It only moves up while the previous close stays abo
FREE
Gold Lighthouse
Thanh Trung Tran
Gold Lighthouse is a free, fully automated Expert Advisor for XAUUSD. It trades rarely and calmly - a few trades per month, long or short - and every order carries a stop loss and a take profit from the first second. There is never more than one position open, and a trade that reaches neither level is closed after a time limit. No martingale, no grid. Historical test results are shown below with their settings and costs; they are not forecasts. Who it is for: traders who want to try a rule-based
FREE
Adaptive SuperTrend K-Means is an MT4 port of the open-source TradingView indicator "Machine Learning Adaptive SuperTrend" by AlgoAlpha (Mozilla Public License 2.0). All credit for the idea and the original code goes to AlgoAlpha. Also available for MetaTrader 5 (free): Adaptive SuperTrend KMeans MT5 - https://www.mql5.com/en/market/product/209466 At a glance What it is: a SuperTrend whose band width adapts to the current volatility level Volatility levels: K-means sorts recent ATR values into h
FREE
A line-by-line port of "UT Bot Alerts" by QuantNomad (Pine v4, 2020). The idea is by HPotter and the first version by Yo_adriiiiaan. The original is published as open source on TradingView. All credit goes to those authors. Also available for MetaTrader 5 (free): UT Bot Alerts with Signal Stats MT5 - https://www.mql5.com/en/market/product/209458 The logic is exactly the original's ATR is atr(c) = Wilder RMA seeded with an SMA. The built-in iATR is not used. Trailing stop follows the original nes
FREE
A line-by-line port of "Range Filter Buy and Sell 5min" : Also available for MetaTrader 5 (free): Range Filter Buy Sell with Signal Stats MT5 - https://www.mql5.com/en/market/product/209459 original Range Filter by DonovanWall simplified version by guikroth Pine v5 update by tvenn It is published as open source on TradingView. All credit goes to those authors. The logic is exactly the original's Smoothed range = EMA(EMA(|close − close[1]|, period), 2 × period − 1) × multiplier. Each EMA is seede
FREE
A line-by-line port of "Chandelier Exit" , 2019-present Alex Orekhov ( everget ), distributed under the GPL-3.0 license. The original is published on TradingView. This port is released under the same license. Also available for MetaTrader 5 (free): Chandelier Exit with Signal Stats MT5 - https://www.mql5.com/en/market/product/209460 The logic is exactly the original's ATR = multiplier × ta.atr(length) (Wilder RMA, seeded with an SMA). Long stop = highest(close or high, length) − ATR. It only m
FREE
A backtest looks great. Then the EA runs live and the numbers are different, and nobody can say why. Was it slippage, missed signals, a restart or a manual trade? Or was the backtest flattering? Tester vs Live Trade Matcher answers that trade by trade, on MetaTrader 5. It never opens, modifies or closes orders. What you get Verdict: green (live matches the backtest), amber (partly matches) or red (live differs). Trade match: trades on each side and the match rate (Jaccard); trades the backtest t
FREE
Gold Order Flow
Thanh Trung Tran
Gold Order Flow is a fully automated Expert Advisor for XAUUSD that reacts to unusually strong moves in gold - long or short. Every order carries a stop loss and a take profit from the first second, there is never more than one position open, and trades are time-limited. No martingale, no grid. This is the same EA that trades the Gold Order Flow signal on MQL5, so you can watch it on a real account before you buy. Historical test results are shown below with their settings and costs; they are no
GoldSwing T24
Thanh Trung Tran
GoldSwing T24 is a fully automated trend Expert Advisor for XAUUSD. It trades only with the prevailing trend and closes every trade within 24 hours at the latest - no position is left open for long. A stop loss and take profit on every order, plus break-even protection after the first move. This is the same EA that trades the GoldSwing T24 signal on MQL5, so you can watch it on a real account before you buy. Historical test results are shown below with their settings and costs; they are not fore
GoldIBH
Thanh Trung Tran
GoldIBH combines three complementary gold strategies in one Expert Advisor. Each one looks for a different market situation and manages its own position and stop loss, so the EA can find opportunities in more conditions than a single-rule EA. This is the same EA that trades the GoldIBH signal on MQL5, so you can watch it on a real account before you buy. Historical test results are shown below with their settings and costs; they are not forecasts. Also available for MetaTrader 5: GoldIBH MT5 - h
Gold Momentum Breakout is a fully automated momentum Expert Advisor for XAUUSD. It stays out of the market until gold shows real momentum, then joins the move - long or short. Every order carries a stop loss from the first second, trades are time-limited, and there is never more than one position open. No martingale, no grid. This is the same EA that trades the Gold Momentum Breakout signal on MQL5, so you can watch it on a real account before you buy. Historical test results are shown below wit
Gold Bull Rider
Thanh Trung Tran
Gold Bull Rider is a buy-only trend Expert Advisor for XAUUSD. It waits until gold shows a confirmed upward phase, then joins the move with one position at a time, a stop loss on every order and a time limit on every trade. It never sells, so it is built for rising markets and will struggle when gold falls or moves sideways for a long time. No martingale, no grid, no hedging. There is no public live account for this EA yet; the results below come from a backtest, are shown with their settings an
Gold Trend Pilot
Thanh Trung Tran
Gold Trend Pilot is a trend-following Expert Advisor for XAUUSD that trades in both directions. It follows the larger trend of gold, enters in the direction of that trend and manages one position at a time, with a stop loss and take profit on every order, break-even protection after the first move and a time limit on every trade. Trades can stay open overnight and over the weekend. No martingale, no grid, no hedging. There is no public live account for this EA yet; the results below come from a
An independent MetaTrader 4 implementation of the TTM Squeeze method by John Carter, in the form popularised on TradingView by LazyBear ("Squeeze Momentum Indicator"). It was written from the published formula. Credit for the method goes to those authors. Also available for MetaTrader 5 (free): https://www.mql5.com/en/market/product/212440 What it shows Squeeze dots on the zero line. Orange: the Bollinger Bands (20, 2.0) are inside the Keltner Channel (20, 1.5, true range), so volatility is comp
FREE
GoldSwing T24 MT5
Thanh Trung Tran
GoldSwing T24 MT5 is a fully automated trend Expert Advisor for XAUUSD on MetaTrader 5. It trades only with the prevailing trend and closes every trade within 24 hours at the latest - no position is left open for long. A stop loss and take profit on every order, plus break-even protection after the first move. The same trading rules run the GoldSwing T24 signal on MQL5, so you can watch the strategy on a real account before you buy. Historical test results are shown below with their settings and
Gold Momentum Breakout MT5 is a fully automated momentum Expert Advisor for XAUUSD on MetaTrader 5. It stays out of the market until gold shows real momentum, then joins the move - long or short. Every order carries a stop loss from the first second, trades are time-limited, and there is never more than one position open. No martingale, no grid. The same trading rules run the Gold Momentum Breakout signal on MQL5, so you can watch the strategy on a real account before you buy. Historical test re
GoldIBH MT5
Thanh Trung Tran
GoldIBH MT5 combines three complementary gold strategies in one MetaTrader 5 Expert Advisor. Each one looks for a different market situation and manages its own position and stop loss, so the EA can find opportunities in more conditions than a single-rule EA. The same trading rules run the GoldIBH signal on MQL5, so you can watch the strategy on a real account before you buy. Historical test results are shown below with their settings and costs; they are not forecasts. Also available for MetaTra
Gold Entry MT5
Thanh Trung Tran
Gold Entry MT5 runs two independent trend systems for XAUUSD in one MetaTrader 5 Expert Advisor. Each system reads the market in its own way and manages its own position, so the EA does not depend on a single rule. A stop loss on every order and at most one position per system. The same trading rules run the Gold Entry signal on MQL5, so you can watch the strategy on a real account before you buy. Historical test results are shown below with their settings and costs; they are not forecasts. Also
Gold Tandem MT5
Thanh Trung Tran
Gold Tandem MT5 runs two independent trend strategies for XAUUSD in one MetaTrader 5 Expert Advisor. Each strategy waits for its own market situation and manages its own position, with a stop loss and take profit on every order, break-even protection after the first move and a time limit on every trade. No martingale, no grid. A live signal with the MetaTrader 4 version started on 25 November 2026 and is still too short to judge; the results below come from a backtest, are shown with their setti
An independent MetaTrader 5 implementation of the TTM Squeeze method by John Carter, in the form popularised on TradingView by LazyBear ("Squeeze Momentum Indicator"). It was written from the published formula. Credit for the method goes to those authors. Also available for MetaTrader 4 (free): https://www.mql5.com/en/market/product/212438 What it shows Squeeze dots on the zero line. Orange: the Bollinger Bands (20, 2.0) are inside the Keltner Channel (20, 1.5, true range), so volatility is comp
FREE
An independent MetaTrader 5 implementation of the classic HalfTrend method, as popularised on TradingView by everget. It was written from the method description. Credit for the method goes to its authors. Also available for MetaTrader 4 (free): https://www.mql5.com/en/market/product/212439 What it shows A stepped trend line. In an up-trend it follows the highest low of the last bars and only moves up; in a down-trend it follows the lowest high and only moves down. The trend turns down when the m
FREE
Filtrer:
Aucun avis
Répondre à l'avis