{龙头启动主图源码如下}
X_1:=MA(CLOSE,10);
X_2:=MA(CLOSE,54);
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 COUNT(CLOSE>OPEN,1) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
X_28:=X_25 AND CLOSE/REF(CLOSE,1)>1.095 AND X_27 AND X_26;
X_29:=REF(CLOSE,1);
X_30:=IF((CLOSE-X_29)*100/X_29>=10-0.01*100/X_29,1,0);
X_31:=EMA(CLOSE,9);
X_32:=MA(CLOSE,25)+MA(CLOSE,25)*20/100;
X_33:=MA(CLOSE,25)+MA(CLOSE,25)*6/100;
X_34:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
X_35:=EMA(X_31*1.14,5);
X_36:=LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2;
X_37:=CLOSE>X_33 AND CLOSE>X_34 AND CLOSE>X_36;
X_38:=COUNT(X_37,10)=1 AND X_37;
X_39:=BARSLAST(X_38);
X_40:=CROSS(CLOSE,X_35);
X_41:=COUNT(X_40,X_39)<=1 AND X_40;
X_42:=REF(X_41,1) AND OPEN>X_35 AND CLOSE>X_35;
X_43:=REF(X_41,1) AND CROSS(CLOSE,X_32) AND CLOSE>X_35;
X_44:=X_38 AND X_41;
X_45:=X_42 OR X_43;
X_46:=REF(X_30,1) AND OPEN>X_35 AND OPEN>REF(HIGH,1) AND REF(HIGH,1)<REF(X_35,1) AND LOW>=X_35;
X_47:=X_44 OR X_45 OR X_46 AND CLOSE>REF(CLOSE,1)*1.05;
X_48:=MA(CLOSE,1);
X_49:=SMA(SMA(SMA(X_48,2,1),2,1),2,1);
X_50:=MA(X_49,3);
X_51:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_52:=(20*X_51+19*REF(X_51,1)+18*REF(X_51,2)+17*REF(X_51,3)+16*REF(X_51,4)+15*REF(X_51,5)+14*REF(X_51,6)+13*REF(X_51,7)+12*REF(X_51,8)+11*REF(X_51,9)+10*REF(X_51,10)+9*REF(X_51,11)+8*REF(X_51,12)+7*REF(X_51,13)+6*REF(X_51,14)+5*REF(X_51,15)+4*REF(X_51,16)+3*REF(X_51,17)+2*REF(X_51,18)+REF(X_51,20))/210;
X_53:=MA(X_52,5);
DRAWTEXT_FIX(CLOSE>OPEN,0,0.07,0,27),COLOR666666;
DRAWBAND(X_49,RGB(255,255,0),X_50,RGB(0,0,255));
DRAWBAND(X_52,RGB(255,40,0),X_52,RGB(256,200,0));
STICKLINE(IF(CLOSE>REF(CLOSE,1)*1.096,2,0),OPEN,CLOSE,3,0),COLORRED;
DRAWTEXT(X_47=1,LOW*0.93,2),COLORYELLOW;
DRAWTEXT(X_28,LOW*0.99,3),COLORGREEN;
{龙头启动副图源码如下}
A:=REF((C>O),2);
A1:=REF((C>O),1);
A2:=C>O OR C=O;
A3:=REF(O,1)<REF(C,2);
A4:=O<REF(C,1);
A5:=REF((C-O),1)<REF((C-O),2);
A6:=(C-O)<REF((C-O),1);
A7:=REF(C,2)>REF(O,7)*1.05;
节奏1:A AND A1 AND A2 AND A3 AND A4 AND A5 AND A6 AND A7;
节奏2:A AND A1 AND A2 AND A3 AND A5 AND A6 AND A7;
Q:=REF((C<O),2);
Q1:=REF((C<O),1);
Q2:=C<O;
Q3:=REF((O-C),1)>REF((O-C),2);
Q4:=(O-C)>REF((O-C),1);
Q5:=REF(V,1)>REF(V,2) AND V>REF(V,1);
节奏3:Q AND Q1 AND Q2 AND Q3 AND Q4 AND Q5 AND A7;
S:=C>O AND C>REF(C,1) AND REF(C,1)>REF(C,2);
S1:=V<REF(V,1) AND REF(V,1)<REF(V,2);
S2:=H>REF(H,1) AND REF(H,1)>REF(H,2);
节奏4:A AND A1 AND A2 AND A7 AND S AND S1 AND S2;
W:=REF((C<O),2);
W1:=REF((C<O),1);
W2:=C<O ;
W3:=(REF((O-C),1))<(REF((O-C),2));
W4:=(O-C)<(REF((O-C),1));
W5:=V<REF(V,1) AND REF(V,1)<REF(V,2);
W6:=REF(C,3)>REF(C,7)*1.07;
W8:=C=O;
XG:=W AND W1 AND W8 AND W3 AND W4 AND W5 AND W6;
XG3:=W AND W1 AND W2 AND W3 AND W4 AND W5 AND W6;
W7:=C>O AND (C-O)<(REF((O-C),1));
XG1:=W AND W1 AND W7 AND W3 AND W5 AND W6;
节奏5:XG OR XG3 OR XG1 COLORRED;
DRAWTEXT_FIX(C-O>0,0.03,0.005,0,'1:冲拉一体'),COLORWHITE ;
DRAWTEXT_FIX(C-O>0,0.03,0.16,0,'2:阳线大小小'),COLORYELLOW ;
DRAWTEXT_FIX(C-O>0,0.03,0.32,0,'3:阴线放量小大大'),COLORMAGENTA ;
DRAWTEXT_FIX(C-O>0,0.03,0.48,0,'4:缩量创新高'),COLORGREEN ;
DRAWTEXT_FIX(C-O>0,0.03,0.64,0,'5:阴线大小小'),COLORRED ;
DRAWTEXT_FIX(C-O>0,0.15,0.005,0,'6、启动'),COLORYELLOW ;
DRAWTEXT_FIX(C-O>0,0.15,0.16,0,'7、炸板'),COLORMAGENTA ;
DRAWTEXT_FIX(C-O>0,0.15,0.32,0,'8、异动'),COLORGREEN ;
DRAWTEXT_FIX(C-O>0,0.15,0.48,0,'9、打回阴'),COLORLICYAN ;
DRAWTEXT_FIX(C-O>0,0.15,0.64,0,'10、K线对比'),COLORLIGRAY;
DRAWTEXT(节奏1,0.95,'冲拉一体')COLORWHITE;
DRAWTEXT(节奏2,0.78,'阳线大小小')COLORYELLOW;
DRAWTEXT(节奏3,0.58,'阴线小大大')COLORMAGENTA;
DRAWTEXT(节奏4,0.48,'缩量创新高')COLORGREEN;
DRAWTEXT(节奏5,0.28,'阴线大小小')COLORRED;
K2:=REF(C,1);
K:=IF((H/K2*100-100>=9.86),1,0) AND C<H;
K1:=K AND C>O;
炸板:=K1 COLORRED;
上引:=((IF((H/K2*100-100>=7),1,0) AND C<H)AND C<(((H-O)*0.7)+O));
上引线:=上引 AND C>O;
DRAWTEXT(上引线,0.65,'上引线')COLORGREEN;
STICKLINE(炸板,0,0.65,2,0)COLORRED;
STICKLINE(上引线,0,0.5,2,0)COLORGREEN;
DRAWTEXT(炸板,0.5,'炸板')COLORMAGENTA;
G:=C>REF(C,1) AND C>REF(C,2) AND C>REF(C,3) AND C>REF(C,4) AND C>REF(C,5) AND C>REF(C,6) AND
C>REF(C,7) AND C>REF(C,8) AND C>REF(C,9) AND C>REF(C,10) AND C>REF(C,11) AND
C>REF(C,12) AND C>REF(C,13) AND C>REF(C,14) AND C>REF(C,15) AND C>REF(C,16) AND
C>REF(C,17) AND C>REF(C,18) AND C>REF(C,19) AND C>REF(C,20) AND C>REF(C,21)AND C>REF(C,22);
F2:=REF(C,1);
F:=IF((H/F2*100-100>=9.86),1,0) AND C<H;
F1:=G AND F AND C>O;
炸板1:=F1;
上引1:=((IF((H/F2*100-100>=7),1,0) AND C<H)AND C<(((H-O)*0.7)+O));
上引线1:=G AND (上引1 AND C>O)*0.5;
启动:=炸板1 OR 上引线1;
STICKLINE(启动,0,0.25,3,0)COLORMAGENTA;
DRAWTEXT(启动,0.25,'启动')COLORYELLOW;
N:=REF(C,3);
G0:=REF((C>O),3);
G1:=REF((C>O),2);
G2:=REF(C,2)>(N*1.098);
G3:=REF(C,1)>REF(C,2) AND REF(O,1)>REF(C,2);
G4:=C<O AND C<REF((O+((C-O)*0.5)),2);
X0G:=G0 AND G1 AND G2 AND G3 AND G4;
Y:=REF(C,4);
Y0:=REF((C>O),4);
Y1:=REF((C>O),3);
Y2:=REF(C,3)>(Y*1.098);
Y3:=REF(C,2)>REF(C,3) AND REF(O,2)>REF(C,3);
Y4:=C<O AND C<REF((O+((C-O)*0.5)),3);
X1G1:=Y0 AND Y1 AND Y2 AND Y3 AND Y4;
U:=REF(C,5);
U01:=REF((C>O),5);
U1:=REF((C>O),4);
U2:=REF(C,4)>(U*1.098);
U3:=REF(C,3)>REF(C,4) AND REF(O,3)>REF(C,4);
U4:=C<O AND C<REF((O+((C-O)*0.5)),4);
X1G2:=U01 AND U1 AND U2 AND U3 AND U4;
打回阴:X0G OR X1G1 OR X1G2 COLORLICYAN;
DRAWTEXT(打回阴,0.45,'打回')COLORYELLOW;
A111:=C>O;
A0111:=REF((C<O),1);
A1111:=REF((C>O),2);
A2111:=REF((C>O),3);
A3111:=REF((C<O),4);
A4111:=REF((C<O),5);
A5111:=REF((C>O),6);
A6111:=REF((C>O),7);
A7111:=REF((C<O),8);
A8111:=REF((C<O),9);
A9111:=C<(REF(C,22)-(REF(C,22)*0.07));
XG111:=A111 AND A0111 AND A1111 AND A2111 AND A3111 AND A4111 AND A5111 AND A6111 AND A7111 AND A8111 AND A9111;
Q111:=C>O;
Q0111:=REF((C<O),1);
Q1111:=REF((C>O),2);
Q2111:=REF((C>O),3);
Q3111:=REF((C<O),4);
Q4111:=REF((C<O),5);
Q5111:=REF((C>O),6);
Q6111:=REF((C>O),7);
Q7111:=REF((C<O),8);
Q8111:=REF((C<O),9);
A10:=REF((C<O),3);A11:=REF((C>O),5);A12:=REF((C<O),6);A13:=REF((C<O),7);
Q9111:=C<(REF(C,22)-(REF(C,22)*0.07));
XG1111:=Q111 AND Q0111 AND Q1111 AND Q2111 AND Q3111 AND Q5111 AND Q6111 AND Q7111 AND Q8111 AND Q9111;
XG2111:=Q111 AND Q0111 AND Q1111 AND Q2111 AND Q3111 AND Q4111 AND Q6111 AND Q7111 AND Q8111 AND Q9111;
XG3111:=Q111 AND Q0111 AND Q1111 AND Q2111 AND Q3111 AND Q5111 AND Q7111 AND Q8111 AND Q9111;
XG4:A111 AND A0111 AND A1111 AND A10 AND A3111 AND A11 AND A12 AND A7111 AND A13 AND A9111;
选股:XG111 OR XG1111 OR XG2111 OR XG3111 OR XG4 COLORLIGRAY;
DRAWTEXT(选股,0.45,'对比')COLORLIGRAY;