主图
DRAWGBK(CLOSE>0,RGB(20,0,28),RGB(20,0,28),0,0,1);
X_1:=120;
X_2:=BARSLAST(CURRBARSCOUNT=X_1);
X_3:=CONST(IF(ISLASTBAR=1,HHV(HIGH,X_2),0));
X_4:=CONST(IF(ISLASTBAR=1,LLV(LOW,X_2),0));
X_5:=X_3-X_4;
高:IF(CURRBARSCOUNT<=X_1,X_3,DRAWNULL),POINTDOT,COLORYELLOW;
压:IF(CURRBARSCOUNT<=X_1,X_3-X_5*0.191,DRAWNULL),NODRAW,COLORMAGENTA;
平衡:IF(CURRBARSCOUNT<=X_1,X_4+X_5/2,DRAWNULL),NODRAW,COLORYELLOW;
支撑:IF(CURRBARSCOUNT<=X_1,X_4+X_5*0.191,DRAWNULL),NODRAW,COLORGREEN;
低:IF(CURRBARSCOUNT<=X_1,X_4,DRAWNULL),POINTDOT,COLORGREEN;
天:BARSLAST(LOW=X_4),NODRAW,COLORYELLOW;
STICKLINE(CURRBARSCOUNT<=X_1,平衡,平衡,3,(-1)),COLORWHITE;
STICKLINE(CURRBARSCOUNT<=X_1,压,压,3,(-1)),COLORRED;
STICKLINE(CURRBARSCOUNT<=X_1,支撑,支撑,3,(-1)),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,压,1),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1,平衡,2),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=1,支撑,3),COLORYELLOW;
X_6:=EMA(CLOSE,21);
X_7:=X_6<REF(X_6,1);
X_8:=IF(X_7-1,X_6,DRAWNULL);
X_9:=EMA(CLOSE,3)>EMA(CLOSE,21);
X_10:=EMA(CLOSE,3)<EMA(CLOSE,21);
X_11:=EMA(CLOSE,3)>EMA(CLOSE,8);
X_12:=EMA(CLOSE,3)<EMA(CLOSE,8);
STICKLINE(X_9,LOW,HIGH,0,0),COLOR0088EE;
STICKLINE(X_9,CLOSE,OPEN,3,0),COLOR0055AA;
STICKLINE(X_9,CLOSE,OPEN,2.8,0),COLOR0066BB;
STICKLINE(X_9,CLOSE,OPEN,2.5,0),COLOR0077CC;
STICKLINE(X_9,CLOSE,OPEN,2.2,0),COLOR0088DD;
STICKLINE(X_9,CLOSE,OPEN,1.7,0),COLOR0099EE;
STICKLINE(X_9,CLOSE,OPEN,1.2,0),COLOR00AAFF;
STICKLINE(X_9,CLOSE,OPEN,0.7,0),COLOR00CCFF;
STICKLINE(X_9,CLOSE,OPEN,0.2,0),COLORYELLOW;
STICKLINE(X_10,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(X_10,CLOSE,OPEN,3.2,0),COLOR006600;
STICKLINE(X_10,CLOSE,OPEN,2.6,0),COLOR008800;
STICKLINE(X_10,CLOSE,OPEN,1.9,0),COLOR00AA00;
STICKLINE(X_10,CLOSE,OPEN,1.1,0),COLOR00CC00;
STICKLINE(X_10,CLOSE,OPEN,0.3,0),COLORGREEN;
STICKLINE(X_10 AND X_11,HIGH,LOW,0,1),COLORFF55FF;
STICKLINE(X_10 AND X_11,CLOSE,OPEN,3.2,0),COLOR880088;
STICKLINE(X_10 AND X_11,CLOSE,OPEN,2.6,0),COLORAA00AA;
STICKLINE(X_10 AND X_11,CLOSE,OPEN,1.9,0),COLORCC00CC;
STICKLINE(X_10 AND X_11,CLOSE,OPEN,1.1,0),COLOREE00EE;
STICKLINE(X_10 AND X_11,CLOSE,OPEN,0.3,0),COLORFF44FF;
STICKLINE(X_9 AND X_12,HIGH,LOW,0,1),COLORFF8800;
STICKLINE(X_9 AND X_12,CLOSE,OPEN,3.2,0),COLORFF2200;
STICKLINE(X_9 AND X_12,CLOSE,OPEN,2.6,0),COLORFF4400;
STICKLINE(X_9 AND X_12,CLOSE,OPEN,1.9,0),COLORFF6600;
STICKLINE(X_9 AND X_12,CLOSE,OPEN,1.1,0),COLORFF8800;
STICKLINE(X_9 AND X_12,CLOSE,OPEN,0.3,0),COLORFFAA00;
DRAWTEXT(CURRBARSCOUNT=X_1/2+9,X_3-X_5/12,4),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=X_1/2+9,X_3-X_5/3,5),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=X_1/2+9,X_4+X_5/3,6),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=X_1/2+9,X_4+X_5/10,7),COLORCYAN;
X_13:=EMA(CLOSE,13)-EMA(CLOSE,55);
X_14:=EMA(0.618*REF(X_13,1)+0.382*X_13,3);
X_15:=REF(CLOSE,1);
X_16:=EMA(HHV(HIGH,1),8);
X_17:=EMA(CLOSE,8);
X_18:=X_17<REF(X_17,1) AND CLOSE<X_17;
X_19:=IF(X_16<REF(X_16,1) OR X_18,1,0);
X_20:=SMA(MAX(CLOSE-X_15,0),2,1)/SMA(ABS(CLOSE-X_15),2,1)*100;
X_21:=45;
X_22:=20;
X_23:=X_20<X_21 AND REF(X_20,1)>X_21;
X_24:=X_20<X_22 AND REF(X_20,1)>X_22;
X_25:=(COUNT(X_19=1,4)=3 AND X_19=0 AND OPEN<CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.065)*10>=10 OR ((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.065 AND (REF(X_24,1) OR REF(X_23,1)));
DRAWICON(X_25,LOW,7);
STICKLINE(X_25,LOW,LOW+(HIGH-LOW)/2,2.7,0),COLORYELLOW;
STICKLINE(X_25,LOW+(HIGH-LOW)/2,HIGH,2.7,0),COLORRED;
副图1
VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,21)-EMA(VAR1,34);
VAR3:=EMA(VAR2,10);
多方控盘:2*(VAR2-VAR3)*3.81,COLORRED;
空方控盘:(-2)*(VAR2-VAR3)*3.81,COLORGREEN;
STICKLINE(多方控盘>0,0,多方控盘,1,0),COLORRED;
STICKLINE(空方控盘<0,0,空方控盘,1,0),COLORGREEN;
STICKLINE(多方控盘<0,0,多方控盘,1,0),COLORRED;
STICKLINE(空方控盘>0,0,空方控盘,1,0),COLORGREEN;
副图2
盘龙T4:BARSLAST(EVERY(C<(6*L+5*REF(L,1)+4*REF(L,2)+3*REF(L,3)+2*REF(L,4)+1*REF(L,5))/21 AND V<=HHV(V,13),2))<=1 AND CROSS((EMA((L+H+C*2)/4,14)-REF(EMA((L+H+C*2)/4,14),1))/REF(EMA((L+H+C*2)/4,14),1)*100,0)
AND (6*H+5*REF(H,1)+4*REF(H,2)+3*REF(H,3)+2*REF(H,4)+1*REF(H,5))/21*0.98<C,NODRAW;STICKLINE(盘龙T4>0,0,1,2,0);
副图3
AA:=VOL/((H-L)*2-ABS(C-O));
买量:=AA*(H-L);
卖量:=0-AA*((H-C)+(O-L));
进出量:=(买量+卖量)>0;
AA1:=FILTER(L=LLV(L,13),8);
AA2:=IF(LLV(L,3)=LLV(L,13) AND C<REF((H+L)/2,1),MAX(REF(LLV(L,12),BARSLAST(AA1)+1)-L,0),0);
AA3:=EMA(AA2,3)*3;
AA4:=SUMBARS(AA3>0,21);
AA5:=SUM(AA3,AA4)/21;
AA6:=REF(AA3,1)=HHV(AA3,3) AND REF(AA3,1)>AA5*3 AND COUNT(C/REF(C,1)<0.9025,8)=0 AND LLV(L,3)/HHV(H,18)<0.88;
均线条件:=EMA(C,5)>=REF(EMA(C,5),1) ;
反转:=AA6 AND 进出量 AND 均线条件;
XG:FILTER(反转,3);
副图4
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,V*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
量:V,VOLSTICK;
倍量:(V/REF(V,1)>=1.91 AND COUNT(C>O,1)) OR (L>REF(H,1) AND COUNT(O>C,1) AND V/REF(V,1)>=1.91),NODRAW,COLORYELLOW;
低量:V<=REF(LLV(V,15),1),NODRAW,COLORGREEN;
地量:V<=REF(LLV(V,100),1),NODRAW,COLORMAGENTA;
平量:ABS(V-HHV(REF(V,1),5))/HHV(REF(V,1),5)<=0.03 OR ABS(V-REF(V,1))/REF(V,1)<=0.03,NODRAW,COLORWHITE;
倍缩:V<=REF(V,1)*0.5,NODRAW,COLORRED;
梯量:COUNT(V>REF(V,1),3)=3 AND COUNT(C>O,3)=3,NODRAW,COLOR824173;
缩量涨:COUNT(C>REF(C,1),2)=2 AND COUNT(V<REF(V,1),2)=2,NODRAW,COLORBLUE;
DRAWTEXT(倍量,V*0.99,'倍'),COLORYELLOW;
STICKLINE(倍量,0,V,1,0),COLORYELLOW;
STICKLINE(低量,0,V,1,0),COLORGREEN;
STICKLINE(地量,0,V,1,0),COLORMAGENTA;
STICKLINE(平量,0,V,1,0),COLORWHITE;
STICKLINE(倍缩,0,V,1,0),COLORRED;
STICKLINE(梯量,0,V,1,0),COLOR824173;
STICKLINE(缩量涨,0,V,1,0),COLORBLUE;
MA5:MA(V,5),COLORRED; {5日均量线是主力启动线}
MA35:MA(V,35),COLORYELLOW;{35日均量线是主力洗盘线};