通达信买卖成交量副图指标公式源码分享
买卖成交量副图,融合很多了自己精华指标中的精华。
VOLUME:VOL,VOLSTICK;
MAVOL1:MA(VOLUME,5),COLORWHITE;
MAVOL2:MA(VOLUME,135),COLORYELLOW,LINETHICK2;
X_1:=12;
X_2:=26;
X_3:=9;
X_4:=EMA(CLOSE,X_1)-EMA(CLOSE,X_2);
X_5:=EMA(X_4,X_3);
X_6:=(X_4-X_5)*2;
STICKLINE(X_4 X_5,0,VOL,3,0),COLORRED;
STICKLINE(X_4 X_5,0,VOL,3,0),COLORGREEN;
X_7:=9;
X_8:=3;
X_9:=3;
X_10:=(CLOSE-LLV(LOW,X_7))/(HHV(HIGH,X_7)-LLV(LOW,X_7))*100;
X_11:=SMA(X_10,X_8,1);
X_12:=SMA(X_11,X_9,1);
X_13:=3*X_11-2*X_12;
STICKLINE(X_13 X_12,VOL/2,VOL,3,0),COLORRED;
STICKLINE(X_13 X_12,VOL/2,VOL,3,0),COLORGREEN;
X_14:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
X_15:=MOD(FROMOPEN,X_14);
X_16:=IF(X_15 0.5,X_14,X_15);
VVOL:IF(CURRBARSCOUNT=1,VOL*X_14/X_16,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND (SETCODE=0 OR SETCODE=1),VVOL,0,(-1),(-1)),COLOR00C0C0;
X_17:=IF(CLOSE REF(CLOSE,1),VOL,-VOL);
X_18:=SUM(IF(CLOSE=REF(CLOSE,1),0,X_17),0);
X_19:=EMA(X_18,3)-MA(X_18,9);
X_20:=EMA(IF(X_19 0,X_19,0),3);
X_21:=MA(CLOSE,3);
STICKLINE(X_20 REF(X_20,1) AND X_21 REF(X_21,1),0,X_20,2,0),COLORYELLOW;