CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上:=(1+7/100)*DD;
下:=(1-7/100)*DD;
KC:=(2*C+H+L+O)/5;
CB:=MEMA(KC,5);
底线:=下-ABS(CB-MA(CB,10)),COLORWHITE;
{www.9m8.cn 九毛八公式指标网 股票软件下载网_通达信股票指标公式}
TYX3:=MA(REF(HHV((C+L+O+H)/4,30),1),3);
TYX4:=MA((C+L+O+H)/4,13);
TYX5:=EMA((C+L+O+H)/4,21);
STICKLINE(C TYX5 AND C O,H,L,0,0),COLORRED;
STICKLINE(C TYX5 AND C O,C,O,3,1),COLORRED;
STICKLINE(C TYX5 AND C O,H,L,0,0),COLOR007700;
STICKLINE(C TYX5 AND C O,C,O,3,0),COLOR005500;
STICKLINE(C TYX5 AND C O,C,O,2,0),COLOR006600;
STICKLINE(C TYX5 AND C O,C,O,1,0),COLOR007700;
STICKLINE(C TYX5 AND C O,H,L,0,0),COLORFFDD44;
STICKLINE(C TYX5 AND C O,C,O,3,0 ),COLORFF7700;
STICKLINE(C TYX5 AND C O,C,O,2,0 ),COLORFFAA22;
STICKLINE(C TYX5 AND C O,C,O,1 ,0 ),COLORFFDD44;
STICKLINE(C TYX5 AND C O,H,L,0,0 ),COLOR00EEFF;
STICKLINE(C TYX5 AND C O,C,O,3,0 ),COLOR00AAFF;
STICKLINE(C TYX5 AND C O,C,O,2,0 ),COLOR00CCFF;
STICKLINE(C TYX5 AND C O,C,O,1,0 ),COLOR00EEFF;
STICKLINE(C TYX4 AND C O,H,L,0,0),COLORFF66AA;
STICKLINE(C TYX4 AND C O,C,O,3,0 ),COLORFF11FF;
STICKLINE(C TYX4 AND C O,C,O,2,0 ),COLORFF44FF;
STICKLINE(C TYX4 AND C O,C,O,1,0 ),COLORFF66FF;
STICKLINE(C TYX4 AND C O,H,L,0,0),COLOR999999;
STICKLINE(C TYX4 AND C O,C,O,3,0),COLOR555555;
STICKLINE(C TYX4 AND C O,C,O,2,0),COLOR777777;
STICKLINE(C TYX4 AND C O,C,O,1,0),COLOR999999;
STICKLINE(C TYX3 AND C O,H,L,0,0),COLOR0000DD;
STICKLINE(C TYX3 AND C O,C,O,3,0),COLOR000099;
STICKLINE(C TYX3 AND C O,C,O,2,0),COLOR0000BB;
STICKLINE(C TYX3 AND C O,C,O,1,0),COLOR0000DD;
STICKLINE((C-REF(C,1))*100/REF(C,1) =(10-0.01*100/REF(C,1)),OPEN,CLOSE,3,0),COLORYELLOW;
STICKLINE((REF(C,1)-C)*100/REF(C,1) =(10-0.01*100/REF(C,1)),OPEN,CLOSE,3,0),COLORGREEN;
DRAWBAND(CB,RGB(80,100,120),底线,RGB(0,0,0));