I will provide the open code of the indicator that filters different types of harmonic patterns: ABCD - Bat - Alt Bat - Gartley - Butterfly - Crab - DeepCrab - Shark - Zero Five for Trading View
PS: When all the conditions of the legs are met, their harmonic pattern and name will be plotted
Characteristics
A. Select Length: This applies to the Standard and Advanced version; you can select what Length (Zig-Zag) you want to be displayed on the graph
B. Length Types: Select the length (period) of each Zig-Zag
C. Visuals: Bullish, Bearish Patterns, Fill, Style and Thickness of the lines
C. Take Profit: Establish the Take Profit you want
D. Set "X" Range: The ranges of each leg, in effect, the conditions that each leg must meet for its harmonic pattern to appear on your graph
E. Projection Type: Establish in which leg you want the calculation to be carried out to calculate the Take Profit
F. Stop Loss: Set your Stop Loss
G. Anticipate From Point C: When leg C exceeds B, you will be able to filter where the PRZ is located, without having to wait for the last condition to be met.