主图
X_1:=CLOSE>REF(CLOSE,1)*1.09 AND CLOSE<REF(CLOSE,1)*1.105;
X_2:=CLOSE<REF(CLOSE,1)*0.901 AND CLOSE>REF(CLOSE,1)*0.898;
STICKLINE(X_1,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(X_2,CLOSE,OPEN,3,0),COLORBLUE;
另类定实:MA(HIGH,30)*1.13,COLORBLUE,LINETHICK3;
IF(MA(HIGH,30)*1.13>REF(MA(HIGH,30)*1.13,1),MA(HIGH,30)*1.13,DRAWNULL),COLORMAGENTA,LINETHICK3;
副图1选股一体
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,55);
X_3:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
X_4:=FILTER(X_3,10);
X_5:=BARSLAST(X_4);
X_6:=REF(HIGH,X_5+2);
X_7:=REF(HIGH,X_5+1);
X_8:=REF(HIGH,X_5);
X_9:=MAX(X_6,X_7);
X_10:=MAX(X_9,X_8);
X_11:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
X_12:=X_5<150;
X_13:=(OPEN-X_10)/X_10*100<30;
X_14:=(CLOSE-LLV(LOW,X_5))/LLV(LOW,X_5)*100<50;
X_15:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100<30;
X_16:=VOL/MA(VOL,5)<3.5;
X_17:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100<80;
X_18:=X_11 AND X_12 AND X_13 AND X_14 AND X_15 AND X_16 AND X_17;
X_19:=FILTER(X_18,15);
X_20:=(CLOSE-X_2)/X_2<0.1;
X_21:=(CLOSE-X_1)/X_1<0.3;
X_22:=(X_20=1 AND X_21=1)*0.2;
X_23:=(X_22=0 AND REF(X_22,1)=0.2 AND REF(COUNT(X_22=0.2,10)=10,1)=1)*(-0.1);
X_24:=X_23=(-0.1);
X_25:=X_19 OR X_24;
X_26:=DYNAINFO(7)/REF(CLOSE,1)>1.05 AND DYNAINFO(7)/OPEN>1.05;
X_27:=VOL/REF(VOL,1)>1.2 AND CLOSE>OPEN OR (LOW>REF(HIGH,1) AND OPEN>CLOSE AND VOL/REF(VOL,1)>1.2);
X_28:=IF(CODELIKE(3) OR (CODELIKE(4) AND DATE>=1200824),CLOSE>=ZTPRICE(REF(CLOSE,1),0.2) AND CLOSE=HIGH,CLOSE>=ZTPRICE(REF(CLOSE,1),0.1) AND CLOSE=HIGH);
X_29:X_25 AND X_26 AND X_27 AND X_28 AND REF(NOT(X_28),1);
副图2
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
中户:=MA(换手,17);
散户:=MA(换手,34);
均量:=(主力+大户+中户+散户)/4;
主力能量:=(主力-均量);
大户能量:=(大户-均量);
中户能量:=(中户-均量);
散户能量:=(散户-均量);
当日意愿:=(ABS(主力能量)+ABS(大户能量)+ABS(中户能量)+ABS(散户能量))*10;
VAR1:=(C-MA(C,6))/MA(C,6)*100;
VAR2:=(C-MA(C,24))/MA(C,24)*100;
VAR3:=(C-MA(C,32))/MA(C,32)*100;
VAR4:=(VAR1+VAR2+VAR3)/3;
VAR5:=EMA(VAR4,5);
VAR6:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
VAR7:=SMA(SMA(100-3*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+SMA(2*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
VAR8:=VAR7<REF(VAR7,1) AND V>REF(V,1) AND C>REF(C,1);
K:=EMA(VAR5,5)*4;
D:=EMA(K,5);
J:=K*3-D*2;
机构意愿:主力能量,NODRAW;
游资意愿:大户能量,NODRAW;
大户意愿:中户能量,NODRAW;
散户意愿:散户能量,NODRAW;
市场意愿:LLV(VAR6,3)<VAR6,NODRAW;
主流意愿:J>D,NODRAW;
空方意愿:=VAR8>0,NODRAW;
STICKLINE(CLOSE,0,100,4,1),COLORWHITE;
STICKLINE(CLOSE,0,75,4,1),COLORWHITE;
STICKLINE(CLOSE,0,50,4,1),COLORWHITE;
STICKLINE(CLOSE,0,25,4,1),COLORWHITE;
STICKLINE(CLOSE,-25,-100,4,1),COLORWHITE;
STICKLINE(CLOSE,-25,-75,4,1),COLORWHITE;
STICKLINE(CLOSE,-25,-50,4,1),COLORWHITE;
STICKLINE(散户能量>=0,5,20,3,0),COLOR0000AA;
STICKLINE(散户能量>=0,5,20,2,0),COLOR0000CC;
STICKLINE(散户能量>=0,5,20,1,0),COLOR0000DD;
STICKLINE(散户能量<0,5,20,3,0),COLOR007B00;
STICKLINE(散户能量<0,5,20,2,0),COLOR009000;
STICKLINE(散户能量<0,5,20,1,0),COLOR00A800;
DRAWTEXT(ISLASTBAR=1,12.5,'散户意愿'),COLORGREEN;
STICKLINE(中户能量>=0,30,45,3,0),COLOR0000AA;
STICKLINE(中户能量>=0,30,45,2,0),COLOR0000CC;
STICKLINE(中户能量>=0,30,45,1,0),COLOR0000DD;
STICKLINE(中户能量<0,30,45,3,0),COLOR007B00;
STICKLINE(中户能量<0,30,45,2,0),COLOR009000;
STICKLINE(中户能量<0,30,45,1,0),COLOR00A800;
DRAWTEXT(ISLASTBAR=1,37.5,'大户意愿'),COLORMAGENTA;
STICKLINE(大户能量>=0,55,70,3,0),COLOR0000AA;
STICKLINE(大户能量>=0,55,70,2,0),COLOR0000CC;
STICKLINE(大户能量>=0,55,70,1,0),COLOR0000DD;
STICKLINE(大户能量<0,55,70,3,0),COLOR007B00;
STICKLINE(大户能量<0,55,70,2,0),COLOR009000;
STICKLINE(大户能量<0,55,70,1,0),COLOR00A800;
DRAWTEXT(ISLASTBAR=1,62.5,'游资意愿'),COLORYELLOW;
STICKLINE(主力能量>=0,80,95,3,0),COLOR0000AA;
STICKLINE(主力能量>=0,80,95,2,0),COLOR0000CC;
STICKLINE(主力能量>=0,80,95,1,0),COLOR0000DD;
STICKLINE(主力能量<0,80,95,3,0),COLOR007B00;
STICKLINE(主力能量<0,80,95,2,0),COLOR009000;
STICKLINE(主力能量<0,80,95,1,0),COLOR00A800;
DRAWTEXT(ISLASTBAR=1,87.5,'机构意愿'),COLORWHITE;
STICKLINE(VAR6=LLV(VAR6,3),-80,-95,3,0),COLORGREEN;
STICKLINE(LLV(VAR6,3)<VAR6,-80,-95,3,0),COLORRED;
DRAWTEXT(ISLASTBAR=1,-87.5,'市场意愿'),COLORWHITE;
STICKLINE(J<D,-55,-70,3,0),COLORCYAN;
STICKLINE(J>D,-55,-70,3,0),COLORMAGENTA;
DRAWTEXT(ISLASTBAR=1,-62.5,'主流意愿'),COLORRED;
STICKLINE(VAR8=0,-30,-45,3,0),COLOR6B8E23;
STICKLINE(VAR8>0,-30,-45,3,0),COLORYELLOW;
DRAWTEXT(ISLASTBAR=1,-37.5,'空方意愿'),COLORBLUE;