Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Range Filter Buy and Sell for MT4 - faithful port of DonovanWall / guikroth with signal statistics - indicator for MetaTrader 4

DonovanWall, guikroth, tvenn
Published by:
Views:
77
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Range Filter on XAUUSD M15

A line-by-line port of "Range Filter Buy and Sell 5min":

  • original Range Filter by DonovanWall
  • simplified version by guikroth
  • Pine v5 update by tvenn

It is published open source on TradingView at tradingview.com/script/J8GzFGfD/. 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 seeded with an SMA, the same as ta.ema .
  • Range filter: the line stays put until price moves beyond it by more than the smoothed range, then follows at that distance.
  • Upward / downward counters, then long and short conditions. A Buy or Sell is printed once per change of side, using the original CondIni logic.
  • High / low target bands at filter ± range. Bar colors as in the original.

Inputs (original defaults): Sampling Period 100, Range Multiplier 3.0.

Added for MT4:

  • Signal statistics panel. It buys at the bar after a Buy, sells after a Sell, and closes and reverses at the opposite signal. It shows:
    • trades, win rate, net points / pips / USD after spread + commission
    • profit factor, longest losing streak, max drawdown
    • the open trade and the cost per trade
  • Daily session filter in your own time zone, with session shading and an optional close at session end. It is off by default (the panel counts the whole day); set Use_Session = true and your hours to use it.
  • Trade marks with tooltips.
  • Alerts on new signals.

Buffers for EAs ( iCustom ): 5 = Buy, 6 = Sell, 11 = filter value.

The panel describes past signals so you can judge them yourself. It is not a backtest and not a promise of results.

Range Filter on XAUUSD H1

Chandelier Exit for MT4 - faithful port of everget's TradingView version with signal statistics Chandelier Exit for MT4 - faithful port of everget's TradingView version with signal statistics

An MT4 port of the classic Chandelier Exit as implemented by everget on TradingView (v6, 2025). It draws the long/short ATR stop from the highest or lowest close, Buy/Sell signals when the state flips, and a highlighted state fill, plus a signal statistics panel with a daily session filter.

TSCombo5 TSCombo5

Geminis, Mistral, Claude & Perplexity UNITED!!

UT Bot Alerts for MT4 - faithful port with signal statistics panel and daily session filter UT Bot Alerts for MT4 - faithful port with signal statistics panel and daily session filter

An MT4 port of QuantNomad's "UT Bot Alerts", one of the most-used scripts on TradingView. It draws the ATR trailing stop, Buy/Sell signals and bar colors, and adds a panel that counts what the signals would have done, after costs, inside your trading hours.

TesterVsLive - match a Strategy Tester report against your real account, trade by trade TesterVsLive - match a Strategy Tester report against your real account, trade by trade

A free, read-only utility. It reads an MT4 Strategy Tester report (.htm) and matches every backtest trade with your account history. It then shows the match rate, missed and extra trades, entry and exit slippage, delay, real commission and swap, and how much of the backtest edge survives live.