Elliott Wave [LuxAlgo]

The Elliott Wave indicator allows users to detect Elliott Wave (EW) impulses as well as corrective segments automatically on the chart. These are detected and displayed serially, allowing users to keep track of the evolution of an impulse or corrective wave.

Fibonacci retracements constructed from detected impulse waves are also included.

This script additionally allows users to get alerted on a wide variety of trigger conditions (see the ALERTS section below).



• "high" -> options high, close, maximum of open/close
• "low" -> options low, close, minimum of open/close


• The source and length are used to check whether a new Pivot Point is found.

• source = high/low, length = 10:
• There is a new pivot  high when:
- previous high is higher than current high
- the highs of 10 bars prior to previous high are all lower

• These pivot  points  are used to form the ZigZag lines, which in their turn are used for pattern recognition


The basic principles we use to identify Elliott Wave impulses are:

• A movement in the direction of the trend (Motive/Impulse wave) is divided in 5 waves (Wave 1 -> 5)
• The Corrective Wave (against the trend) is divided in 3 waves (Wave A -> C)
• The waves can be subdivided in smaller waves
Wave 2 can’t retrace more than the beginning of Wave 1
Wave 4 does not overlap with the price territory of Wave 1

Here we see an example:

Let's look at the development:

• 1 bar after point (5) a confirmed 5 Motive Wave pattern is found (1 -> 5; The 5 Waves can also be seen as one large Wave 1).
• Next, the script draws a set of Fibonacci lines, which are area's where the Corrective Wave potentially will bounce.

Here we see the fifth wave is getting larger, the previous highest point is updated, and the Wave 5 is larger than Wave 3:

(At this point, the pattern is invalidated, and it display as dotted)

Further progression in time:

At this point, a confirmed "3 Corrective Wave pattern" is found (a -> c)

When a new high has developed, a circle is drawn (in the same color of the lines)

However, when the bottom of the drawn box has breached, a red cross will be visualized.

Further progression:

Later on, a bearish  confirmed "5 Motive Wave pattern" is found (1 -> 5):

When a Corrective Wave becomes invalidated, the ABC pattern will display as dashed (not dotted):


Pine Script™ introduces methods!

• More information can be found here:
Pine Script™ v5 User Manual 👉 Methods
Pine Script™ language reference manual 👉 method


Dynamic alerts are included in the script, you only need to set 1 alert to receive following messages:

• When a new EW Motive Pattern is found ( Bullish /Bearish )
• When a new EW Corrective Pattern is found ( Bullish /Bearish )
• When an EW Motive Pattern is invalidated ( Bullish /Bearish )
• When an EW Corrective Pattern is invalidated ( Bullish /Bearish )
• When possible, a start of a new EW Motive Wave is found ( Bullish /Bearish )
Here is information how you can set these alerts()

Get Access to LuxAlgo indicators:

Join our 100k+ community:

All scripts & content provided by LuxAlgo are for informational & educational purposes only. Past performance does not guarantee future results.
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.


Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?