TradingView
Trendoscope
2023εΉ΄1月5ζ—₯午後4ζ™‚27εˆ†

Harmonic Patterns Based Trend FollowerΒ 

Ethereum / TetherUSBinance

θ©³η΄°

β‹…
Earlier this week, published an
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


When price breaks over the zones


🎲 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.

γƒͺγƒͺγƒΌγ‚ΉγƒŽγƒΌγƒˆ

β‹…
Updated code to have more input options to determine bullish and bearish range.

γƒͺγƒͺγƒΌγ‚ΉγƒŽγƒΌγƒˆ

β‹…
Update signature :)

γƒͺγƒͺγƒΌγ‚ΉγƒŽγƒΌγƒˆ

β‹…
Added option to use log scale.
γ‚³γƒ‘γƒ³γƒˆ
Mustermann84
β‹…
So powerful in Multitimeframe!
Trendoscope
β‹…
@Mustermann84, thanks my friend. Still lot to explore in these lines for me 😊
PineCoders
β‹…
tttdiff
β‹…
YOU THE MAN! I will test it and let you know how great it is. Thank you!
Trendoscope
β‹…
@tttdiff, thanks πŸ™
KioseffTrading
β‹…
Trendoscope
β‹…
@KioseffTrading, thanks again :)
luckyAccount10206
β‹…
Hi..what would be the ideal timeframe to use this?? 1hr as shown in screenshot?
Trendoscope
β‹…
@luckyAccount10206, try it out
PHB_USDT
β‹…
I want to use the indicator, how do I do it?
θ©³η΄°