Pilihan Editor
OPEN-SOURCE SCRIPT
Telah dikemas kini

Harmonic Patterns Based Trend Follower

110โ€ฏ079
Earlier this week, published an idea on how harmonic patterns can be used for trend following. This script is an attempt to implement the same.

๐ŸŽฒ Process
๐ŸŽฏ Derive Zigzag and scan harmonic patterns for last 5 confirmed pivots
๐ŸŽฏ If a pattern is found, highest point of pattern will become the bullish zone and lower point of the pattern will become bearish zone.
๐ŸŽฏ Since it is trend following method, when price reaches bullish zone, then the trend is considered as bullish and when price reaches bearish zone, the trend is considered as bearish.
๐ŸŽฏ If price does not touch both regions, then trend remains unchanged.
๐ŸŽฏ Bullish and bearish zone will change as and when new patterns are formed.

๐ŸŽฒ Note
Patterns are not created on latest pivot as last pivot will be unconfirmed and moving. Due to this, patterns appear after certain delay - patterns will not be real time. But, this is expected and does not impact the overall process.

When new pattern formed
https://www.tradingview.com/x/gGYDQ0xq/

When price breaks over the zones
https://www.tradingview.com/x/rJjgkJ0Y/

๐ŸŽฒ Output
๐ŸŽฏ Patterns formed are drawn in blue coloured lines. Due to pine limitation of max 500 lines, older patterns automatically get deleted when new ones come.
๐ŸŽฏ Bullish Zone and Bearish Zone are plotted in green and red colours and the zone will change whenever new pattern comes along.
๐ŸŽฏ Bar colors are changed according to calculated trend. Trend value can be 1 or -1 based on the current trend. You can also find the value in data window.
๐ŸŽฏ For simplicity purpose, input option for selection of specific patterns are not provided and also pattern names are not displayed on the chart.

Nota Keluaran
Updated code to have more input options to determine bullish and bearish range.
syot kilat
Nota Keluaran
Update signature :)
Nota Keluaran
Added option to use log scale.

Penafian

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.