通达信最好用的成交量副图指标公式源码
通达信成交量副图指标公式源码:
DRAWBAND(MA(VOL,5),RGB(0,0,0),MA(VOL,60),RGB(0,0,250));
虚:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,VOL),NODRAW;
REFDATE(虚,DATE),DOTLINE,COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,虚,0,(-1),(-1)),COLOR00C0C0;
现:VOL,VOLSTICK;
X_1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_2:=HIGH-LOW;
X_3:=HHV(HIGH,5);
X_4:=FILTER(CROSS(CLOSE,REF(X_3,1)),5) AND CLOSE>REF(X_3,1) AND VOL/REF(VOL,1)>=2;
STICKLINE(X_4>=1,VOL,0,1,0),COLORRED;
STICKLINE(X_4>=1,VOL,0,3.1,0),COLOR000033;
STICKLINE(X_4>=1,VOL,0,2.7,0),COLOR000066;
STICKLINE(X_4>=1,VOL,0,2.1,0),COLOR000099;
STICKLINE(X_4>=1,VOL,0,1.5,0),COLOR0000CC;
STICKLINE(X_4>=1,VOL,0,0.9,0),COLORRED;
STICKLINE(X_4>=1,VOL,0,0.3,0),COLORCC66FF;
X_5:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
STICKLINE(X_5>=1,VOL,0,0.5,0),COLORRED;
倍量:IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1),NODRAW;
REFDATE(VOL,DATE),DOTLINE,COLORMAGENTA;
⑤:MA(VOL,5),COLORWHITE;
⑩:MA(VOL,10),COLORYELLOW;
X_6:=MA(VOL,20);
MA60:MA(VOL,60),COLORLIBLUE;
X_7:=VOL<REF(LLV(VOL,120),1);
STICKLINE(X_7,0,MA60,0,(-1)),COLORMAGENTA;
换手:VOL/CAPITAL*100,NODRAW;
振幅:(HIGH-LOW)/LOW*100,NODRAW;
X_8:=SUMBARS(VOL,CAPITAL);
X_9:=CONST(HHV(VOL,30));
X_10:=1;
X_11:=VOL/CAPITAL*100;
X_12:=VOL=HHV(VOL,250);
X_13:=VOL=HHV(VOL,120) AND VOL!=HHV(VOL,250);
X_14:=VOL=HHV(VOL,60) AND VOL!=HHV(VOL,120) AND VOL!=HHV(VOL,250);
{DRAWTEXT_FIX(1,0.0,5,0,'指标网WWW.ZHIBIAOW.COM'),COLORYELLOW;}
X_15:=VOL=HHV(VOL,30) AND VOL!=HHV(VOL,60) AND VOL!=HHV(VOL,120) AND VOL!=HHV(VOL,250);
DRAWTEXT(X_12 AND CURRBARSCOUNT<120,0.93*VOL,1),COLORYELLOW;
DRAWTEXT(X_13 AND CURRBARSCOUNT<120,0.93*VOL,2),COLORYELLOW;
DRAWTEXT(X_14 AND CURRBARSCOUNT<120,0.93*VOL,3),COLORYELLOW;
DRAWTEXT(X_15 AND CURRBARSCOUNT<120,0.93*VOL,4),COLORYELLOW;LLOW;