Function StochRSI

Stochastic Relative Strength Index developed by Tushar Chande and Stanley Kroll.
This script has been written to eliminate the period variable.(Integer)
Thus, it can be used comfortably in adaptive period scripts ! (For example : Adaptive Moving Average , KAMA , FAMA .. etc. )
All efforts goes to ChaosTrader ( ,
RicardoSantos ( ,
Hpotter for barcolor codes (iff) (

I hope it will help your new ideas . Best regards ! Noldo .
Release Notes: Dear users, I made a big mistake. I have analyzed the Stochastic Oscillator function instead of StochRSI.This is the correct function. Also added alarms. Best regards !
Release Notes: Added some values ​​for better observation.
Release Notes: UPDATE :The rsi code pattern prepared by Tradingview is used. (Line 65 ) Because it is much more efficient where the period is less than 1.
Release Notes: This is the most effective version than the others.
Release Notes: This is to avoid distress if the variable average period drops to values ​​between 0 and 1. (RSI Functions )
Release Notes: Update : Colors
Remove from Favorite Scripts Add to Favorite Scripts
Telegram : @BBN91
Chat : Tradingview Chat
Website :
E-mail :

All invite only scripts are subject to a 15-day free trial period.


Nice! Thanks ^^
+1 Reply

For alerts :

alertcondition(possig ==1 , title='Buy Signal', message='Buy Signal ')
alertcondition(possig ==-1, title='Sell Signal', message='Sell Signal ')
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out