2560战法之成交量
{2560Z战法【副图】成交量指标}
{参数设置 N: 2 100 2 M: 2 100 5}
流通股_亿:=CAPITAL/1000000,LINETHICK0,COLORWHITE;
量:=VOL,VOLSTICK,COLORRED;
VAR01:=DYNAINFO(17)*REF(MA(VOL,5),1);
VAR02:=DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT;
预测:=IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR01,VAR02)/10000;
预测量1:=STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR01,VAR02),VAR01,0,3,1),COLOR8B5736;
预测量2:STICKLINE(IF(DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,VAR01,VAR02),VAR01,0,3,1),COLOR3B8B00;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+ (CLOSE-LOW)),VOL /2)),POINTDOT,COLORRED;
卖:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0- AA*(HIGH-LOW),0-VOL /2))NODRAW,COLORGREEN;
量(万手):=VOL/10000,NODRAW,VOLSTICK,COLORGREEN;
N2:=5;
HSCOL:=IF((SETCODE==0||SETCODE==1),100*VOL,VOL)/(FINANCE(7)/100);
MAHSL:=MA(HSCOL,N2);
B:DRAWICON(CROSS(HSCOL,MAHSL)AND V>REF(V,1)*1.6,0,41);
买盘占比%:=买/VOL*100,COLORRED,NODRAW;
卖盘占比%:=-卖/VOL*100,COLORGREEN,POINTDOT,NODRAW;
买卖盘差值:(买盘占比%-卖盘占比%),COLORWHITE;
上涨标识01:=STICKLINE(C>=REF(C,1) ,0,VOL,3,0),COLOR8B5736;
下跌标识02:=STICKLINE(C<REF(C,1),0,VOL,3,0),COLOR8B5736;
多量标识:STICKLINE(买盘占比%>卖盘占比%,0,VOL,3,1),COLORRED;
空量标识:STICKLINE(买盘占比%<卖盘占比%,0,VOL,3,0),COLORGREEN;
多头量标识:=STICKLINE(买盘占比%>卖盘占比%,0,VOL,3,1),COLORRED;
空头量标识:=STICKLINE(买盘占比%<卖盘占比%,0,VOL,3,0),COLORGREEN;
平量标识:=STICKLINE(买盘占比%=卖盘占比%,0,VOL,3,1),COLORBROWN;
主买量标识:STICKLINE(买>0,(买+(-卖)),0,3,1),COLORRED; {COLOR3A3AFF};
主卖量标识:STICKLINE(买>0, 0,-卖,3,1),COLORLIGREEN; {COLOR006400};
异动_135:MA(量,135)COLORFF0000,DOTLINE;
洗盘_60:MA(量,60)COLORYELLOW,DOTLINE;
均衡_10:MA(量,10)COLORMAGENTA,LINETHICK1;
启动_05:EMA(量,5)COLORWHITE,LINETHICK1;
穿线放量:STICKLINE(量>洗盘_60,量,洗盘_60,1.5,0),COLORRED;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,38);
VAR6:=HHV(VAR4,38);
VAR7:=IF(LLV(LOW,90),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
DD:=VAR8>25; {源码:VAR8>5};
黄金坑:IF((COUNT(DD,2)=2),-20,0),COLOR0099FF,NODRAW;
黄金坑标识1:STICKLINE(FILTER(黄金坑,5),0,量/5,1.5,0),COLOR0099FF;
金叉标识:=DRAWICON(CROSS(启动_05,洗盘_60),0,41);
AAAAAAA:=DRAWLINE(VOL<=LLV(VOL,8),VOL,VOL>=HHV(VOL,35),HHV(VOL,3),0)COLORYELLOW;
BBBBBBB:=DRAWLINE(VOL>=HHV(VOL,35),VOL,VOL<=LLV(VOL,8) ,HHV(VOL,3),1)COLORCYAN;
主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主动买量:=主动买/10000,COLORRED,LINETHICK1;
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));
主动卖量:=-主动卖/10000,COLORLIGREEN,LINETHICK1;
盘比:(主动买量/主动卖量),COLORRED;
量比:DYNAINFO(17),COLORGREEN;{含“未来函数”DYNAINFO}
参与度:主动买量/(主动买量+主动卖量),COLORYELLOW;
多头:=MA(买,N)COLORYELLOW,LINETHICK1;
空头:=MA(卖*(-1),M),COLORCYAN,LINETHICK1;
强:=买盘占比%>(50)COLORRED;
弱:=卖盘占比%>(50)COLORGREEN;
强弱平衡:=(强=弱),COLORYELLOW;
红色三角强标识:=DRAWICON(强,0,38);
绿色三角弱标识:=DRAWICON(弱,0,39);
强弱平衡标识:=DRAWICON(强弱平衡,0,18);
ZT:=C/REF(C,1)>1.0993 AND C=H;
涨停标识:STICKLINE(ZT AND 买>0,-卖,(买+(-卖)),1.5,0),COLOR0099FF;
WW:=VOL/REF(VOL,1)>2;
GG:=C>O;
倍量上涨标识:STICKLINE(WW AND GG,-卖,(买+(-卖))/2,1.5,0),COLORYELLOW;
PT:=CONST(LLVBARS(V,90));
TS:=IF(CURRBARSCOUNT<=PT+1,CONST(IF(PT=0,MAX(C,O),REF(MAX(C,O),PT))),DRAWNULL),COLORBLUE,DOTLINE;
BS:=IF(CURRBARSCOUNT=PT+1,TS,DRAWNULL),CIRCLEDOT,COLORBLUE,LINETHICK1;
地量标识:=DRAWTEXT(CURRBARSCOUNT=PT+1,TS,STRCAT(CON2STR(CONST(90),0),' 地量')),COLORBLUE;
买卖盘差值标识1:DRAWNUMBER(CURRBARSCOUNT=1,REF(启动_05,0)*1.3,REF(买卖盘差值,0))COLORWHITE;
异动:=DRAWICON(LONGCROSS(量,异动_135,3),量,41);
量能异动:=STICKLINE(LONGCROSS(量,异动_135,3),量,量,0,0)COLORYELLOW;
蛰伏:=-1,COLORBLACK,LINETHICK5;
提示0:DRAWTEXT_FIX(C!=0,0.12,0.03,0,' 设:单笔交易单位 3万元,风险收益比 ≥ 1 : 2 。即,止损 -3%,止盈 +6% 。 '),COLORRED;
提示1:DRAWTEXT_FIX(C!=0,0.01,0.03,0,' 买入盘量柱 __ 红色空心量柱。 '),COLORRED;
提示2:DRAWTEXT_FIX(C!=0,0.01,0.09,0,' 卖出盘量柱 __ 绿色空心量柱。 '),COLORLIGREEN;
提示3:DRAWTEXT_FIX(C!=0,0.01,0.15,0,' 倍量上涨标识 __ 内里实心黄色量柱。 '),COLORYELLOW;
提示4:DRAWTEXT_FIX(C!=0,0.01,0.21,0,' 穿线放量标识 __ 内里红色实心量柱。 '),COLORRED;
提示5:DRAWTEXT_FIX(C!=0,0.01,0.27,0,' 地量地价标识 __ 内里青色实心量柱。 '),COLORLICYAN;
提示6:DRAWTEXT_FIX(C!=0,0.01,0.33,0,' 涨停量柱标识 __ 土黄量柱。 '),COLOR0099FF;
提示7:DRAWTEXT_FIX(C!=0,0.01,0.39,0,' 收盘价大于开盘价量柱标识 __ 红色圆点。 '),COLORRED;
提示8:DRAWTEXT_FIX(C!=0,0.01,0.45,0,' 收盘价小于开盘价量柱标识 __ 青色圆点'),COLORCYAN;
地量标识01:=DRAWTEXT(地量标识,TS,' 地量'),COLORCYAN;
地量标识02:STICKLINE(地量标识,0,-卖,1.5,0),COLORLICYAN;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
0,NODRAW,COLORBLACK;
买盘卖盘差值:(买盘占比%-卖盘占比%),COLORLICYAN;
多头强标识:DRAWTEXT(强,-10,'●')COLORRED;
空头弱标识:DRAWTEXT(弱,-10,'●')COLORCYAN;
{流通盘(亿手):CAPITAL/1000000,NODRAW,COLORLIGRAY;
年收益:FINANCE(33),NODRAW,COLORCYAN;
每股净资:FINANCE(34),NODRAW,COLORGREEN;}
股东权益:FINANCE(36),NODRAW,COLORMAGENTA;
每股公积:FINANCE(18)/1,NODRAW,COLORRED;
{换手率:VOL/CAPITAL*100,NODRAW,COLORRED;};
A01:=DYNAINFO(7);
A03:=BARSCOUNT(CLOSE);
A04:=(SMA((CLOSE / HHV(HIGH,120)),3,1) * 100);
A05:=IF((A03 > 20),A04,0);
A06:=IF((LOW > A01),0,IF((HIGH < A01),1,(((A01 - LOW) + 0.009) / ((HIGH - LOW) + 0.009))));
A07:=DMA(A06,(VOL / CAPITAL)) * 60;
A09:=IF((((A07 > 0) AND (A07 > REF(A07,1))) AND (A05 <= 88)),A07,0);
VAR10:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
VAR20:=EMA(VAR10,8);
VAR30:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势:=EMA(VAR30,3)-10;
趋势标识:=STICKLINE((A09>0) AND 趋势<40,0,V/40000,2,0),COLORMAGENTA;
A011:=DYNAINFO( 5);
A013:=BARSCOUNT(HIGH);
A014:=(SMA((HIGH / HHV(CLOSE,120)),3,1) * 100);
A015:=IF((A013 > 20),A014,0);
A016:=IF((HIGH < A011),0,IF((LOW > A011),1,(((A011 - HIGH) + 0.009) / ((LOW - HIGH) + 0.009))));
A017:=DMA(A016,(VOL / CAPITAL)) * 60;
A019:=IF((((A017 >0) AND (A017 > REF(A017,1))) AND (A015 >= 88)),A017,0);
VAR21:=3*SMA((CLOSE-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27))*100,5,1)-
2*SMA(SMA((HIGH-HHV(HIGH,27))/(LLV(LOW,27)-HHV(HIGH,27))*100,5,1),3,1);
VAR22:=EMA(VAR21,8);
VAR23:=3*SMA((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55))*100,5,1)-
2*SMA(SMA((HIGH-HHV(HIGH,55))/(LLV(LOW,55)-HHV(HIGH,55))*100,5,1),3,1);
趋势1:=EMA(VAR23,3)-10;
趋势1标识:=STICKLINE((A019 > 0 AND (趋势1<20 OR 趋势1>REF(趋势1,1)AND 趋势1<50)),0,V/40000,2,0),COLORGREEN;
B2:DRAWICON(CROSS(ZIG(3,6),REF(ZIG(3,6),1)),V/100,1) ;
S2:DRAWICON(CROSS(REF(ZIG(3,4),1),ZIG(3,4)),V/100,2);
量*1000/-30000,COLORBLACK,POINTDOT;