OPEN-SOURCE SCRIPT

Elliott Wave Auto S

144
๐ŸŒŠ ELLIOTT WAVE AUTO โ€” Automatic Elliott Wave Detection

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ“œ THE HISTORY

Ralph Nelson Elliott (1871-1948), an American accountant, spent his forced retirement analyzing 75 years of Dow Jones data... by hand. In 1938, he published "The Wave Principle", revealing that markets move in repetitive patterns of 5 impulse waves followed by 3 corrective waves (A-B-C).

What's often forgotten: Elliott worked primarily on MONTHLY and WEEKLY timeframes. A complete cycle could take months, even years. It was a strategy of PATIENCE, not scalping.

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐ŸŽฏ OUR APPROACH

This indicator attempts to stay as close as possible to Elliott's original method. The algorithm uses Pivot Point detection (ta.pivothigh / ta.pivotlow) to objectively identify tops and bottoms.

Unlike manual counting where 3 analysts give 3 different results, this method is:

โœ… Mathematical โ€” No subjective interpretation
โœ… Reproducible โ€” 100 traders = 1 single count
โœ… Automatic โ€” Real-time detection
โœ… Open source โ€” Nothing hidden, study it freely

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

โ›” ORANGE LABELS โ€” INVALIDATIONS

You will sometimes notice ORANGE labels with the โ›” symbol on your chart. These are not errors! They indicate that a fundamental Elliott rule has been violated, invalidating the current cycle.

Back in his time, Elliott established strict rules to validate a count. If any of these rules is broken, the cycle is no longer valid and we must start looking for a new starting point.

Here are the 3 fundamental rules applied by this indicator:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ๐Ÿ“– RULE 1: Wave 2 NEVER retraces 100% of Wave 1 โ”‚
โ”‚ โ”‚
โ”‚ If Wave 2 price exceeds the starting point of Wave 1, โ”‚
โ”‚ it wasn't a true Wave 1. โ”‚
โ”‚ โ†’ The indicator then reverses the trend (BULL โ†” BEAR) โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ๐Ÿ“– RULE 2: Wave 3 is NEVER the shortest โ”‚
โ”‚ โ”‚
โ”‚ Wave 3 is supposed to be the most powerful. If it's shorter โ”‚
โ”‚ than Wave 1 AND Wave 5, the count is invalid. โ”‚
โ”‚ โ†’ Orange label "5 โ›”" displayed, cycle cancelled โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ ๐Ÿ“– RULE 3: Wave 4 NEVER overlaps Wave 1 territory โ”‚
โ”‚ โ”‚
โ”‚ In an uptrend: Wave 4 low cannot drop below Wave 1 high. โ”‚
โ”‚ In a downtrend: Wave 4 high cannot exceed Wave 1 low. โ”‚
โ”‚ โ†’ Orange label "4 โ›”" displayed, cycle cancelled โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ’ก These invalidations are NORMAL and part of the method. They ensure that only cycles perfectly respecting Elliott's theory are counted. That's why you'll see few complete cycles โ€” exactly like in Elliott's time.

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ“Š HOW TO USE IT

โ–ธ Wave 1: Cycle start detected. Watch, don't act.

โ–ธ Wave 2: Potential ENTRY zone. The retracement is over,
Wave 3 (the most powerful) should follow.

โ–ธ Wave 3: The most powerful! Never trade against a Wave 3.
Let your profits run.

โ–ธ Wave 4: Second potential ENTRY zone for those who missed Wave 2.

โ–ธ Wave 5: Last impulse. Prepare your EXIT.
The impulse cycle is ending.

โ–ธ Waves A-B-C: Correction phase. Patience recommended.
Wait for the end of C for the next cycle.

โ–ธ Orange Label โ›”: Rule violated, cycle invalidated.
The indicator starts looking for a new cycle.

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ”” TOGGLEABLE ALERTS

Each wave has its own alert, individually toggleable in the settings:

๐ŸŒŠ Wave 1 โ€” Cycle start
๐ŸŒŠ Wave 2 โ€” Potential entry zone
๐ŸŒŠ Wave 3 โ€” The most powerful
๐ŸŒŠ Wave 4 โ€” Potential entry zone
๐ŸŒŠ Wave 5 โ€” Last impulse
๐Ÿ”„ Wave A โ€” Correction start
๐Ÿ”„ Wave B โ€” Corrective bounce
๐Ÿ”„ Wave C โ€” Correction end
โœ… Complete cycle

๐Ÿ’ก Tip: Enable only the alerts that match your strategy. For example, only "Wave 2" and "Wave 4" for entries, and "Wave 5" for exits.

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ“ SETTINGS

โ–ธ Move Size:
โ€ข Small = More signals, more noise (scalping)
โ€ข Medium = Balanced (intraday/swing) โ† Recommended
โ€ข Large = Fewer signals, more reliable (position)

Note: Sensitivity automatically adjusts based on your
timeframe for optimal results.

โ–ธ Labels: Display 1, 2, 3, 4, 5, A, B, C on the chart
โ–ธ Lines: Visually connect the waves
โ–ธ Fibonacci Ratios: Display each wave's ratio (optional)
โ–ธ Label Size: Small / Normal / Large per your preference

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐ŸŽจ COLOR CODE

๐ŸŸข Green = Bullish trend (BULL)
๐Ÿ”ด Red = Bearish trend (BEAR)
๐ŸŸฃ Pink/Purple = Corrective waves (A, B, C)
๐ŸŸ  Orange = Invalidation (Elliott rule violated)

โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

โš ๏ธ DISCLAIMER

Like in Elliott's time, complete 1-2-3-4-5-A-B-C cycles are RARE. This is normal and intentional.

The Elliott Wave method is a patience strategy that rewards those who know how to wait for perfect setups. The many invalidations (orange labels) prove that the indicator strictly respects the original rules.

If you're looking for dozens of signals per day, this method is probably not for you. But if you value quality over quantity, welcome.

Happy trading! ๐ŸŒŠ

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.