GB Trend Scanner
- Indicadores
- Versão: 1.0
- Ativações: 20
GB Trend Scanner
GB Trend Scanner is a custom MT5 indicator intended for its own chart. It reads the symbols currently shown in Market Watch and displays a trend result for each symbol across six fixed timeframes: W1, D1, H4, H1, M15 and M5. Symbols appear in rows; timeframes appear in columns.
You can move through the rows with the mouse wheel or the Up and Down buttons. The scanner refreshes on a timer and updates when the Market Watch symbol list changes. It does not place trades or send alerts.
Trend calculations
- Direction: Price above both EMAs indicates up; below both indicates down; between them indicates neutral.
- Structure: It looks for confirmed swing highs and lows, then classifies them as HH, HL, LH or LL.
- Strong up: Requires HH + HL, with momentum confirmation.
- Strong down: Requires LL + LH, with momentum confirmation.
- Weakening trend: A structure break or opposing momentum divergence can weaken the trend. A trend can also be marked weak while it waits for enough structure or momentum confirmation.
The table uses STRONG UP, WEAK UP, STRONG DOWN, WEAK DOWN and NEUTRAL states. Strong states use dark green or dark red; weak states use light green or light red; neutral uses grey.
Inputs and settings
| Input | Default | What it controls |
| InpTrendFastEMA | 50 | Fast EMA period used in the direction filter. |
| InpTrendSlowEMA | 89 | Slow EMA period used in the direction filter. |
| InpTrendMomentumMode | GB_TREND_MOMENTUM_RSI | Selects RSI or MACD histogram for momentum confirmation and divergence checks. |
| InpTrendRSIPeriod | 14 | RSI period when RSI mode is selected. |
| InpTrendMACDFast | 12 | MACD fast EMA period when MACD mode is selected. |
| InpTrendMACDSlow | 26 | MACD slow EMA period when MACD mode is selected. |
| InpTrendMACDSignal | 9 | MACD signal period when MACD mode is selected. |
| InpTrendStructureLookback | 40 | Number of recent bars scanned for confirmed swing points. |
| InpTrendSwingDepth | 2 | Number of bars on each side used to confirm a swing high or low. |
| InpTrendDetectStructureBreaks | true | Enables weakening the trend when price breaks the latest supporting HL or LH. |
| InpRefreshSeconds | 3 | How often the scanner refreshes. The code limits this to 1–60 seconds. |
| InpRowHeight | 23 | Height of each symbol row. The code limits this to 18–40 pixels. |
| InpFontSize | 9 | Text size for labels and cells. |
| InpPanelBackground | GB_Scanner_lIght | Choose between light and Dark mode |
The EMA, RSI, MACD and structure inputs are constrained internally to reasonable ranges; swing depth is limited to 1–5 and structure lookback to 20–200. When RSI mode is selected, the MACD settings are inactive; in MACD mode, the RSI period is inactive.
