OPEN-SOURCE SCRIPT

True Strong Classical Support/Resistance Levels

Updated
This script is based on the approach of filtering signals by checking higher timeframes.
So basically setting higher numbers in "Strength Of Levels" option, will make the indicator check for support and/or resistance levels in timeframes higher than the current.
Unfortunately, I was forced to still use inefficient built-in functions pivothigh() and pivotlow(). I hope they fix them up soon!
I'm looking for any opinion about the idea and if you like any of my scripts, anything you send means a lot to me.

This script is published for the third time because of some moderators absurd behavior.
But thank heavens, the code is now more clean and of course the option "Strength Of Levels" accepts float numbers.
Release Notes
Major Update!
I replaced Pine Script built-in pivot functions with my own codes which lead to:

- Better adjustment of levels to wicks
- Different colored levels based on their reactions till now (Green: Just Support, Red: Just Resistance, Blue: Probably Both)
- Combining of nearby levels to avoid congestion on chart
- Ability to highlight even stronger (combined) levels

So check new options and send me your thoughts.
Release Notes
Small coding tweaks!
Release Notes
Count of levels on the chart has been increased.
Release Notes
Major Update!

Finally Pine Script added support for lines to arrays and made me to update some of my scripts like this one. So:
- Now user could define the count of most recent detected levels to be drawn on the chart
- Levels detection now works better than before
- Many levels which would be lost because of the language limitations are now fully present on the chart

Good Luck!
CLASSICclassicallevelspivotPivot PointsresistancesSNRsupportSupport and Resistancetimeframes

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer