RSI副图(副图 源码)
DRAWBAND(-50,RGB(0,0,0),50,RGB(230,230,230));{该行设置背景色};
DRAWBAND(-25,RGB(0,0,0),25,RGB(210,210,210));{该行设置背景色}
LC:=REF(CLOSE,1);
RS1:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100-50;
WR10:=100*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))-50;
TB:=MAX(MAX((RS1-RS1),ABS(REF(RS1,1)-RS1)),ABS(REF(RS1,1)-RS1));
MD:=MA(RS1,6),COLOR0000FF,NODRAW;
DRAWBAND(RS1,RGB(132,189,168),MD,RGB(228,202,199));
DRAWBAND(MD,RGB(132,189,168),RS1,RGB(228,202,199));
0,COLORWHITE;
STICKLINE(-25,-25,-25,5,1),COLORWHITE;
STICKLINE(25,25,25,5,1),COLORWHITE;
RSI:RS1,COLORLIRED;
MR:MD,COLORGRAY,LINETHICK1;
IF(MR>REF(MR,1) OR RSI>MR,MR,DRAWNULL),COLORRED,LINETHICK1;
活跃:=(RS1-WR10)/4,NODRAW;
饱和:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
STICKLINE(活跃>0,0,活跃,0,1),COLORFF00FF;
STICKLINE(活跃<0,0,活跃,0,1),COLORBROWN;
STICKLINE(活跃>17 AND 活跃<19.5,0,活跃,0,1)COLOR858500;
STICKLINE(活跃>19.5,0,活跃,0,1),COLORBLUE;
活跃度:活跃,COLORLIMAGENTA,NODRAW;
饱和度:饱和,COLORBLACK,NODRAW;
STICKLINE(饱和度=100,0,-2,2,1),COLORLIBLUE;
{图示}
VM:=MA(RS1,5),COLORFF00FF,NODRAW;
DRAWTEXT(ISLASTBAR AND RSI>REF(RSI,1),0,' ▲'),COLORDD00FF;
DRAWTEXT(ISLASTBAR AND RSI<REF(RSI,1),0,' ▼'),COLORBLUE;
- 上一篇公式:短线黑马--贺新年,发自用波段公式
- 下一篇公式:通达信指标公式{一把定乾坤}