换手:=V/CAPITAL*100;
STICKLINE(换手,0,换手,2,1),COLORRED;
VA:=IF(CLOSE>REF(CLOSE,1),vol,-VOL);
obv:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,30);
STICKLINE((OBV>REF(OBV,1) AND OBV>MAOBV),0,换手,2,1),COLORLIRED;
STICKLINE(NOT(OBV>REF(OBV,1) AND OBV>MAOBV),0,换手,2,0),COLORCYAN;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW);
买1:=QJ0*(MIN(OPEN,CLOSE)-LOW)*2;
买2:=QJ0*(JJ-MIN(CLOSE,OPEN))*2;
卖1:=QJ0*(MAX(CLOSE,OPEN)-JJ)*2;
卖2:=QJ0*(HIGH-MAX(OPEN,CLOSE))*2;
DT:=((买1+买2)-(卖1+卖2))/10000*6;
STICKLINE(DT>0,0,换手*0.5,0.5,0),COLOR0000FF;
STICKLINE(DT< 0,0,-换手*0.4,0.5,0),COLORGREEN;
TD1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
DD1:=QJ0*(JJ-MIN(CLOSE,OPEN));
DD2:=QJ0*(HIGH-MAX(OPEN,CLOSE));
TD2:=QJ0*(MAX(CLOSE,OPEN)-JJ);
TD:=TD1-TD2;
DA:=DD1-DD2;
XD1:=1-(TD1+DD1);
XD2:=1-(TD2+DD2);
TZ:=V/SUM(V,60)*100;
DTA:=((XD1-XD2)/10000)/TZ;
DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26));
DEA:=EMA(DIF,9);
ACB11:=MA(HHV(HIGH,485),17);
ACB21:=MA(HHV(HIGH,222),17);
ACB31:=MA(HHV(HIGH,96),17);
ACB41:=MA(LLV(LOW,485),17);
ACB51:=MA(LLV(LOW,222),17);
ACB61:=MA(LLV(LOW,96),17);
ACB71:=MA((ACB41*0.96+ACB51*0.96+ACB61*0.96+ACB11*0.558+ACB21*0.558+ACB31*0.558)/6,17);
ACB81:=MA((ACB41*1.25+ACB51*1.23+ACB61*1.2+ACB11*0.55+ACB21*0.55+ACB31*0.65)/6,17);
ACB91:=MA((ACB41*1.3+ACB51*1.3+ACB61*1.3+ACB11*0.68+ACB21*0.68+ACB31*0.68)/6,17);
ACBA:=MA((ACB71*3+ACB81*2+ACB91)/6*1.738,17);
ACBB:=ACBA;
ACBC:=LOW;
ACBD:=REF(LOW,1);
ACBE:=SMA(Abs(ACBC-ACBD),3,1)/SMA(MAX(ACBC-ACBD,0),3,1)*100;
ACBF:=MA(IF(CLOSE*1.35<=ACBB,ACBE*10,ACBE/10),3);
ACB10:=LLV(LOW,30);
ACB111:=HHV(ACBF,30);
SS:=MA(IF(LOW<=ACB10,(ACBF+ACB11*2)/2,0),3);
STICKLINE(SS,换手,换手*0.5,0.5,0),COLORBLUE;
N:=3;
M1:=10;
ACB1:=(C-EMA(C,6))/EMA(C,6)*100;
ACB2:=(C-MA(C,24))/MA(C,24)*100;
ACB3:=(C-MA(C,32))/MA(C,32)*100;
ACB4:=(ACB1+ACB2+ACB3)/3;
量价结合:MEMA(ACB4,N),COLORWHITE,LINETHICK2;
波段操作:MEMA(量价结合,3),COLORGREEN,LINETHICK2;
IF(量价结合>REF(量价结合,1),量价结合,DRAWNULL),COLORRED,LINETHICK2;
IF(波段操作>REF(波段操作,1),波段操作,DRAWNULL),COLORFF00FF,LINETHICK2;
QDZ:=DT>0 AND crOSS(DIF,DEA) AND OBV>REF(OBV,1) AND OBV>MAOBV AND 量价结合>REF(量价结合,1);
DRAWICON(QDZ,DEA,9);