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
arianmah
hell dear. I am using your automatic S/R SCRIPT
would u please advise which plot option will show the last swing. ? I want to illustrate only the last support and resist in script
great job
Reply
Nice work man !
Reply
Very nice, can I ask what is the proper doc type. I can not seem to get it formated correctly to function.
Reply
Nice, much appreciated :)
+2 Reply
excuse me sir, when using the high/low setting does this script repaint. I am sorry, i don't have much experience in this field
Reply
@ChawinV, S/R levels are simply the areas of high demand and supply. We either look for breakouts or reversals and trade accordingly. Please watch this video for a better understanding of Support and Resistances - https://www.youtube.com/watch?v=PuboYnBc0t8
+1 Reply
ChawinV getmohsin.py
@getmohsin.py, thank you sir, the video was most helpful
+1 Reply
@ChawinV, You are welcome bro. Happy to help!
Reply
arianmah getmohsin.py
@getmohsin.py,
Hi dear thanks for your favore
Its briliant
Just it would be so nice if you guid rookies like me with instruction how to trade with code
Is it based on fibonacci levels or volume trading?
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Get Help Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing TradingView Coins My Support Tickets Get Help Ideas Published Followers Following Private Messages Chat Sign Out