▶ Derive based on Length and Source
▶ Based on the Loopback settings devise a pattern string based on predetermined language which correlates all the within the given range.
▶ Preserve pattern in an array along with bar index
▶ Check if the pattern already exists in the array before inserting. If yes, retrieve the bar information and date on which the same pattern repeated.
Allows you to select source and length and also number of to be considered for pattern matching
If pattern found, triangle markers are placed the bar where pattern is matched. Mousover on these triangles will provide details on when did the last time the similar movement happened.
These are based on movements which are making HH,HL, LH and LL and probably plenty of improvements can be done. At this stage this is pure experimental and cannot be used for trades in any way.
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
Join tradingview: https://www.tradingview.com/gopro/?share_your_love=sudh