mrhashem

Borjas Tarh Horizontals S/R

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.
Open-source script

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.

Want to use this script on a chart?
Without Risk and Position Management, You WILL Lose Money.

Comments

great bro :)
+1 Reply
Thanks for the effort! Why do I get these errors when I try to save to the Chart?

line 88: The function 'anonym_function_0' should be called on each calculation for consistency. It is recommended to extract the call from the ternary operator or from the scope.

line 88: The function 'anonym_function_1' should be called on each calculation for consistency. It is recommended to extract the call from the ternary operator or from the scope.

Line 87: isbreakfailure() =>
Line 88: issfp(sr01) ? true : issfp(sr02) ? true : issfp(sr03) ? true : issfp(sr04) ? true : issfp(sr05) ? true : issfp(sr06) ? true : issfp(sr07) ? true : issfp(sr08) ? true : issfp(sr09) ? true : issfp(sr10) ? true : issfp(sr11) ? true : issfp(sr12) ? true : issfp(sr13) ? true : issfp(sr14) ? true : issfp(sr15) ? true : isfros(sr01) ? true : isfros(sr02) ? true : isfros(sr03) ? true : isfros(sr04) ? true : isfros(sr05) ? true : isfros(sr06) ? true : isfros(sr07) ? true : isfros(sr08) ? true : isfros(sr09) ? true : isfros(sr10) ? true : isfros(sr11) ? true : isfros(sr12) ? true : isfros(sr13) ? true : isfros(sr14) ? true : isfros(sr15) ? true : false
Reply
Is this working for you?
I cannot set it up for 30min timeframe.
Please help.
Reply
mrhashem TarikO
@TarikO, You should play with the inputs to find what is the best numbers for each timeframe.
Reply