标签: pine-script technical-indicator
下面是我的代码,其中r1是我需要转换为版本4的行
fk =input(8, title="Fast K") sk =input(3, title="Slow K") min_ = lowest(low, fk) max_ = highest(high, fk) fast = (source - min_)/(max_ - min_)*100 r1 = nz(r[1]) + (fast - nz(r[1]))/sk