OPEN-SOURCE SCRIPT
更新済 Elliott Wave Auto (Impulse + Correction) — stable delete

Automatic pivot detection: The script identifies swing highs and swing lows using ta.pivothigh and ta.pivotlow.
Impulse wave labeling (1–5):
Detects 5 alternating pivots and labels them as waves 1 to 5.
Uses green/red labels for impulse and correction legs.
Connects waves with blue lines for visual clarity.
Corrective wave labeling (A–B–C):
Detects the next 3 alternating pivots after wave 5.
Labels them as A, B, C with orange lines connecting them.
Dynamic cleanup:
Stores labels and lines in arrays.
Deletes previous drawings automatically before redrawing, keeping the chart clean.
Optional pivot markers:
Plots tiny triangles for detected pivots (green for lows, red for highs).
Information table:
Displays the direction (Bullish/Bearish) and percentage move of the 1–5 impulse waves.
Pine Script v5 compliant:
Uses str.tostring() and array-based deletion to avoid tostring() or line.deleteall() errors.
If you want, I can also add an alert feature to notify you when a full impulse + corrective wave pattern completes. This makes it actionable for trading.
Impulse wave labeling (1–5):
Detects 5 alternating pivots and labels them as waves 1 to 5.
Uses green/red labels for impulse and correction legs.
Connects waves with blue lines for visual clarity.
Corrective wave labeling (A–B–C):
Detects the next 3 alternating pivots after wave 5.
Labels them as A, B, C with orange lines connecting them.
Dynamic cleanup:
Stores labels and lines in arrays.
Deletes previous drawings automatically before redrawing, keeping the chart clean.
Optional pivot markers:
Plots tiny triangles for detected pivots (green for lows, red for highs).
Information table:
Displays the direction (Bullish/Bearish) and percentage move of the 1–5 impulse waves.
Pine Script v5 compliant:
Uses str.tostring() and array-based deletion to avoid tostring() or line.deleteall() errors.
If you want, I can also add an alert feature to notify you when a full impulse + corrective wave pattern completes. This makes it actionable for trading.
リリースノート
Update script with alerts リリースノート
FIXED ISSUEオープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、この作者はスクリプトのソースコードを公開しているので、その内容を理解し検証することができます。作者に感謝です!無料でお使いいただけますが、このコードを投稿に再利用する際にはハウスルールに従うものとします。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。