通达信VR_CCI主升浪副图公式副图源码


M:=6;
TL:=SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),N);
VR:100*(TH*2+TQ)/(TL*2+TQ);
DRAWBAND(VR,RGB(255,0,0),MAVR,RGB(0,255,0));
DRAWICON(crOSS(200,CCI),250,2);
转强:CCI>0,COLOR0000D5,NODRAW;
弱转强:CROSS(CCI,-200) AND CCI>REF(CCI,1),COLOR00DFDF,NODRAW;
强转弱:CROSS(200,CCI) AND CCI<REF(CCI,1),COLOR00CA00,NODRAW;
生命CCI线:CCI(84),COLORWHITE;
警戒线:300.00,COLORWHITE,LINETHICK2;
轴:0.00,COLORLIBLUE ,LINETHICK2;
DRAWTEXT(CROSS(生命CCI线,警戒线),警戒线,'警惕')COLORYELLOW;
DRAWTEXT(CROSS(生命CCI线,轴),轴,'注')COLORYELLOW;