Bonjour,
Je souhaiterais créer un screener pour l’indicateur Stoch RSI.
Cet indicateur n’est pas référencé dans ProScreener.
Je voudrais un screener avec les paramètres 20 périodes, typical et 50 périodes, typical, au-dessus de la ligne 80.
Est-ce que quelqu’un pourrait m’aider ?
Merci d’avance
Basé sur le code de Nicolas dans la library du site: https://www.prorealcode.com/prorealtime-indicators/stochastic-rsi/
En supposant que 20 est pour la période RSI et 50 pour stoch, sinon inverser.
Il manquerait le lissage? Mis smoothK=10, modifier si besoin.
//https://www.prorealcode.com/prorealtime-indicators/stochastic-rsi/
lengthRSI = 20 //RSI period
lengthStoch = 50 //Stochastic period
smoothK = 10 //Smooth signal of stochastic RSI
//smoothD = 3 //Smooth signal of smoothed stochastic RSI
myRSI = RSI[lengthRSI](typicalprice)
MinRSI = lowest[lengthStoch](myrsi)
MaxRSI = highest[lengthStoch](myrsi)
StochRSI = (myRSI-MinRSI) / (MaxRSI-MinRSI)
K = average[smoothK](stochrsi)*100
//D = average[smoothD](K)
c= (K>=80)
screener[c]