Yidu_A_S_O_T_L_J_C

The Perfect Support & Resistance

Support & Resistance drawn based on overbought & oversold RSI . where the overbought acts as resistance and oversold acts as support.

It has 2 levels (for support and resistance - i call them level_n_high or level_n_low) for each lookback period. it checks the highest pivot and the lowest pivot based on the lookback period then we compare if rsi is higher than the highest pivot or the lowest pivot and we also check if rsi is overbought or oversold and if the statement is true, then we assign the high to the variable level_n_high or level_n_low. n being the number of levels. in total there are 5 levels with both high & low for 5 lookback periods. This is basically how the code works.

these levels can be accessed at any timeframe. the defaults are 5m and 30m.

RSI settings: (default)
-------------------
  • length - 14
  • source - close
  • overbought - 70
  • oversold - 30

lookback settings: (default)
---------------------
  • lookback_0 - 200
  • lookback_1 - 100
  • lookback_2 - 50
  • lookback_3 - 20
  • lookback_4 - 10

Timeframe Settings: (default)
-------------------
  • htf1 - 5m
  • htf2 - 30m
Enjoy!

Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?