Swing Leg Odds
- Göstergeler
- Sürüm: 1.1
- Etkinleştirmeler: 5
Swing Leg Odds shows where the current swing stands. It draws two swing sizes on the same chart:
- a big swing (K, thick lines);
- a small swing (k, thin lines).
A swing ends when price comes back K × ATR from its running extreme, and the next leg starts there.
For the live leg of each swing size you see:
- **Pullback stages** (15%, 25%, 40%, 60%, 75% of the reversal size), each with the share of past legs whose extreme held after the same pullback.
- **Likely top / bottom.** Drawn when the pullback reaches 75%. The panel shows how often this warning was right and how many bars earlier it came.
- **Reversal level.** A close beyond it confirms the extreme and starts a new leg.
- **Fibonacci targets** of the previous leg (0.618 to 6.854), each with the share of past legs that reached it.
- **Birth close.** The close where the live leg was confirmed; the ATR levels are measured from it.
- **Higher timeframe direction** (M15 to W1), and a leg colour that shows whether the leg runs with or against a multi-timeframe swing structure.
**Where the numbers come from**
Every percentage is counted from the completed legs of the chart the indicator runs on. No fixed tables are built in, so the indicator adapts to each symbol and timeframe.
The counts grow leg by leg, so every level only uses legs that ended before it. Probabilities appear once 100 legs are available; before that, the levels are drawn and the panel shows "learning".
The numbers describe how past swings behaved. They are not a forecast and not a trading signal.
**Setup examples** (how to read the drawings)
- **A. Pullback inside the big leg.** The big leg is rising and the small swing pulls back to its birth close. The alert reports both directions; a blue point marks an alert in the same direction as the big leg.
- **B. Late in the leg.** The big-leg pullback passes 60–75%. The panel shows how often an extreme held at that stage on this chart, and the reversal level shows where the leg would end.
- **C. Targets of a new leg.** After a reversal, the Fibonacci targets of the previous leg are drawn with the share of past legs that reached each one.
**Alerts**
When price comes back to the birth close of the small swing (after first moving at least 0.5 × ATR away), the indicator can:
- open an alert window;
- send a push notification to MetaTrader mobile;
- save a chart screenshot.
The message gives the direction of the big leg, the direction of the small leg, and whether they agree. A filter keeps only same-direction or only opposite alerts. Past alert points can be marked on the chart.
**Settings**
- Two swing sizes: preset list (1.618 to 17.944) or any custom value; ATR length; wicks or closes.
- Every drawing can be switched on or off for each swing size.
- Colours, widths, fonts, panel and legend corners.
- Chart right margin for the labels.
- Number of bars to calculate (default 300,000, fast on M1).
**Notes**
- Works on any symbol and timeframe: forex, metals, indices, crypto.
- Higher timeframes need enough history for 100 legs before probabilities appear.
- In the Strategy Tester the free demo runs in visual mode.
- Optional: the free utility "Swing Leg Odds Telegram" forwards the saved alert screenshots to a Telegram chat.

