OPEN-SOURCE SCRIPT

Support and Resistance by CainKellye

Atualizado
Check out my automatic support and resistance indicator that uses the EMA of price change * relative volume as the bases of pivot search.
It also tells the strength of the support and resistance lines calculated using a 4 times quicker EMA and using its distance from the slower one.
The strongest plotted line has the maximum opacity and the weakest has the minimum opacity inside the given range.

This calculation results in an organic detection of the support and resistance prices.

  • You can set the distance range in percentage you want to have lines calculated around the current price.
  • You can set the lines gravity distance inside which they are snapped together: the stronger line pulls the weaker to it by using strength weighted average for the new price value.
  • You can increase the minimum opacity value in case you only see few lines (but the maximum is 15)
  • You can change the used price for the lines to Close or High/Low but recommended is to use the average of those two (default)


The distances multiplier helps to get a birds eye view easily when using 4H (or higher) chart and a separate one to use on Daily / Weekly / Monthly for even broader view.
Lines and labels are drawn near the candles so you are still able to zoom in.
Labels are not drawn when their line is barely visible (transparency >= 80)

This indicator has been refined on the 15 minute and 1 hour charts of BTC and other cryptos but it works well in smaller volatility markets as well if the distances are adjusted accordingly.

Notas de Lançamento
  • Changed name to Organic Support and Resistance (OSR)
  • Fixed minimum transparency setting
  • Use EMA instead of SMA for volume average - only minor tweak but provides better values when there are sudden changes in volume
Notas de Lançamento
  • Added "Resistance broken" / "Support broken" alerts that include price information as well.
  • Added a setting for minimum alert strength percentage. It means that for lines with less than (default) 25% relative strength will not trigger an alarm when crossed.
  • Fixed some lines were not drawn. All the lines will now be initialized at the last bar, not at the Label position. (Since TradingView changed the rendering and it always zooms out to contain all the lines even if they are not drawn in the visible area.)
Notas de Lançamento
Re-added the transparency filter so there are no invisible labels and lines drawn.
It can be overridden with the minimum alert strength setting by bringing it under 15%.
linesstrengthsupportSupport and Resistance

Script de código aberto

No verdadeiro espírito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam compreendê-lo e analisá-lo. Parabéns ao autor! Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Quer usar esse script no gráfico?


Também em:

Aviso legal