Patternsmart

Swing high low support & resistance

Patternsmart Updated   
The Swing indicator will plot dot lines that represent the swing points based on the swing length input(number of bars to the left and right of the swing point).

Swing highs and lows can be used by traders to identify possible areas of support and resistance, which can then be used to determine optimal positions for stop-loss or profit target orders. If an indicator fails to create a new swing high while the price of the security does reach a new high, there is a divergence between price and indicator, which could be a signal that the trend is reversing.

Swing highs and swing lows are earlier market turning points. Hence, they are natural choices for projecting support and resistance levels. Every swing point is a potential support or resistance level. However, for effective trading, focus on major swing highs and lows.
Release Notes:
Update the title of plot, it's easier to set custom alert now.
Release Notes:
Minor update
Release Notes:
Upgrade to Ver 4.
Release Notes:
Add 2 new inputs as the source date of Swing high and low.
Now we can use open/high/low/close/hl2/hlc3/ohlc4/hlcc4 to get Swing high and low.

Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?