CV:=C*V;
BCV:=EMA((EMA(CV,3)/EMA(V,3)+EMA(CV,6)/EMA(V,6)+EMA(CV,12)/EMA(V,12)+EMA(CV,24)/EMA(V,24))/4,13);
IU0:=BCV*1.06;
ID0:=BCV*0.94;
OU0:=EMA(EMA(C,9)*1.14,5);
OD0:=EMA(EMA(C,9)*0.86,5);
DRAWBAND(IU0,RGB(125,000,125),OU0,RGB(125,000,000));
DRAWBAND(IU0,RGB(256,075,075),ID0,RGB(256,075,075));
DRAWBAND(ID0,RGB(000,125,000),OD0,RGB(000,000,125));
DRAWKLINE(H,O,L,C);
AA:=MA((2*C+H+L)/4,5);
CC:=Abs((2*C+H+L)/4-MA(C,20))/MA(C,20);
DD:=DMA(C,CC);
SU:AA*102/100,COLORWHITE;
SD:AA*(200-102)/100,COLORYELLOW;
LU:(1+7/100)*DD,COLORMAGENTA;
LD:(1-7/100)*DD,COLORCYAN;
IU:IU0,COLORWHITE,NODRAW;
ID:ID0,COLORYELLOW,NODRAW;
OU:OU0,COLORMAGENTA,NODRAW;
OD:OD0,COLORCYAN,NODRAW;
XU:IF(PERIOD>2,PEAK(C,IF(PERIOD<5,6,10),1)*0.999,DRAWNULL),COLORGRAY;
XD:IF(PERIOD>2,TROUGH(C,IF(PERIOD<5,6,10),1)*0.999,DRAWNULL),COLORBROWN;
XM:(XU+XD)/2,COLORGRAY,POINTDOT;
{ _通达信股票指标公式}
DRAWBAND(IF(crOSS(OD0,ID0),OD0,DRAWNULL),RGB(0,0,0),IF(CROSS(OD0,ID0),OD0,DRAWNULL),RGB(0,0,0)),POINTDOT,LINETHICK5,COLORGREEN;
DRAWBAND(IF(CROSS(IU0,OU0),OU0,DRAWNULL),RGB(0,0,0),IF(CROSS(IU0,OU0),OU0,DRAWNULL),RGB(0,0,0)),POINTDOT,LINETHICK5,COLORMAGENTA;
XTB:=XD!=REF(XD,2) && XD=REF(XD,1);
XTS:=XU!=REF(XU,2) && XU=REF(XU,1);
DRAWICON(XTB,MIN(XD,L)*0.99,1);
DRAWICON(XTS,MAX(XU,H)*1.01,2);

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。