This is an onchart version of the RSI, that acts like a supertrend above and below price.
Upper and lower limit are set to 90 and 10.
It can be used as signal for entries and/or for stop loss.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
//################################################### // RSI as SuperTrend // coded by AlexF //################################################### rsiperiod=14 rsihiband=90 rsiloband=10 //RSI calculation ep=(2*rsiperiod)-1 auc=ExponentialAverage[ep](abs(MAX(close-close[1],0))) adc=ExponentialAverage[ep](abs(MAX(close[1]-close,0))) x1=(rsiperiod-1)*(adc*rsihiband/(100-rsihiband)-auc) x2 = (rsiperiod - 1) * ( adc * rsiLoBand / (100-rsiLoBand) - auc) if x1>=0 then ub=close+x1 else ub=close+x1*(100-rsihiband)/rsihiband endif if x2>=0 then lb=close+x2 else lb=close+x2*(100-rsiloband)/rsiloband endif z=(ub+lb)/2 return z |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Alex ti sei superato
Esagerato!