飞狐自用RSI指标公式股票软件源码如下: input:n(14); PARTLINE(1,80),ColorFF8000;FILLRGN(1,60,65),Color585858; FILLRGN(1,35,40),Color004646;PARTLINE(1,20),Color0000BB;PARTLINE(1,50),Color004080,LINEDOT; LC:=REF(CLOSE,1); RSI:SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100,LINETHICK2,ColorFFFFFF; PARTLINE(RSI>ref(RSI,1),RSI),LINETHICK2,COLORRED; |