Forums › ProRealTime English forum › ProBuilder support › Donchian Channel on the RSI curve conversion from TradingView › Reply To: Donchian Channel on the RSI curve conversion from TradingView
10/25/2018 at 2:45 PM
#83526
I think this is the basics of the indicator:
1 2 3 4 5 6 7 8 9 10 11 |
DCPeriod = 28 RSIPeriod = 14 HullPeriod = 8 HullRsi = WeightedAverage[ROUND(SQRT(HullPeriod))](2 * WeightedAverage[ROUND(HullPeriod / 2)](rsi[rsiperiod]) - WeightedAverage[HullPeriod](rsi[rsiperiod])) upperdc = highest[dcperiod](HullRsi) lowerdc = lowest[dcperiod](HullRsi) middc = ((upperdc - lowerdc)/2) + lowerdc return hullrsi coloured(0,0,255)style(line,2) as "RSI", upperdc as "UpperDC", lowerdc as "LowerDC", middc as "MidDC", 70 coloured(128,0,0) as "70", 30 coloured(128,0,0) as "30" |