太极成交量和KDJ幅图公式
太极成交量源码:
总手:VOL,NODRAW;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,'说明: 红色柱为吸货量,绿色为出货量,黄色为天量,蓝色为地量'),COLORGRAY;
ZZ:=IF(REF(C,1) REF(O,1) AND O REF(C,1)*1.014 AND C O*1.02,1,3);
V5:=MA(V,5);
V12:=MA(V,12);
V34:=MA(V,34);
C6:=MA(C,6);
STICKLINE(VOL,0,VOL,1,0),COLORLIGRAY;
STICKLINE(CROSS(C,C6) AND V V5*1.2 AND V V12*1.2 AND ZZ 2 AND C H*0.975,0,VOL,1,0),COLORRED;
STICKLINE(CROSS(C6,C) AND V V5*1.2 AND V V12*1.2,0,VOL,1,0),COLORGREEN;
STICKLINE(VOL MA(VOL,5)*2 AND V V34*3 AND C REF(C,1)*1.05,0,VOL,1,0),COLORYELLOW;
STICKLINE(VOL MA(VOL,5)/2 AND V V12/2,0,VOL,1,0),COLORBLUE;
STICKLINE(VOL MA(VOL,5)*2 AND V V34*3 AND C REF(C,1)*1.05 AND CROSS(C,C6) AND V V5*1.2 AND V V12*1.2 AND ZZ 2 AND C H*0.975,VOL*0.5,0,1,0),COLORRED;
STICKLINE(VOL MA(VOL,5)*2 AND V V34*3 AND C REF(C,1)*1.05 AND CROSS(C6,C) AND V V5*1.2 AND V V12*1.2,VOL*0.5,0,1,0),COLORRED;
T:=DYNAINFO(8)
VO:VOL=LLV(VOL,100) AND T;
地量柱:T AND VO;
DRAWTEXT(地量柱,VOL+3000,'地');
BLZ:=VOL REF(V,1)*1.9;
BLZ1:=VOL REF(LLV(VOL,13),1);
BLZ2:=VOL REF(LLV(VOL,55),1);
倍量柱:BLZ;
DRAWTEXT(倍量柱,VOL+3000,'倍');
FLZ:=V REF(V,1)*0.98 AND V REF(V,1)*1.02,LINETHICK0;
DRAWTEXT(FLZ,VOL+3000,'平');
KDJ源码:
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;