Borjas Tarh Horizontals
Automatically Plot Horizontals Support and Resistance.
In the Setting, you should optimize the values according to each time frame of the ticker.
Pivot Length : Number of bars to use to calculate pivot
Max Breaks : Maximum number of times a line can be broken before it's invalidated
Max Distance % : Maximum distance PA can move away from line before it's invalidated
Frontrun/Overshoot Threshold % : If PA reverses within this distance of an existing S&R line, consider it a Frontrun / Overshoot
You can copy it and make it better.