大智慧优化RSI副图指标
源码
空线:EMA((HHV(H,5)-C)/(HHV(H,5)-LLV(L,5))*100,2),COLOR00FF00,DOTLINE;
多线:EMA((C-HHV(H,5))/(HHV(H,5)-LLV(L,5))*100,2)+100,COLORFF00FF,DOTLINE;
LC := REF(C,1);
RSI1:=EMA(MAX(C-LC,0),5)/EMA(ABS(C-LC),5)*100;
RSI2:EMA(MAX(C-LC,0),10)/EMA(ABS(C-LC),10)*100,COLORWHITE,LINETHICK1;
RSI3:=EMA(MAX(C-LC,0),20)/EMA(ABS(C-LC),20)*100;
趋势线:ema((RSI1+RSI2+RSI3)/3,3),COLOR00FFFF,LINETHICK3;
PARTLINE(趋势线,RSI1<趋势线,RGB(0,222,0)),LINETHICK3;
PARTLINE(趋势线,RSI1>趋势线,RGB(255,0,0)),LINETHICK3;
kk:50;
partline(kk,空线<多线,rgb(255,0,0),空线>多线,rgb(0,250,0)),linethick2;
底:20,DOTLINE;
顶:80,DOTLINE;
DRAWGBK(C>0 ,STRIP(RGB(111,111,111),RGB(111,105,105),0));