用不同的颜色柱代表不同的量,这样能更直观看盘
AA:=VOL;
BB:=REF(MA(VOL,5),1);
CC:=AA/BB;
A1:=CC>=0.001 AND CC<0.5;
A2:=CC>=0.5 AND CC<0.8;
A3:=CC>=0.8 AND CC<1.5;
A4:=CC>=1.5 AND CC<2.5;
A5:=CC>=2.5 AND CC<5.0;
A6:=CC>=5.0 AND CC<10.0;
A7:=CC>=10.0 AND CC<20.0;
关注线:1.5,COLORFFFFFF,LINETHICK1;
放量线:2.5,COLORFF00FF,LINETHICK1;
STICKLINE(A1,0,CC,2.5,0),COLOREAEAEA;
STICKLINE(A1,0,CC,1.5,0),COLOREBEBEB;
STICKLINE(A1,0,CC,0.8,0),COLOREDEDED;
STICKLINE(A1,0,CC,0.1,0),COLORE8E8E8;
严重缩量:A7,STICK,COLORFFFFFF;
STICKLINE(A2,0,CC,2.5,0),COLOR009900;
STICKLINE(A2,0,CC,1.5,0),COLOR00BB00;
STICKLINE(A2,0,CC,0.8,0),COLOR00DD00;
STICKLINE(A2,0,CC,0.1,0),COLOR00FF00;
缩量:A7,STICK,COLOR00FF00;
STICKLINE(A3,0,CC,2.5,0),COLOR009900;
STICKLINE(A3,0,CC,1.5,0),COLORBBBB00;
STICKLINE(A3,0,CC,0.8,0),COLORDDDD00;
STICKLINE(A3,0,CC,0.1,0),COLORFFFF00;
正常量比:A7,STICK,COLORFFFF00;
STICKLINE(A4,0,CC,2.5,0),COLOR00AAFF;
STICKLINE(A4,0,CC,1.5,0),COLOR00BBFF;
STICKLINE(A4,0,CC,0.8,0),COLOR00CCFF;
STICKLINE(A4,0,CC,0.1,0),COLOR00DDFF;
温和放量:A4,STICK,COLOR00CCFF;
STICKLINE(A5,0,CC,2.5,0),COLORFF00FF;
STICKLINE(A5,0,CC,1.5,0),COLORFF33FF;
STICKLINE(A5,0,CC,0.8,0),COLORFF66FF;
STICKLINE(A5,0,CC,0.1,0),COLORFF99FF;
明显放量:A5,STICK,COLORMAGENTA;
STICKLINE(A6,0,CC,2.8,0),COLOR000088;
STICKLINE(A6,0,CC,1.5,0),COLOR0000AA;
STICKLINE(A6,0,CC,0.8,0),COLOR0000CC;
STICKLINE(A6,0,CC,0.1,0),COLOR0000EE;
剧烈放量:A6,STICK,COLOR0000FF;
STICKLINE(A7,0,CC,2.8,0),COLOR995500;
STICKLINE(A7,0,CC,1.5,0),COLORBB6600;
STICKLINE(A7,0,CC,0.8,0),COLORDD7700;
STICKLINE(A7,0,CC,0.1,0),COLORFF8800;
反向操作:A7,STICK,COLORFF8800;
F:=COST(5);
J:=COST(95);
M:=COST(15);
N:=COST(85);
DIF:=EMA(CLOSE,A2)-EMA(CLOSE,A1);
DEA:=EMA(DIF,A3);
筹码1:=(J-F)/(F+J),COLORGREEN;
筹码2:=(N-M)/(N+M),COLORWHITE;
获利率:=WINNER(CLOSE)*100,COLORFF00FF;
筹码集中:获利率>80 AND 筹码1<0.08 AND 筹码2<0.06 AND CROSS(DIF,DEA),COLORYELLOW;