Regular Hidden Divergence Detector

  • 지표
  • Kazuma Uezono
    Kazuma Uezono
    MQL5 / MQL4 / Pine Script v6 developer and active trader.
    Seller on the MQL5 Market (indicators for MT4/MT5).
    Services:
    - TradingView Pine Script to MT5/MT4 conversion (bar-by-bar matching, with tester report)
    - MT4 to MT5 migration
  • 버전: 1.0
  • 활성화: 5
Divergence Detector finds regular and hidden divergences between price swings and one oscillator of your choice (RSI, MACD histogram, Stochastic %K, OBV, CCI or Momentum). It draws them as lines on the price chart and in the indicator window, and a small table shows the latest divergence on four other timeframes. It is a display tool: it gives no buy / sell signals and does not place orders.

HOW A DIVERGENCE IS FOUND
- Swings are price pivots: a high that is higher than the 5 bars on its left and not lower than the 5 bars on its right (lows the other way). Both counts can be changed.
- A new swing is compared with earlier swings on the same side that are 5 to 60 bars back (inputs).
- Regular bearish: higher high in price, lower high in the oscillator. Regular bullish: lower low in price, higher low in the oscillator.
- Hidden bearish: lower high in price, higher high in the oscillator. Hidden bullish: higher low in price, lower low in the oscillator.
- The oscillator difference must be at least 5% of the oscillator's range between the two swings (input, 0-100%).
- Line-crossing check (Off / Price only / Indicator only / Price and indicator, default Price only): no bar between the two swings may go beyond the straight line that joins them.
- For each type, only the most recent earlier swing that meets all conditions is used, so one swing gives at most one line per type.
- Regular divergences are on and hidden divergences are off by default. Regular lines are solid, hidden lines are dashed.

WHEN THE LINES APPEAR (please read)
- Only closed bars are used. A swing is confirmed when its right-side bars have closed, so every line appears 5 bars (the right-side count) after the second swing. This delay is part of the method.
- Once a line has been drawn, it is not moved or removed while the indicator is running. Before release, the lines drawn bar by bar were compared with an independent recalculation from the same price data and with the chart after more bars had closed; no differences were found in these tests.
- The analysis covers the last 2000 closed bars at start-up (input 200-20000) and its start stays fixed. If older history is downloaded later, it is used only after the indicator restarts (for example after changing a setting or the timeframe).

OSCILLATORS (one per copy)
- RSI (14), MACD histogram (12, 26, 9), Stochastic %K (14, 3, 3), OBV (tick volume), CCI (14), Momentum (14). All periods can be changed.
- MACD histogram here means MACD line minus signal line. This is not the same picture as the standard MetaTrader 4 MACD, which shows the MACD line as bars and the signal as a line.
- OBV: the absolute OBV value depends on where the loaded history starts, but divergences use only differences between the two swings, so the lines are the same. Tick volume comes from your broker's data, so OBV results can differ between brokers.
- To watch two oscillators, add the indicator twice (up to 8 copies on one chart). Labels of the second and later copies are moved slightly outward so they do not overlap.

HOW OFTEN LINES APPEAR (for reference only)
With the default settings (RSI 14, regular only, 5 bars on each side), past MetaTrader 5 charts (same calculation as this MT4 version) showed roughly one divergence per 58 bars on EURUSD H1, one per 64 bars on USDJPY M15 and one per 60 bars on GOLD H4. This is only a count of how often lines were drawn. It says nothing about what price did afterwards, and it differs by symbol, period and settings.

TIMEFRAME TABLE
- Shown in the indicator window for M15, H1, H4 and D1 (each can be changed): the type of the latest divergence and how many bars ago its second swing was, for example "Bull 7 bars".
- "none" means no divergence was found in the analysed bars. "—" means the data is still loading or there is not enough history.
- Position (four corners of the indicator window) and text size can be changed.

ALERTS
- Off by default. When on: pop-up, sound and / or push notification.
- Only divergences newly confirmed on the chart timeframe after the indicator starts are alerted (not past bars, not the table timeframes).

DISPLAY
- Tooltip on each line: type, oscillator values at the two swings, swing times and the bar on which it was confirmed.
- Labels, table, tooltips and alerts in English or Japanese, chosen automatically from the terminal language (can also be set by hand).
- Lines on the price chart and in the indicator window, labels, colours and line width can be switched or changed.

IMPORTANT
- Not a buy / sell signal, not a trade, take-profit or stop-loss level, and not a probability. A divergence only shows that price and the oscillator moved differently between two swings.
- In a strong trend, divergences against the trend can appear several times in a row while the trend continues. Because of the confirmation delay, price may already have moved by the time a line appears.
- It does not promise any win rate or profit, and past charts do not guarantee future results. Trade decisions are your own responsibility.
- Bar boundaries depend on the broker's server time, so lines can differ between brokers for the same symbol.
- Objects whose names start with "DVD<number>_" are treated as this indicator's drawings and are cleaned up. Do not use such names for your own objects.
- Push notifications need the terminal's notification settings.

OTHER
- MetaTrader 4 only (the MT5 version is a separate product). Works on any symbol and timeframe.
- Works with templates and after a terminal restart.
- No DLLs, no external files, no internet access.
- A PDF user guide (English or Japanese) is available: send a message through MQL5 after purchase and it will be sent to you.
- Support through MQL5 messages, reply within 3 business days: installation, settings and bug reports only. Questions about market views, trade decisions or how to read a result cannot be answered.

제작자의 제품 더 보기
Elliott Wave Auto Count labels Elliott waves automatically on four degrees at the same time: the base degree and the three degrees above it. It follows the rules and guidelines of "Elliott Wave Principle" (Frost & Prechter). For the current wave it also shows a price x time target zone and an invalidation level. This is the MetaTrader 4 version; the counting logic is the same as in the MetaTrader 5 version (sold separately). HOW IT WORKS 1. Swings: five ATR(100)-based zigzags. Each higher degr
Fibo Price Time Zones combines Fibonacci price levels with Fibonacci time targets and draws them on the chart as boxes (price x time zones). It helps you organize which price areas to watch and roughly when. Where boxes from several waves and from higher timeframes overlap, the area is emphasized in three levels. Base waves are built only from confirmed swings, so a confirmed box does not move afterwards (see the conditions below). WHAT IT DRAWS - Price levels: retracement 38.2 / 50 / 61.8 / 7
RSI AutoScale is a clean, lightweight RSI for traders who use both TradingView and MetaTrader 5 and want the two charts to look the same. WHAT IT SHOWS - RSI (Wilder smoothing): the same values as the standard RSI, with any applied price. - Signal line on the RSI: SMA, EMA, SMMA or LWMA, with its own period. - Levels: upper, middle and lower lines (70 / 50 / 30 by default). They use MT5's native levels, so they reach the right edge and their values appear on the scale. - Zone fills: the middle
FREE
Dow Structure MTF shows the Dow theory trend structure of five timeframes at the same time, using the pullback low / rally high approach that is common among Japanese traders. For each timeframe you see whether the trend is up, down or range, which price would change it, and how far the current price is from that level. Only closed bars are used, so a confirmed result never changes afterwards (no repaint). This is the MetaTrader 4 version; the logic, inputs, display and alerts are the same as i
Fibo Price Time Zones combines Fibonacci price levels with Fibonacci time targets and draws them on the chart as boxes (price x time zones). It helps you organize which price areas to watch and roughly when. Where boxes from several waves and from higher timeframes overlap, the area is emphasized in three levels. Base waves are built only from confirmed swings, so a confirmed box does not move afterwards (see the conditions below). This is the MetaTrader 4 version; the calculation, inputs, defa
Time Average Lines draws four averages that are measured by time, not by the number of bars. When you switch timeframes, each line still averages the same length of time. The main line (3) averages how far price had moved from the day's open at the same clock time on past days, and the rest of today is shown as a dotted path that joins those past averages. The path is a summary of the past, not a forecast. THE FOUR LINES - (1) Time MA: average close of the bars that started within the last N m
Auto Trendline Channel MTF draws trendlines, parallel channels and horizontal support / resistance automatically from confirmed swing highs and lows. For each line it records the touch count, close breaks, wick breaks and retests. A table shows, for the chart timeframe and two higher timeframes, the nearest line above and below the price, the distance to it and the Dow theory direction. Touch counts and break records describe what happened on the past chart. They do not tell whether price will
Currency Strength Meter MTF combines the 28 pairs of the 8 major currencies (USD, EUR, JPY, GBP, AUD, NZD, CAD, CHF) into one strength value per currency. It draws 8 lines in a subwindow and shows a ranking table for the chart timeframe, M15, H1, H4 and D1. This is the MetaTrader 4 version; the formula, inputs, defaults, display and alerts are the same as in the MetaTrader 5 version (sold separately). The full formula is published below. The indicator shows the relative strength of past price c
Trade History Stats Panel for MetaTrader 4 reads the closed trades in your own account history and sums them up in a panel on the chart: number of trades, win rate, profit factor, average P/L per trade, drawdown of the closed-trade curve, holding time, buy / sell, and tables by month, symbol, weekday and hour. It is a record-keeping tool for looking back at your past trades, like a trading journal that fills itself in. It never places, modifies or closes orders, and it gives no buy / sell signa
Prop Challenge Loss Tracker for MetaTrader 4 shows, in a panel on the chart, how much room is left before the daily loss limit and the maximum loss limit of a funded-account (prop) challenge are reached, and sends staged alerts as the limits are used up. It is a display and alert tool only: it never opens, modifies or closes any order. Whether a limit is exceeded depends entirely on your own trading and on your own actions after an alert. WHAT IT SHOWS - Status of the whole account in one word
Market Structure & Liquidity Map draws SMC-style (smart money concepts) market structure and liquidity levels on the chart, and sums them up in a small table for the chart timeframe and two higher timeframes. It is a display tool that helps you organize where the structure has changed and which highs and lows have not been taken yet. It gives no buy / sell signals. Only closed bars are used, processed one by one from a fixed start, so confirmed drawings do not repaint (see the notes below). Thi
This is the MetaTrader 4 edition of RSI AutoScale. It draws the standard Wilder RSI with a signal line, a shaded band between the levels, colored areas where the RSI leaves that band, and a choice of three scales. It is meant for traders who use TradingView and MetaTrader 4 side by side and want the RSI pane to look much the same on both. HOW IT LOOKS ON MT4 - RSI line: the same values as MT4's built-in RSI for the same period and applied price. - Signal line: a moving average of the RSI (SMA, E
FREE
A MetaTrader 4 MACD built to read like the MACD you see on TradingView: a MACD line, a signal line, and a histogram of the gap between them, colored in four shades. If you switch between the two platforms during the day, the MACD pane on your MT4 chart will look and behave the way you are used to. WHY NOT THE MT4 BUILT-IN MACD? MT4's own MACD draws the MACD line as gray bars and smooths the signal line with an SMA. There is no separate histogram and no color change. This indicator calculates the
FREE
Multi Symbol Market Scanner Panel shows up to 30 symbols in one table on your MT4 chart: trend direction, RSI, volatility, today's range, distance from yesterday's high / low and a simple swing structure, on M15, H1, H4 and D1. It is a display tool for checking many symbols at once without opening many charts. It gives no buy / sell signals and never places orders. WHAT THE TABLE SHOWS - Rows: the symbols in your Market Watch (the first 30), or your own comma-separated list (up to 30). For a l
Session & Key Levels draws trading sessions (Asia, London, New York and one optional extra session) as boxes with their high, low and open lines, and adds key levels: previous day / week / month high and low, week and month open, and round numbers. The highs and lows of finished sessions are extended to the right until price takes them, then they stop and fade. A small panel shows the current session and each session's latest range compared with its recent average. It is a display tool: it give
Risk and Lot Size Calculator works out the lot size for the amount you are prepared to lose. Drag three lines on the chart (entry, stop loss, take profit) and the panel shows the lot size, the money at risk, the profit at the take profit, the risk:reward ratio and the margin required. This is the MetaTrader 4 version. It is a calculation and display tool only: it never opens, modifies or closes any order. The numbers are an estimate; the real fill, profit/loss and margin are decided by your bro
Gold Pullback EA is a simple trend-following robot for XAUUSD (gold). It waits for the daily trend, buys or sells the pullback on H4, and lets winners run with an ATR trailing stop. HOW IT TRADES - Trend filter (D1): long only when EMA50 > EMA200 and the daily close is above EMA50; short only in the opposite case. - Entry (H4): price pulls back to EMA20 within the last 3 bars, then an H4 bar closes back beyond EMA20 and beyond the previous bar's high (low for shorts). - Stop loss: below the la
Elliott Wave Auto Count labels Elliott waves automatically on four degrees at the same time: the base degree and the three degrees above it. It follows the rules and guidelines of "Elliott Wave Principle" (Frost & Prechter). For the current wave it also shows a price x time target zone and an invalidation level. HOW IT WORKS 1. Swings: five ATR(100)-based zigzags. Each higher degree uses a larger swing threshold. The finest zigzag is hidden and is used only to count the sub-waves inside each l
Dow Structure MTF shows the Dow theory trend structure of five timeframes at the same time, using the pullback low / rally high approach that is common among Japanese traders. For each timeframe you see whether the trend is up, down or range, which price would change it, and how far the current price is from that level. Only closed bars are used, so a confirmed result never changes afterwards (no repaint). WHAT YOU SEE - Table of five timeframes (M15, H1, H4, D1, W1 by default, all changeable)
Time Average Lines draws four averages that are measured by time, not by the number of bars. When you switch timeframes, each line still averages the same length of time. The main line (3) averages how far price had moved from the day's open at the same clock time on past days, and the rest of today is shown as a dotted path that joins those past averages. The path is a summary of the past, not a forecast. THE FOUR LINES - (1) Time MA: average close of the bars that started within the last N m
Auto Trendline Channel MTF draws trendlines, parallel channels and horizontal support / resistance automatically from confirmed swing highs and lows. For each line it records the touch count, close breaks, wick breaks and retests. A table shows, for the chart timeframe and two higher timeframes, the nearest line above and below the price, the distance to it and the Dow theory direction. Touch counts and break records describe what happened on the past chart. They do not tell whether price will
Currency Strength Meter MTF combines the 28 pairs of the 8 major currencies (USD, EUR, JPY, GBP, AUD, NZD, CAD, CHF) into one strength value per currency. It draws 8 lines in a subwindow and shows a ranking table for the chart timeframe, M15, H1, H4 and D1. The full formula is published below. The indicator shows the relative strength of past price changes calculated by a fixed formula. It is an analysis aid. It does not tell you when to buy or sell, and it does not show future price movement.
Trade History Stats Panel reads the closed trades in your own account history and sums them up in a panel on the chart: number of trades, win rate, profit factor, average P/L per trade, drawdown of the closed-trade curve, holding time, buy / sell, and tables by month, symbol, weekday and hour. It is a record-keeping tool for looking back at your past trades, like a trading journal that fills itself in. It never places, modifies or closes orders, and it gives no buy / sell signals. WHAT IT SHOW
Prop Challenge Loss Tracker shows, in a panel on the chart, how much room is left before the daily loss limit and the maximum loss limit of a funded-account (prop) challenge are reached, and sends staged alerts as the limits are used up. It is a display and alert tool only: it never opens, modifies or closes any order. Whether a limit is exceeded depends entirely on your own trading and on your own actions after an alert. WHAT IT SHOWS - Status of the whole account in one word and one color: O
Market Structure & Liquidity Map draws SMC-style (smart money concepts) market structure and liquidity levels on the chart, and sums them up in a small table for the chart timeframe and two higher timeframes. It is a display tool that helps you organize where the structure has changed and which highs and lows have not been taken yet. It gives no buy / sell signals. Only closed bars are used, processed one by one from a fixed start, so confirmed drawings do not repaint (see the notes below). Th
MACD Four Color Histogram is a MACD for MetaTrader 5 that uses the same formula and the same look as the built-in MACD on TradingView. It is made for traders who use both platforms and want the MACD on each chart to read the same way. HOW IT DIFFERS FROM THE MT5 STANDARD MACD - MT5 standard MACD: the histogram is the MACD line itself, and the signal line is an SMA. - This indicator: three parts, as on TradingView. MACD line, signal line, and histogram = MACD - signal. The histogram has 4 colors.
FREE
Stoch RSI Band Fill is a Stochastic RSI indicator for MetaTrader 5. MT5 does not include a built-in Stoch RSI, so this indicator adds one. It follows the same calculation steps as the built-in Stoch RSI on TradingView and uses the same layout: K and D lines, 80 / 50 / 20 levels and a shaded band between the upper and lower levels. CALCULATION, STEP BY STEP 1. RSI of the selected price (default: close, length 14), smoothed with Wilder's method (RMA). The first average is the simple average of the
FREE
Divergence Detector finds regular and hidden divergences between price swings and one oscillator of your choice (RSI, MACD histogram, Stochastic %K, OBV, CCI or Momentum). It draws them as lines on the price chart and in the indicator window, and a small table shows the latest divergence on four other timeframes. It is a display tool: it gives no buy / sell signals and does not place orders. HOW A DIVERGENCE IS FOUND - Swings are price pivots: a high that is higher than the 5 bars on its left a
Risk and Lot Size Calculator works out the lot size for the amount you are prepared to lose. Drag three lines on the chart (entry, stop loss, take profit) and the panel shows the lot size, the money at risk, the profit at the take profit, the risk:reward ratio and the estimated margin. It is a calculation and display tool only: it never opens, modifies or closes any order. The numbers are an estimate; the real fill, profit/loss and margin are decided by your broker's conditions. HOW IT WORKS -
Multi-Symbol Market Scanner shows up to 30 symbols in one table on your chart: trend direction, RSI, volatility, today's range, distance from yesterday's high / low and a simple swing structure, on M15, H1, H4 and D1. It is a display tool for checking many symbols at once without opening many charts. It gives no buy / sell signals and never places orders. WHAT THE TABLE SHOWS - Rows: the symbols in your Market Watch (the first 30), or your own comma-separated list (up to 30). For a list, the b
필터:
리뷰 없음
리뷰 답변