Ballast RSI Divergence
- 지표
- 버전: 1.0
- 활성화: 5
RSI divergence with a fair test. Ballast RSI Divergence finds regular and hidden divergence between price and RSI at confirmed swing highs and lows, draws it on the price chart, alerts you, and its panel trade-tests every past divergence on your chart, spread included, against the same trade taken at nearby bars without one. You see whether divergence adds anything on this symbol and timeframe, or whether any entry would have done the same.
Divergence is one of the most quoted signals, and one of the least measured. A win rate alone says little: part of it comes from the trade shape and the market's drift. So every divergence trade is compared with control trades: the same direction and the same stop distance, entered 3, 7 and 13 bars later at bars without a divergence. In our own study with default settings (8 markets and timeframes, 2R target, spread included) regular divergence averaged -0.05R per trade and its control trades -0.03R; hidden divergence -0.21R against -0.14R. Neither beat the control. On your symbol it may be better or worse, and the panel tells you which, with a luck check and a check that the result still holds in the most recent part.
On the chart
- Regular divergence (R): price makes a lower swing low while RSI makes a higher one (bullish), or a higher swing high with a lower RSI (bearish). Hidden divergence (H): the other way round, usually read as trend continuation. Each can be switched off.
- Confirmed swing points: a swing low or high needs 3 bars on each side (input), so a divergence appears 3 bars after the swing point, when that bar closes, and then never moves or disappears (no repaint). Checked bar by bar in the Strategy Tester (see Tested).
- Lines on the price chart between the two swing points (solid = regular, dotted = hidden) with the letter R or H, an arrow on the bar that confirms the divergence, and a tooltip with both prices and RSI values.
- Test panel: trades, win %, average result in R, control trades and the difference for regular, hidden and all divergences, with a verdict: too few, no better, luck? (z below 2), faded (not better recently) or edge. Entry at the next bar's open, stop 0.1 ATR beyond the swing point, target 2R (inputs); the spread is paid on every trade.
- Alerts when a divergence is confirmed: pop-up, sound, push to your phone, e-mail.
- For your EA: buffer 2/3 = bullish/bearish divergence on the closed bar (1 regular, 2 hidden), 4/5 = stop price for a buy/sell at the next open, 6 = RSI, 7 = ATR. Values of a closed bar never change.
How to use
- Attach it to a chart. The panel tests the divergences of the last 5,000 bars (input); more history needs a higher "Max bars in chart" in the terminal settings.
- Trade divergence as you do now, and look at the panel before you trust it on a symbol and timeframe. Change the RSI period, the swing size, the distance between swing points, the target or the stop and the panel recalculates. If you try many settings and keep the best one, part of what you see is luck: the control trades and the check on the most recent part (faded) are there to catch that.
- Free demo: run it in the Strategy Tester in visual mode on any symbol before you buy.
Tested
- MetaTrader 5 Strategy Tester, 6 cases (EURUSD H1, GOLD H1, GBPUSD M15, US_30 H4, USDJPY D1, BTCUSD M30, with different settings): the buffers of 55,939 bars were recorded when each bar closed and compared with the final values: 0 changed.
- An independent program recalculated RSI, swing points, divergences, stops and every divergence and control trade (3,623 trades on 159,543 bars) and the panel numbers from the raw prices: identical in every case.
- Market-style check on 8 symbols and timeframes: 0 errors, divergences in every case.
Good to know
- Results are measured with the bars of this chart: when one bar reaches both the stop and the target, it counts as the stop; a gap through the stop fills at the open.
- Trades close in time are related, so treat the z value as a guide, not as proof. Past results do not guarantee future results. This is an indicator: it does not trade.
Inputs
- RSI period: 14
- Swing point: bars on each side: 3
- Swing points at least / at most N bars apart: 5 / 60
- Regular divergence, hidden divergence: on, on
- ATR period (stop buffer): 14
- Target (R = distance to the stop): 2.0
- Stop beyond the swing point (x ATR): 0.1
- Test divergences of the last N bars: 5000
- Recent part checked separately (% of the bars): 30
- Include the spread: on
- Panel, divergence lines on the last N bars, font size, panel corner
- Alerts: pop-up, sound, push, e-mail
Works well with
- Ballast Candle Patterns: free: candle patterns with the same fair test
- Ballast Trend Signals: trend line with arrows that trade-test themselves
- Ballast Fair Value Gaps: fair value gaps tested against random zones of the same size
- Blog: Fair value gaps and RSI divergence vs a fair control: the full study behind this indicator, market by market
