getmohsin.py

Automatic Support & Resistance

The indicator attempts at automatic detection of support and resistance levels by identifying large swings/ pivots in historical price action. These tops and bottoms in price action show where lots of buyers or sellers came into the market and might act as future levels of support or resistance. By default, the code detects the last 3 significant swing highs and the last 3 swing lows. It then places lines on the chart to highlight those levels.

Once you are comfortable with the code base and how the indicator operates, you may wish to expand upon it. One obvious addition to make would be inputs for the "Left Bars", "Right Bars" and "Quick Right" variables so that you can tune the indicator according to your own taste.

Feel free to tweak the code and let everyone know in the comment section if you are able to improvise it.

Happy trading:-)
Release Notes: This is an updated version of existing "Automatic Support & Resistance"

This version will allow you to draw Automatic S/R levels based on "Close values" or "High/Low values"

I personally find S/R levels with "Close values" to be are more precise and effective while trading breakouts, hence the need for the update.

Please let me know your thoughts in the comments section below.
Release Notes: Publishing version 0.2 with the correct display chart
Release Notes: Correcting some mistakes. Apologies for that :)
Remove from Favorite Scripts Add to Favorite Scripts

Comments

Hey man thanks for this! Will definitely use this as a compliment to my Reversal Strategy!
Reply
@getmohsin.py
How do i make this static and only want to use 1 Hour tmeframe for multiple support and resistance and keep same s/r for smaller time frame?
By the way cool script.
Reply
very nice sir thank you
Reply
Hello , why cant this script does not work in TOS? Do you have anyother version for TOS? Please advise. Thanks
Reply
dhman2012 rahikhan
@rahikhan, Don't mean to sound like a dick, but TOS uses a different language than Tradingview. I'd recommend doing some research before demanding things. We should be grateful to these devs that they're providing free help to us and doing some research on our part shows that respect to them
Reply
rahikhan dhman2012
@dhman2012, no idea how asshole like you find my comment is disrespected. If you asshole don't understand English go back ur country and drink some cow's pee. Little garbage
Reply
dhman2012 rahikhan
@rahikhan, Oh look dimwit knows how to type some English and knows some curse words. I'm so scared now 🤣 Thank you for further proving your stupidity, you little cockalorum! Btw, I'd recommend tightening up your grammar before you try to insult someone, f---ing mooncalf. Not even worth responding to dipsticks like this.
Reply
rahikhan dhman2012
@dhman2012, u r right my dick. I always being naked when fucked your mama, same way when I write for bitch like u stupid...no Grammer to read my servent and thats my style. you khankir pola can't do good work then stay off....otherwise u will be fucked again aiam on the tradingview street.
Reply
dhman2012 rahikhan
@rahikhan, Well if it isn't fat stinking billygoat billyboy! Next time you try to insult someone learn how to type properly 😂 If I'm ever in your country I'll make sure to give you mom/ wife/ sister a little more when they beg. Hopefully that'll be enough to send you to a decent school 🤣 I want nothing to do with their stinky p***s though. You can do whatever you want with them, but once you're done, toss them to the street for the next incestophile 🤣 And if you feel like showing off your idiocy, remember you have your whole life to be an idiot. Why not take today off? 😂 Time to move on from this conversation before I catch whatever stupid disease you've got
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out