Divergence Compass
- 지표
-
Namu Makwembo
I am a Fx Trader and computer programmer , I make trading systems and indicators be sure to check out my hot collection - 버전: 1.12
- 활성화: 10
Divergence Compass compares price with the Stochastic Oscillator to identify regular divergence, hidden divergence and convergence on your MetaTrader 5 chart. Lines on the price chart and in the stochastic window help you compare price movement with changes in momentum.
The indicator compares swings associated with consecutive stochastic crosses in the same direction: a bullish cross with the previous bullish cross, or a bearish cross with the previous bearish cross. It does not skip an intervening same-direction cross to find another matching pair.
Trade signals
- Regular bullish divergence — potential buy setup. Price forms a lower low while the oscillator forms a higher low. This may indicate weakening downward momentum and a possible bullish reversal.
- Hidden bullish divergence — potential buy setup. Price forms a higher low while the oscillator forms a lower low. This can help assess possible continuation of an existing upward trend.
- Regular bearish divergence — potential sell setup. Price forms a higher high while the oscillator forms a lower high. This may indicate weakening upward momentum and a possible bearish reversal.
- Hidden bearish divergence — potential sell setup. Price forms a lower high while the oscillator forms a higher high. This can help assess possible continuation of an existing downward trend.
Consider a potential entry only after the signal is confirmed on a closed candle. Bullish signals require the stochastic main line, K, to cross above the signal line, D. Bearish signals require the main line to cross below the signal line.
Assess the broader trend independently: the indicator does not apply a separate trend filter. Signals identify potential setups and do not guarantee future price direction or trading results.
Convergence
Upward convergence means the compared price and oscillator extremes are rising. Downward convergence means they are falling. These comparisons provide context about agreement between price and momentum rather than standalone buy or sell instructions.
Display and signal timing
Comparison lines appear on the price chart and, when enabled, in the stochastic window. Text labels remain on the main chart.
Signals are evaluated after the stochastic cross candle closes, when the required price and indicator data become available. This normally occurs on the first price update of the following candle.
Comparison lines may connect swings that formed before the confirming cross. A line ending at an earlier swing does not mean the signal was available when that swing formed. The signal label and notification identify the confirming cross candle.
The compact panel lets you enable or disable signal types, choose a dark or light theme, and view the latest confirmed signal with its cross-candle time.
Non-repainting confirmed signals
The open candle is excluded from signal confirmation. With unchanged settings and historical data, confirmed signals are not revised based on subsequent price movement. The stochastic lines continue to update on the open candle.
Changing settings or updating historical data can change historical results. Older signals are removed as their required comparison history leaves the configured search range.
Settings
- Stochastic: K period, D period and Slowing control the oscillator calculation. Defaults are 5, 3 and 3, using simple moving averages and the low/high price range.
- Filters: History bars sets the search range. Minimum price difference uses broker quotation points; Minimum stochastic difference uses oscillator points. Minimum and maximum bars between crosses control the spacing between compared crosses. A maximum of 0 removes the upper limit. Bullish zone ceiling and Bearish zone floor define the zone thresholds.
- Signals: Enable regular divergence, hidden divergence and convergence independently. The zone filter applies to regular divergence and convergence, but not to hidden divergence. Include equal oscillator also allows divergence comparisons whose oscillator extremes differ by no more than 2 oscillator points.
- Display: Show or hide the stochastic window, price comparison lines, main-chart labels, oscillator comparison lines and arrows. Adjust signal line width. Resize the visible stochastic pane by dragging its divider.
- Panel: Choose from nine positions, adjust the size from 75 to 150 percent, and select a dark or light theme. Defaults are top right and 100 percent size, with the stochastic window visible.
- Notifications: Enable popup alerts, sound, mobile push notifications or email, and select a sound file. Notifications default to off. Mobile push and email require configuration in MetaTrader 5 under Tools > Options.
The indicator uses the current chart symbol and timeframe. Regular and hidden divergence are enabled by default; convergence is disabled. It does not place or manage trades.
Support is available through the product comments or MQL5 private messages.
