量k主图
MA450:MA(C,450);MA550:MA(C,550);
MA05:MA(C,5);
DRAWICON(CROSS(MA450,MA550),MA450,42);
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
{STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;}
VOLUME:=VOL,VOLSTICK;
AA1:=REF(CLOSE,2)<REF(OPEN,2);
AA21:=REF(CLOSE,1)<REF(OPEN,1);
AA22:=REF(CLOSE,1)>REF(OPEN,1);
AA2:=AA21 OR AA22;
AA3:=REF(VOL,1)<REF(VOL,2);
AA4:=VOL>REF(VOL,2);
AA:=AA1 AND AA2 AND AA3 AND AA4;
BB1:=VOL/REF(VOL,1)>1.8;
BB2:=VOL/REF(VOL,1)<2.5;
BB:=BB1 AND BB2;
CC:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.02;
小倍阳:=AA AND BB AND CC;
DRAWTEXT(小倍阳,L*0.99,'XB')COLORYELLOW;
STICKLINE(小倍阳,C,C,280,1)COLORYELLOW;
假阴真阳:=V>REF(V,1) AND O>REF(C,1) AND C<O AND C>REF(C,1);
DRAWTEXT(假阴真阳,L*0.98,'阳')COLORRED;
STICKLINE(假阴真阳,O,C,2,1)COLORRED;
倍阳:=V/REF(V,1)>1.9 AND C>O;
DRAWTEXT(倍阳,L*0.99,'倍')COLORRED;
STICKLINE(倍阳,C,C,60,-1)COLORRED;
昨阴今阳:= REF(C<O,1) AND C>=O {AND C>REF(O,1)};{阳盖阴?}
相对低位:=REF("KDJ.K"<55,1) AND C<=(LLV(L,240)+(HHV(H,240)-LLV(L,240))*0.6);
价升量缩:=C>O*1.04{长阳} AND C<REFX(C,3){价升} AND
(V>=REFX(MA(V,3),3) OR REFX(V,1)>=REFX(MA(V,3),3)){量缩};
阳胜阴:= 昨阴今阳 AND 价升量缩 AND 相对低位 ;
左柱距:=BARSLAST(阳胜阴);{178448-WEN98编写};
底精准:= ABS(L-REF(REF(L,左柱距),1))<=0.02 OR ABS(O-REF(REF(O,左柱距),1))<=0.02 OR
ABS(O-REF(REF(L,左柱距),1))<=0.02 OR ABS(L-REF(REF(O,左柱距),1))<=0.02;
XG1:= 底精准 AND BETWEEN(REF(左柱距,1),3,10) AND 阳胜阴;
双阳:= COUNT(XG1,100);
DRAWTEXT(双阳,L*0.98,'双阳')COLORRED;
STICKLINE(双阳,O,C,2,-1)COLORRED;
BLZ:=VOL>REF(V,1)*1.9 AND C/REF(C,1)>1.095 AND C=H;
DRAWTEXT(BLZ,L*0.97,'BT')COLORRED;
STICKLINE(BLZ,O,C,2,-1)COLORMAGENTA;
缩量涨停:=V<REF(V,1) AND C/REF(C,1)>1.095 ;
DRAWTEXT(缩量涨停,L*0.96,'ST')COLORRED;
STICKLINE(缩量涨停,O,C,2.5,0)COLORYELLOW;
STICKLINE(缩量涨停,C,C,100,-1)COLORYELLOW;
缩量涨:=V<REF(V,1) AND C>REF(C,1) AND NOT(缩量涨停);
DRAWTEXT(缩量涨,L*0.96,'SZ')COLORRED;
平量:=RANGE(V/REF(V,1),0.97,1.03) AND BARSCOUNT(V)>=2;
DRAWTEXT(平量,L*0.99,'P')COLORYELLOW;
STICKLINE(平量,L,L,10,1)COLORYELLOW;
长阴短柱:=C/REF(C,1)<=0.96 AND V<HHV(V,30)/1.9;
DRAWTEXT(长阴短柱,L*0.99,'短')COLORGREEN;
STICKLINE(长阴短柱,O,O,20,1)COLORGREEN;
小倍阳涨停:小倍阳 AND C/REF(C,1)>1.095;
STICKLINE(小倍阳涨停,O,C,1,1)COLORLIRED;
DRAWICON(小倍阳涨停,H*0.98,23);
阳盖阴:=REF(EVERY(C<O,2),1) AND C>REF(H,1) AND V>REF(V,1);
DRAWTEXT(阳盖阴,L*0.97,'胜')COLORYELLOW;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
L1:=COUNT(REF(MACD,2)<REF(MACD,3),2)=2;
L2:=COUNT(MACD>REF(MACD,1),2)=2;
L3:=REF(MACD,2)>0;
{MACD红柱连续缩短,前天达到最短,近2天增长}
L4:=REF(C,2)<MA60;
DRAWTEXT(L1 AND L2 AND L3 AND L4,L*0.98,'淘')COLORYELLOW;
A1:=VOL/REF(MA(VOL,10),1)>10 AND C=LLV(C,20);
A2:=VOL/REF(MA(VOL,10),1)<0.5 AND C/REF(C,1)>1.099;
量比选:IF( A1 OR A2,C,DRAWNULL);
梯量拄:=V>=REF(V,1) AND REF(V,1)>=REF(V,2) AND C>O AND REF(C>O,1);
DRAWTEXT(COUNT(梯量拄,4)>3,L*0.96,'梯')COLORGREEN;
DRAWTEXT( COUNT(NOT(梯量拄)AND C<REF(C,1) AND C<O,4)>3,L*0.96,'梯')COLORYELLOW;
T1:=CONST(LLVBARS(LOW,10));
T1HIGH:=CONST(REF(HIGH,T1));
CCB:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST(CURRBARSCOUNT>CCB+T1 AND H>T1HIGH));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST(CURRBARSCOUNT>CCB+T2 AND HIGH>T2HIGH));
T3HIGH:=CONST(REF(HIGH,T3));
凹口淘金:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),COLOR00FFFF,DOTLINE,LINETHICK1;
DRAWTEXT(ISLASTBAR, T3HIGH, '凹口淘金')LINETHICK1,COLOR00FFFF;
主力买入W:(DYNAINFO(23)*1/2+DYNAINFO(22)*1/10)/2/10000;
{主力持仓量:SUM(主力买入W,建仓)/(CAPITAL/10000);}
{委比:(CUR_BUYORDER-CUR_SELLORDER)/(CUR_BUYORDER+CUR_SELLORDER)*100,NODRAW;};