成交额:AMOUNT/100000000,NODRAW;
主力:(LARGEINTRDVOL-LARGEOUTTRDVOL)*(11)/100,NODRAW;
大单:主力/成交额/100,NODRAW;
连红:BARSLASTCOUNT(主力 0),COLORRED,NODRAW;
预量:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预量,0,3,-1),COLORFFFFFF;
量_价:=1;
CTKG:=1;
W:=量_价;
EPSL:=0.0001;
ZZ:=(C+H+L)/3;
TJA:=ZZ =MAX(C,O) AND CTKG=1;
TJB:=ZZ =MIN(C,O) AND CTKG=1;
ZF:=IF(TJA,1,IF(TJB,-1,0));
TJ0:=TJA OR TJB;
TJ1:=H=L AND C REF(C,1);
TJ2:=H=L AND C REF(C,1);
TJ3:=H=L AND C=REF(C,1);
量_价:=IF(W=1,VOL,AMOUNT),STICK,COLOREEFFEE;
EE:=IF(TJ1,EPSL,IF(TJ2,-EPSL,0));
ZL:=2*(H-L)+ABS(C-O)+3*IF(TJ3,EPSL,ABS(EE));
JGL_DX:=(IF(TJ0,2/3*(2*C-H-L)+ZF*ABS(C-O),(C-O))+EE)/ZL;
买卖差:=JGL_DX*量_价,COLOR13AADD,NODRAW;
买盘:=量_价*(1+JGL_DX)/2,COLOR1133AA,NODRAW;
卖盘:=量_价*(1-JGL_DX)/2,COLORFFFF00,NODRAW;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买盘:=IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;
主动卖盘:=IF(CLOSE OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
净量:=主动买盘+主动卖盘,NODRAW;
STICKLINE(C O ,0,VOL,3.0,0),COLORFF1100;
STICKLINE(C O ,0,VOL,2.5,0),COLORFF3300;
STICKLINE(C O ,0,VOL,2.1,0),COLORFF5500;
STICKLINE(C O ,0,VOL,1.5,0),COLORFF7700;
STICKLINE(C O ,0,VOL,0.9,0),COLORFF9900;
STICKLINE(C O ,0,VOL,0.3,0),COLORFFBB00;
STICKLINE(C=O AND C REF(C,1),0,VOL,3.0,0),COLOR006000;
STICKLINE(C=O AND C REF(C,1),0,VOL,2.5,0),COLOR007500;
STICKLINE(C=O AND C REF(C,1),0,VOL,2.1,0),COLOR009100;
STICKLINE(C=O AND C REF(C,1),0,VOL,1.5,0),COLOR00A600;
STICKLINE(C=O AND C REF(C,1),0,VOL,0.9,0),COLOR00BB00;
STICKLINE(C=O AND C REF(C,1),0,VOL,0.3,0),COLOR00CC00;
STICKLINE(C=O AND C REF(C,1),0,VOL,3.0,0),COLOR555555;
STICKLINE(C=O AND C REF(C,1),0,VOL,2.5,0),COLOR777777;
STICKLINE(C=O AND C REF(C,1),0,VOL,2.1,0),COLOR999999;
STICKLINE(C=O AND C REF(C,1),0,VOL,1.5,0),COLORBBBBBB;
STICKLINE(C=O AND C REF(C,1),0,VOL,0.9,0),COLORDDDDDD;
STICKLINE(C=O AND C REF(C,1),0,VOL,0.3,0),COLORFFFFFF;
STICKLINE(C O,0,VOL,3.0,0),COLORFF11FF;
STICKLINE(C O,0,VOL,2.5,0),COLORFF33FF;
STICKLINE(C O,0,VOL,2.1,0),COLORFF55FF;
STICKLINE(C O,0,VOL,1.5,0),COLORFF77FF;
STICKLINE(C O,0,VOL,0.9,0),COLORFF99FF;
STICKLINE(C O,0,VOL,0.3,0),COLORFFBBFF;
资金异动:=VOL/MA(VOL,55)*100,COLORYELLOW;
STICKLINE(主动买盘 0,0,主动买盘,3.0,0),COLOR000055;
STICKLINE(主动买盘 0,0,主动买盘,2.5,0),COLOR000077;
STICKLINE(主动买盘 0,0,主动买盘,2.1,0),COLOR000099;
STICKLINE(主动买盘 0,0,主动买盘,1.5,0),COLOR0000BB;
STICKLINE(主动买盘 0,0,主动买盘,0.9,0),COLOR0000DD;
STICKLINE(主动买盘 0,0,主动买盘,0.3,0),COLOR0000FF;
STICKLINE(主动卖盘 0,0,主动卖盘,3.0,0),COLOR006000;
STICKLINE(主动卖盘 0,0,主动卖盘,2.5,0),COLOR007500;
STICKLINE(主动卖盘 0,0,主动卖盘,2.1,0),COLOR009100;
STICKLINE(主动卖盘 0,0,主动卖盘,1.5,0),COLOR00A600;
STICKLINE(主动卖盘 0,0,主动卖盘,0.9,0),COLOR00BB00;
STICKLINE(主动卖盘 0,0,主动卖盘,0.3,0),COLOR00CC00;
STICKLINE(资金异动 100 ,0,VOL,0.6,0),COLORYELLOW;
TX80:80,POINTDOT COLORYELLOW;
DX20:20,POINTDOT COLORGREEN;
VAR2:=HHV(HIGH,21);{www.9m8.cn 九毛八公式指标网}
K: EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,6),COLORRED;
D: EMA(0.667*REF(K,1)+0.333*K,2),COLORGREEN;
VAR3:=LLV(LOW,55);
VAR4:=HHV(HIGH,34);
VAR5:=EMA((CLOSE-VAR3)/(VAR4-VAR3)*100,3);
VAR6:=(K+VAR5)/2;
VAR7:=EMA(0.667*REF(VAR5,1)+0.333*K,2);
VAR8:=EMA(VAR6,5);
VAR9:EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);
DRAWICON(LONGCROSS(D,K,0.1),D,2),COLORRED;
DRAWICON(LONGCROSS(K,D,0.1),K,1),COLORGREEN;