主图
参数 天数 5 300 20
X_1:=STRCAT(4,STRCAT(STRCAT(STRCAT(5,HYBLOCK),STRCAT(6,DYBLOCK)),STRCAT(7,GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,X_1);
均价:AMOUNT/VOL/100,NODRAW,COLORWHITE;
X_2:=(CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10;
STICKLINE(X_2=1,OPEN,CLOSE,3,0),COLORMAGENTA;
X_3:=MIN(CLOSE,OPEN)>REF(MAX(CLOSE,OPEN),1);
明日涨停参考:CLOSE*1.1,NODRAW,COLORWHITE;
STICKLINE(X_3=1,OPEN,CLOSE,0.4,0),COLORYELLOW;
价柱腰价:(LOW+HIGH)/2,NODRAW,COLORWHITE;
实体腰价:(OPEN+CLOSE)/2,NODRAW,COLORWHITE;
价柱上三一价:MAX(HIGH,LOW)-(HIGH-LOW)/3,NODRAW,COLORWHITE;
价柱下三一价:MIN(HIGH,LOW)+(HIGH-LOW)/3,NODRAW,COLORWHITE;
实体上三一价:MAX(OPEN,CLOSE)-ABS(OPEN-CLOSE)/3,NODRAW,COLORWHITE;
实体下三一价:MIN(OPEN,CLOSE)+ABS(OPEN-CLOSE)/3,NODRAW,COLORWHITE;
X_4:=FINDHIGHBARS(VOL,1,天数,1);
X_5:=FINDHIGHBARS(VOL,X_4+5,天数,1);
X_6:=FINDHIGHBARS(VOL,10,100,1);
X_7:=FINDLOWBARS(VOL,5,100,1);
X_8:=CURRBARSCOUNT;
X_9:=0;
X_10:=CONST(X_4);
X_11:=CONST(X_5);
X_12:=CONST(X_6);
X_13:=CONST(X_7);
X_14:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),X_10+X_9));
X_15:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),X_10+X_9));
DRAWICON(CURRBARSCOUNT=X_10+1,LOW*0.98,38),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=X_10,X_14,X_14,4,1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT<=X_10,X_15,X_15,2,(-1)),COLORMAGENTA;
X_16:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),X_11+X_9));
X_17:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),X_11+X_9));
DRAWICON(CURRBARSCOUNT=X_11+1,LOW*0.98,11),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=X_11,X_16,X_16,4,1),COLORLICYAN;
STICKLINE(CURRBARSCOUNT<=X_11,X_17,X_17,2,(-1)),COLORLICYAN;
X_18:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),X_12));
DRAWICON(CURRBARSCOUNT=X_12+1,HIGH,35),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=X_12,X_18,X_18,4,(-1)),COLORRED;
X_19:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),X_13));
DRAWICON(CURRBARSCOUNT=X_13+1,LOW*0.97,34),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=X_13,X_19,X_19,1,(-1)),COLORRED;
主力资金运行副图
M3:=MA(CLOSE,3),COLORRED;
M13:=MA(CLOSE,13),COLORRED;
M34:=MA(CLOSE,34),COLORRED;
X:=BARSLAST(REF(CROSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA(C,120));
STICKLINE(M3>=M13 AND M34>=REF(M34,1),8,9,1,1 ),COLORRED;
STICKLINE(M3<M13 AND M34>=REF(M34,1),8,9,1,1 ),COLORYELLOW;
STICKLINE(M3<M13 AND M34<ref(m34,1),8,9,1,1 ),colorgreen;<="" span="">
STICKLINE(M3>=M13 AND M34<REF(M34,1),8,9,1,1 ),COLORMAGENTA;
XG:=(M3>=M13 AND M34<REF(M34,1))OR (M3>=M13 AND M34>=REF(M34,1))AND REF((M3<m13 and="" m34<ref(m34,1)),1);<="" span=""></ref(m34,1)),1);<="">
XG1:=(M3>=M13 AND M34>=REF(M34,1))AND REF((M3<M13 AND M34>=REF(M34,1)),1);
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORGREEN{COLORRED};
马线:=MA(牛线,6),COLORMAGENTA{COLORYELLOW};
STICKLINE(C>牛线,6,7,2,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C<马线,6,7,2,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(牛线>=C AND C>=马线,6,7,2,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
STICKLINE(C>=A,4,5,2,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C<=B,4,5,2,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(A>=C AND C>=B,4,5,2,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
E:=MAX(MA(C,45),MA(C,90));
F:=MIN(MA(C,45),MA(C,90));
STICKLINE(C>E,2,3,2,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C<F,2,3,2,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(E>=C AND C>=F,2,3,2,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
J:=MAX(MA(C,30),MA(C,60));
K:=MIN(MA(C,30),MA(C,60));
STICKLINE(C>J,0,1,2,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C<K,0,1,2,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(J>=C AND C>=K,0,1,2,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
量化异动副图
STICKLINE(CLOSE,30,40,4,1),COLOR404000;
STICKLINE(CLOSE,20,30,4,1),COLOR404000;
STICKLINE(CLOSE,0,20,4,1),COLOR404000;
STICKLINE(CLOSE,0,10,4,1),COLOR404000;
XA_1:=EMA(CLOSE,5);
XA_2:=EMA(VOL,5);
XA_3:=MA(CLOSE,5);
XA_4:=MA(CLOSE,10);
XA_5:=MA(CLOSE,20);
XA_6:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
XA_7:=CLOSE>XA_3;
XA_8:=CLOSE>XA_4;
XA_9:=CLOSE>XA_5;
XA_10:=XA_3>XA_4;
XA_11:=XA_3>XA_5;
XA_12:=REF(XA_5,1);
XA_13:=XA_5>XA_12;
XA_14:=IF(XA_7,10,0-10)+IF(XA_8,10,0-10)+IF(XA_9,10,0-10)+IF(XA_10,10,0-10)+IF(XA_11,10,0-10)+IF(XA_13,10,0-10);
XA_15:=ATAN((XA_1/REF(XA_1,1)-1)*100)*180/3.1416;
XA_16:=ATAN((XA_2/REF(XA_2,1)-1)*100)*180/3.1416;
XA_17:=CLOSE>XA_6 AND OPEN>XA_6 AND CLOSE>OPEN AND XA_15>50 AND XA_16>70;
XA_18:=FILTER(XA_17,13);
XA_19:=XA_18<=0;
XA_20:=BARSLAST(NOT(XA_19));
XA_21:=MA(LOW+(HIGH-LOW)/2,26)*1.15;
XA_22:=MA(LOW+(HIGH-LOW)/2,26)*0.95;
XA_23:=(XA_21+XA_22)/2;
XA_24:=(MA(CLOSE,5)+MA(OPEN,5))/2*1.06;
XA_25:=(MA(CLOSE,5)+MA(OPEN,5))/2*0.98;
XA_26:=(XA_24+XA_25)/2;
XA_27:=XA_24>XA_22;
XA_28:=XA_24>XA_23;
XA_29:=XA_24>XA_21;
XA_30:=XA_26>XA_22;
XA_31:=XA_26>XA_23;
XA_32:=XA_26>XA_21;
XA_33:=XA_25>XA_22;
XA_34:=XA_25>XA_23;
XA_35:=XA_25>XA_21;
XA_36:=IF(XA_27,10,0-10)+IF(XA_28,10,0-10)+IF(XA_29,10,0-10)+IF(XA_30,10,0-10)+IF(XA_31,10,0-10)+IF(XA_32,10,0-10)+IF(XA_33,10,0-10)+IF(XA_34,10,0-10)+IF(XA_35,10,0-10);
XA_37:=EMA(EMA(EMA(CLOSE,13),13),13);
XA_38:=ATAN((XA_37/REF(XA_37,1)-1)*100)*180/3.1416;
XA_39:=XA_38>0;
XA_40:=BARSLAST(NOT(XA_39));
XA_41:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
XA_42:=CEILING(SMA(XA_41,13,8));
XA_43:=XA_42<10 AND XA_14=(-60) AND XA_15<(-60);
XA_44:=BARSLAST(NOT(XA_43<1));
STICKLINE(XA_43>0,1,9,3,1),COLORRED;
STICKLINE(XA_18=1,11,19,3,1),COLORMAGENTA;
STICKLINE(XA_36=10 AND REF(XA_36<10,1),21,29,3,1),COLORGREEN;
STICKLINE(XA_40=1,31,39,3,1),COLORYELLOW;
DRAWNUMBER(XA_39>=0,36,XA_40),COLORWHITE;
DRAWNUMBER(XA_36>=0,26,XA_36),COLORWHITE;
DRAWNUMBER(XA_36<0,26,0),COLORWHITE;
DRAWNUMBER(XA_18<=1,16,XA_20),COLORWHITE;
DRAWNUMBER(XA_43>=0,6,XA_44),COLORWHITE;
钻石区间副图
VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);
VAR2:=EMA(VAR1,9);
VAR3:=VAR1>VAR2;
VAR4:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
VAR5:=SMA(VAR4,3,1);
VAR6:=SMA(VAR5,3,1);
VAR7:=VAR5>VAR6;
VAR8:=REF(CLOSE,1);
VAR9:=SMA(MAX(CLOSE-VAR8,0),9,1)/SMA(ABS(CLOSE-VAR8),9,1)*100;
VAR10:=SMA(MAX(CLOSE-VAR8,0),26,1)/SMA(ABS(CLOSE-VAR8),26,1)*100;
VAR11:=VAR9>VAR10;
VAR12:=SMA(VAR4,3,1);
VAR13:=SMA(VAR12,3,1);
VAR14:=VAR12>VAR13;
VAR15:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;
VAR16:=CLOSE>VAR15;
VAR17:=CLOSE-REF(CLOSE,1);
VAR18:=100*EMA(EMA(VAR17,9),9)/EMA(EMA(ABS(VAR17),9),3);
VAR19:=100*EMA(EMA(VAR17,26),12)/EMA(EMA(ABS(VAR17),26),12);
VAR20:=VAR18>VAR19;
VAR21:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
VAR22:=REF(EMA(VAR21,3),1);
VAR23:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
VAR24:=IF(CLOSE>OPEN,VAR23*(HIGH-LOW),IF(CLOSE<OPEN,VAR23*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-VAR23*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<open,0-var23*(high-low),0-vol 2));<="" span="">
VAR25:=VAR24/20/1.15;
VAR26:=VAR25*0.55+REF(VAR25,1)*0.33+REF(VAR25,2)*0.22;
VAR27:=EMA(VAR26,8);
VAR28:=EMA(VAR26,3);
VAR29:=VAR28;
VAR30:=VOL;
VAR31:=MA(VAR30,5);
VAR32:=MA(VAR30,10);
VAR33:=VAR31>=VAR32;
VAR34:=VAR29>=0;
VAR35:=VAR34 AND VAR33;
DRAWICON(VAR35,1,25);
VAR36:=MA(KDJ.K#WEEK(9,3,3),5);
VAR37:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
VAR38:=EMA(VAR37,9/2);
VAR39:=VAR36>=REF(VAR36,1) AND VAR37>=VAR38;
VAR40:=VAR39 OR VAR35;
VAR41:=VAR3 AND VAR7 AND VAR11 AND VAR14 AND VAR16 AND VAR20;
VAR42:=COST(50)*COST(50)/COST(80);
VAR43:=COST(40)*COST(40)/COST(60);
VAR44:=VAR43-VAR42;
VAR45:=VAR44>0 AND CLOSE>VAR43;
VAR46:=VAR44<0 AND CLOSE>VAR42;
VAR47:=VAR45 OR VAR46 OR (VAR45 AND VAR46);
VAR48:=VAR47=0 OR (VAR44>0 AND CLOSE>VAR43 AND CLOSE<MA(CLOSE,10)) OR (VAR44<0 AND CLOSE>VAR42 AND CLOSE<ma(close,5));< span=""></ma(close,5));<>
STICKLINE(VAR48,0.5,0.8,3,0),COLORGREEN;
STICKLINE(VAR48,0.5,0.8,2.5,0),COLOR006000;
STICKLINE(VAR48,0.5,0.8,2,0),COLOR007500;
STICKLINE(VAR48,0.5,0.8,1.5,0),COLOR009100;
STICKLINE(VAR48,0.5,0.8,1,0),COLOR00A600;
STICKLINE(VAR48,0.5,0.8,0.5,0),COLOR00BB00;
STICKLINE(VAR48,0.5,0.8,0,0),COLOR00CC00;
STICKLINE(VAR47,0.5,0.8,3,0),COLORYELLOW;
STICKLINE(VAR47,0.5,0.8,2.5,0),COLOR0035FF;
STICKLINE(VAR47,0.5,0.8,2,0),COLOR0064FF;
STICKLINE(VAR47,0.5,0.8,1.3,0),COLOR0093FF;
STICKLINE(VAR47,0.5,0.8,0.8,0),COLOR00C2FF;
STICKLINE(VAR47,0.5,0.8,0.3,0),COLOR00FFFF;
STICKLINE(VAR41,0.5,0.8,3,0),COLORRED;
STICKLINE(VAR41,0.5,0.8,2.5,0),COLOR000055;
STICKLINE(VAR41,0.5,0.8,2,0),COLOR000077;
STICKLINE(VAR41,0.5,0.8,1.5,0),COLOR000099;
STICKLINE(VAR41,0.5,0.8,1,0),COLOR0000BB;
STICKLINE(VAR41,0.5,0.8,0.5,0),COLOR0000DD;
STICKLINE(VAR41,0.5,0.8,0,0),COLOR0000FF;
DRAWICON(VAR47 OR VAR41 AND REF(VAR47 OR VAR41,1)=0 AND VAR40,0.5,25);
短线出击副图选股
X_1:=WINNER(CLOSE)*100;
X_2:=X_1-REF(X_1,1);
X_3:=EMA(X_1,5);
X_4:=EMA(IF(LOW<=LLV(LOW,30),SMA(ABS(LOW-REF(LOW,1)),30,1)/SMA(MAX(LOW-REF(LOW,1),0),30,1),0),3)*10;
X_5:=REF(X_4,1)=0 AND X_4>10 AND X_4<15;
X_6:=CROSS(X_1,X_3);
X_7:=REF(X_5,1) OR REF(X_5,2);
X_8:=X_3>20;
X_9:=VOL/REF(VOL,1)>1.5 OR VOL/REF(VOL,2)>1.5;
X_10:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_11:=SMA(X_10,3,1);
X_12:=SMA(X_11,3,1);
X_13:=3*X_11-2*X_12;
X_14:=EMA(X_13,5);
XG:X_7 AND X_6 AND X_8 AND X_13>X_14 AND X_13>REF(X_13,1);