Loading…

Watchlist Rule Scanner Panel

Manually flicking through every symbol in Market Watch to check one condition is slow and easy to do inconsistently. This panel runs one chosen rule - an RSI threshold or a fast/slow moving average cross on the last closed bar - across every symbol currently in Market Watch on a timer, and lists the symbols that currently qualify as a row of buttons directly on the chart. Clicking a row switches the CURRENT chart to that symbol (keeping the current timeframe), so acting on a hit takes one click rather than a manual symbol-list search. The scan runs on a timer (InpRefreshSeconds), not on every tick of the host chart. Re-running iRSI/iMA across the whole watchlist on every tick would be wasteful, and would also re-trigger MetaTrader's background history-load check for any watched symbol whose price history has not fully synced yet far more often than the panel actually needs to know. Notes and limitations - A symbol whose price history has not fully synced yet (freshly added to Market Watch) reports 0 from iRSI/iMA and is simply skipped that pass - it is picked up automatically once its history is ready on a later timer tick, never flagged as a false hit. - The MA cross rules check the last CLOSED bar only; a cross that occurs intrabar on the still-forming bar is not reported until that bar closes. - Scanning is bounded by InpMaxSymbolsScanned and InpMaxRows; a very large Market Watch list with the defaults left low may not report every possible hit - raise both inputs if that matters for your watchlist size. - One instance per chart is the intended use; running several instances with different rules on different charts works, but they draw independent panels and do not share scan results.

Indicator · MT5 · v1.0 · Free

About Watchlist Rule Scanner Panel

Watchlist Rule Scanner Panel is an indicator for MetaTrader 5 based on RSI and Moving Average. It has 14 settings, such as Rule type, Timeframe and Rsi period. MQL source code included.

Files in the download: WatchlistRuleScanner.ex5, WatchlistRuleScanner.mq5, WatchlistRuleScanner.txt.

Settings

SettingDefaultWhat it does
Rule typeRULE_RSI_OVERSOLDRule applied to every watchlist symbol
TimeframePERIOD_CURRENTTimeframe the rule is evaluated on
Rsi period14RSI period (RSI rules only)
Rsi oversold30.0RSI oversold threshold
Rsi overbought70.0RSI overbought threshold
Fast ma period10Fast MA period (MA cross rules only)
Slow ma period30Slow MA period (MA cross rules only)
Ma methodMODE_SMAMA method: 0=SMA 1=EMA 2=SMMA 3=LWMA
Max rows15Maximum hit rows shown on the panel
Max symbols scanned100Cap on Market Watch symbols examined per scan
Refresh seconds30Seconds between automatic rescans
CornerCORNER_LEFT_UPPERChart corner the panel is anchored to
X10Panel X offset from the corner, pixels
Y20Panel Y offset from the corner, pixels

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Indicators.
  3. Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
  4. Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the indicator from the Navigator onto a chart and adjust the settings.

Download the PDF guide

Tags: RSI · Moving Average · Dashboards & Scanners · MT5 Indicator · MQL5 Source Code

MetaTrader 4 & 5 indicators · PolyMaria