Elliott Wave with prediction
- Indicatori
- Versione: 1.0
- Attivazioni: 20
Discover where the current Elliott Wave may terminate using historical market behavior.
Stop relying exclusively on traditional Fibonacci projections.
This advanced MetaTrader 5 indicator automatically identifies Elliott Wave structures, searches historical price movements for similar patterns, and estimates potential wave termination levels based on how those historical movements actually developed.
What makes it different?
Unlike conventional Elliott Wave indicators, this tool doesn't simply project theoretical Fibonacci targets.
It studies comparable historical market movements and shows:
-
Adaptive Elliott Wave Counting: Automatically identifies the developing Elliott Wave structure.
-
Historical Price Targets: Estimates potential wave termination levels using similar historical movements.
-
Historical Occurrence Rates: See what percentage of comparable historical patterns reached each target.
-
Wave Failure Detection: Identifies when historical patterns suggest the current wave count may become invalid.
-
Historical Pattern Visualization: Inspect the previous market movements supporting the analysis.
More than a traditional Elliott Wave indicator
Know which wave is developing, where similar historical movements have terminated, and when the current Elliott Wave structure may be at risk.
A statistical approach to Elliott Wave analysis, directly on your MT5 chart.
Important: Historical occurrence rates are not guaranteed future probabilities. This indicator is an analytical tool, not an automated trading signal.
1. Overview
This indicator identifies the active Elliott Wave structure, estimates where the current wave is likely to terminate, and evaluates how frequently similar historical price movements have reached that level. It also provides an early warning when the current Elliott Wave count is likely to become invalid.
Unlike conventional Elliott Wave indicators that rely primarily on textbook Fibonacci projections, this system measures wave behavior against the chart's own historical price swings.
Traditional Elliott Wave tools generally use fixed Fibonacci relationships to project targets, such as:
-
Wave 3: 1.618 times the length of Wave 1.
-
Wave 4: 0.382 retracement of Wave 3.
-
Wave 5: 1.0 times the length of Wave 1.
However, these theoretical projections do not necessarily reflect how the particular instrument has behaved historically.
This indicator addresses that limitation by identifying the current wave structure and comparing it with similar historical swings on the same chart. It then determines where those comparable movements typically terminated.
The most frequently observed termination level becomes the projected next target. Each target is accompanied by a historical probability representing the proportion of comparable swings that reached that level.
For example, if 40% of similar historical movements reached 1620, that level is displayed with an approximate 40% historical occurrence rate.
If most comparable movements continued beyond the expected invalidation point, the indicator displays a warning instead of presenting an ordinary target.
2. Key Features
A. Adaptive Elliott Wave Counting
The indicator identifies the active Elliott Wave structure using historical price swings and established Elliott Wave rules.
It recognizes Waves 0 through 5 and evaluates the validity of each potential wave structure.
B. Chart-Specific Historical Targets
Instead of relying exclusively on predefined Fibonacci extensions and retracements, the indicator examines historical swings that played a similar structural role.
It identifies how far those movements progressed and where they most frequently terminated.
This produces adaptive targets based on the instrument's own historical behavior.
C. Historical Probability Analysis
Every projected level includes information about how frequently comparable historical movements reached that level.
For example:
-
40% means 40% of comparable historical swings reached that level.
-
60% means 60% reached that level.
-
Approximately 100% indicates that nearly all comparable swings reached it.
A tilde (~) before a percentage indicates that the calculation is based on fewer than 10 historical observations. Such percentages should therefore be interpreted cautiously.
Importantly, these percentages represent historical occurrence rates, not guaranteed future probabilities.
D. Wave Failure Detection
A red cross (×) identifies situations where the majority of comparable historical movements violated the current Elliott Wave count.
Rather than displaying a potentially misleading price target, the indicator highlights the level where the current wave structure is likely to become invalid.
The accompanying legend explains the reason for the warning.
E. Historical Pattern Visualization
The indicator allows users to scroll backward through the chart to examine the historical swings used in its calculations.
Each comparable movement is highlighted in a frame and numbered according to its corresponding wave structure.
Captions explain the historical pattern, including examples such as:
-
"SIMILAR PATTERN – Wave 3 reached 1.43 × Wave 1."
-
"SIMILAR PATTERN – Wave 2 broke the count."
This makes the calculations more transparent and allows users to visually verify the historical comparisons.
3. How to Read the Indicator
The indicator provides several visual elements:
1. Green Numbers (0–4): Active Wave Count
Green numbers represent the current Elliott Wave count. A line connects the latest completed swing point to the current market price.
2. Purple Box: Next Expected Target
The purple box displays the next projected wave termination level. The number beside it indicates how many comparable historical movements reached that level.
3. Historical Percentage
The percentage represents the share of comparable historical swings that reached at least the specified price level.
A tilde (~) indicates that fewer than 10 historical observations support the calculation.
4. Fan-Shaped Distribution
The fan represents the middle 50% of the historical termination levels. It provides a visual indication of where the central range of comparable movements ended.
5. Red Cross (×): Wave Invalidation Warning
A red cross indicates that most comparable historical movements violated the current wave count.
When this happens, the indicator identifies a potential structural failure rather than displaying a conventional price target.
6. Dashed Fibonacci Projections
Dashed lines labelled 3?, 4?, and 5? represent traditional Elliott Wave projections:
-
Wave 3 = 1.618 × Wave 1.
-
Wave 4 = 0.382 of Wave 3.
-
Wave 5 = 1.0 × Wave 1.
These projections are not directly used to train the historical model. They simply illustrate the theoretical price structure implied by the current Elliott Wave count.
7. Historical Swing Comparisons
Users can scroll backward to identify the historical price movements used in the calculations.
Each movement is displayed inside a light frame, numbered according to its wave structure, and accompanied by a descriptive caption.
Examples include:
-
Wave 3 ran 1.43 times the length of Wave 1.
-
Wave 2 violated the expected Elliott Wave structure.
Movements that overlap other patterns may not receive a separate visual frame, but they are still included in the calculations.
The term "mirrored" indicates that upward and downward movements are evaluated together.
8. Indicator Legend
The legend provides a written explanation of the current wave count, projected termination levels, historical sample size, and potential invalidation points.
Hovering over the next target reveals additional information about the historical zigzag measurements and the number of observations supporting the projection.
4. How the Indicator Works
A. Identifying Price Swings
The indicator first identifies seven historical zigzag movements using closed candles.
Swing sensitivity is determined by a threshold ranging from 1.5 to 6 ATR, using a 14-period Average True Range (ATR).
A swing is considered complete when price moves against the prevailing direction by the specified ATR threshold.
This process establishes the structural price movements used for Elliott Wave identification.
B. Elliott Wave Identification Rules
The indicator evaluates the most recent swing points against established Elliott Wave rules.
Wave 2:
Wave 2 must retrace between 0.382 and 0.786 of Wave 1.
Wave 3:
Wave 3 must move beyond the endpoint of Wave 1 and be at least equal to its length.
Wave 4:
Wave 4 must retrace between 0.236 and 0.618 of Wave 3 while remaining beyond the endpoint of Wave 2.
Additional conditions require each wave to last a minimum number of candles and the overall structure to be sufficiently developed for reliable identification.
When multiple valid structures exist, the indicator selects the structure associated with the largest zigzag movement.
A basic Wave 0–1 structure is used only when no more advanced valid wave count is available.
C. Learning From Historical Price Movements
Each identified zigzag movement maintains its own historical database of comparable price movements.
The model categorizes historical movements according to their structural role:
-
Wave-3-like movements: Impulsive legs following a Wave 2 retracement between 0.382 and 0.786 that move beyond the previous impulsive leg's endpoint.
-
Wave-2-like movements: Corrective pullbacks measured as a proportion of the preceding impulsive leg.
-
Wave-4-like movements: Corrective pullbacks measured relative to the preceding Wave 3.
The model measures how far each historical movement progressed using a logarithmic scale.
This allows it to compare price movements of different absolute sizes.
D. Historical Similarity Model
The indicator uses different statistical approaches depending on the wave being evaluated.
For Waves 2 and 4:
The model uses a k-nearest-neighbours approach.
It identifies the nine historical pullbacks most similar to the current movement based on three characteristics:
-
The size of the preceding leg, measured in ATR.
-
The duration of the movement, measured in candles.
-
The retracement or extension relative to the preceding leg.
Each characteristic is normalized according to its statistical spread before the similarity comparison.
For Wave 3:
The model evaluates all historical Wave-3-like impulsive movements identified on the same zigzag structure.
For Wave 5:
Historical Wave 5 examples are generally insufficient for reliable statistical analysis.
Therefore, the indicator uses the traditional Elliott Wave projection of 1.0 times Wave 1, measured from Point 4.
It explicitly identifies this projection as a textbook-based estimate rather than a statistically learned target.
E. Conditional Historical Probability
One of the most important features is that the indicator evaluates historical movements from the current price's position, rather than from the beginning of the wave.
For example, suppose the current Wave 3 has already extended beyond the 1.272 Fibonacci level.
The indicator then examines only those historical Wave 3 movements that also reached 1.272.
It calculates how many of those movements subsequently continued to the 1.618 extension.
This creates a conditional historical probability rather than a simple projection from the beginning of the wave.
Consequently:
-
Previously reached levels receive a tick mark.
-
Future projected levels display historical percentages.
-
The percentage of the next target can change as the current price progresses.
This approach provides a more context-sensitive assessment of the remaining wave structure.
F. Determining the Next Expected Termination Level
The next target is determined by identifying where the majority of comparable historical movements terminated.
For Waves 2 and 4, a movement that retraces beyond the beginning of the preceding wave invalidates the current structure.
If more than half of the comparable historical movements violated that boundary, the indicator displays a red cross (×) instead of a conventional target.
This helps distinguish between a historically supported price projection and a wave structure that is statistically prone to failure.
5. Practical Examples
Example 1: ETH/USDT – Daily Timeframe
Current Structure: Wave 3 downward from the 2450 high.
The indicator identified seven comparable historical downward movements that had progressed as far as the current price.
Their historical outcomes were:
-
Three movements continued to reach 1620.
-
Two movements reached 1469.
-
One movement reached 1255.
The next expected termination level is therefore 1620, which was reached by approximately 40% of the comparable historical movements.
The indicator also displays the traditional Elliott Wave projections:
-
Wave 4? at 1897.
-
Wave 5? at 1469.
The current Elliott Wave count becomes invalid above 2807.
Example 2: SOL/USDT – 4-Hour Timeframe
Current Structure: Wave 4 upward following the decline to 67.41.
The indicator identified five comparable historical corrective movements.
Their outcomes were:
-
All five movements reached 76.07.
-
Three movements continued to 78.28.
Therefore, 78.28 becomes the next expected termination level, supported by approximately 60% of the historical observations.
The current Wave 4 structure becomes invalid above 85.85, which represents the endpoint of Wave 2.
After Wave 4 completes, the textbook Wave 5 projection is 71.06.
Example 3: BTC/USDT – Daily Timeframe
Current Structure: Wave 2 downward following the July–September rally.
The current correction has already exceeded the 0.786 retracement level.
The indicator identified five comparable historical pullbacks that reached a similar retracement depth.
All five continued below Point 0, which was located at 57,737.
Consequently, the indicator does not display a conventional target. Instead, it places a red cross (×) on the invalidation level.
The approximately 100% historical failure rate is marked with a tilde (~) because the sample consists of fewer than 10 observations.
6. Key Advantages and Limitations
Advantages
-
Adaptive analysis: Targets are derived from the instrument's own historical price behavior.
-
Historical validation: Every projected level is supported by comparable historical movements.
-
Conditional probability: Calculations account for how far the current wave has already progressed.
-
Early failure detection: The indicator highlights situations where historical patterns frequently violate the current wave count.
-
Transparency: Historical comparisons can be inspected directly on the chart.
-
Reduced dependence on fixed projections: The indicator does not assume that every instrument will follow identical Fibonacci relationships.
Limitations
-
Historical patterns do not guarantee future market behavior.
-
Small sample sizes can produce unstable statistical percentages.
-
Wave identification depends on ATR-based swing sensitivity.
-
Wave 5 projections rely on textbook Elliott Wave proportions because sufficient historical examples are generally unavailable.
-
Market regime changes may reduce the relevance of previously observed patterns.
-
The indicator should be used as an analytical tool rather than an independent trading signal.
7. Final Summary
This Elliott Wave indicator combines traditional Elliott Wave structural rules with historical pattern recognition and statistical analysis.
Instead of simply projecting where a wave should terminate according to textbook Fibonacci ratios, it investigates how similar price movements have actually behaved on the same chart.
Its primary objective is to answer three important questions:
-
Which Elliott Wave is currently developing?
-
Where have comparable historical movements most frequently terminated?
-
How likely is the current wave structure to remain valid or break down?
By combining adaptive
