OPEN-SOURCE SCRIPT

Swing based support and resistance

This indicator provided here is for identifying swing-based support and resistance levels. It uses two swing lengths, which can be adjusted by the user, to identify swings in the price data. For each swing length, the script calculates the support level as the low of the swing if the trend is up, or the high of the swing if the trend is down. It then plots the support and resistance levels on the chart, along with buy and sell signals.

snapshot

The buy and sell signals are generated by comparing the current closing price to the support and resistance levels. If the closing price is above the support level, the script plots a buy signal. If the closing price is below the level, the script plots a sell signal.

To use the script, you would first need to add it to your trading platform. Once it is added, you can configure the swing lengths and other parameters to suit your trading style. You can then apply the script to a chart and begin using the support and resistance levels and buy and sell signals to make trading decisions.

Points to be noted while using the indicator:

# The script is designed to be used on a daily chart. However, you can also use it on other timeframes, such as weekly or monthly charts.

# The swing lengths that you choose will depend on your trading style. If you are a swing trader, you may want to use longer swing lengths. If you are a day trader, you may want to use shorter swing lengths.

# Remember, the support and resistance levels generated by the script are not exact price points. They are rather zones where demand and supply can change. Therefore, you should always use other technical analysis tools and indicators to confirm your trading decisions.

# Overall, the script is a useful tool for identifying swing-based support and resistance levels. It can be used by traders of all experience levels to generate trading ideas and improve their trading performance.




To use the swing-based support and resistance indicator with respect to price, you can follow these steps:



=> Identify the support and resistance levels that have been generated by the indicator.

=> Look for price action that is taking place near these levels.

=> If the price is above the level, look for bullish reversals or continuations.

=> If the price is below the level, look for bearish reversals or continuations.


For Example,

=> Bullish reversal: The price is above the level and forms a bullish candlestick pattern, such as a bullish hammer or engulfing pattern.

=> Bullish continuation: The price is above the level and bounces off of the level.

=> Bearish reversal: The price is below the level and forms a bearish candlestick pattern, such as a bearish hammer or engulfing pattern.

=> Bearish continuation: The price is below the level and rejects the level.

$$ You can also use the indicator to identify potential trading entry and exit points. For example, you could enter a long trade when the price breaks above a resistance level and exit the trade when the price retraces to the resistance level. Or, you could enter a short trade when the price breaks below a support level and exit the trade when the price rallies to the support level.

This swing-based support and resistance indicator is just one tool that you can use to trade. You should always use other technical analysis tools and indicators, such as price action and trend analysis, to confirm your trading decisions.

Additionally:

=> Be aware of the overall trend direction. If the trend is up, you should be looking for bullish reversals or continuations. If the trend is down, you should be looking for bearish reversals or continuations.

=> Use a stop loss order to limit your risk on each trade.

=> Consider using a position sizing strategy to manage your risk.

=> Do your own research and backtest any trading strategy before using it in a live trading environment.



Follow us for timely updates regarding future indicators and give it a like if you appreciate the indicator.
daytradingindicatorbasedtradingindicatorsPivot points and levelssentimentstrategyswingtradeswingtradingtradesetuptradingsystemTrend Analysis

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?


Also on:

Disclaimer