主图
X_1:=ABS(CLOSE-REF(CLOSE,30));
X_2:=SUM(ABS(CLOSE-REF(CLOSE,1)),30);
X_3:=X_1/X_2;
X_4:=X_3*(0.8-2/24)+2/24;
X_5:=X_4*X_4;
X_6:=EMA(DMA(CLOSE,X_5),2);
X_7:=CLOSE>X_6 AND X_6>REF(X_6,1);
X_8:=CLOSE<X_6 AND X_6<=REF(X_6,1);
X_9:=CONST(IF(X_7,200,IF(X_8,0,DRAWNULL)));
X_10:=CONST(IF(X_7,0,IF(X_8,20,DRAWNULL)));
X_11:=CONST(IF(X_7,0,IF(X_8,0,DRAWNULL)));
DRAWGBK(CLOSE>0,RGB(X_9,X_10,X_11),RGB(0,120,120),0,54,0);
ZK1:XMA(XMA(HIGH,21),21)-(XMA(XMA(LOW,21),21)-XMA(XMA(HIGH,21),21)),DOTLINE,COLORFF9933;
ZD1:XMA(XMA(LOW,21),21)-(XMA(XMA(HIGH,21),21)-XMA(XMA(LOW,21),21)),DOTLINE,COLORFF9933;
EXP1:EMA(CLOSE,12),COLORWHITE,LINETHICK2;
EXP2:EMA(CLOSE,50),COLORYELLOW,LINETHICK2;
X_12:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<(-14);
X_13:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
X_14:=REF(X_13,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_15:=REF(X_14,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_16:=REF(X_15,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_17:=REF(X_16,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_18:=REF(X_17,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_19:=REF(X_18,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_20:=REF(X_19,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_21:=REF(X_20,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_22:=REF(X_21,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_23:=REF(X_22,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_24:=REF(X_23,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_25:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);
X_26:=REF(X_25,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_27:=REF(X_26,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_28:=REF(X_27,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_29:=REF(X_28,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_30:=REF(X_29,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_31:=REF(X_30,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_32:=REF(X_31,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_33:=REF(X_32,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_34:=REF(X_33,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_35:=REF(X_34,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
X_36:=REF(X_35,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
X_37:=REF(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 OR X_36,1) AND X_13;
X_38:=REF(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,1) AND X_25;
红持股:X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,NODRAW,COLORRED;
青观望:X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 OR X_36,NODRAW,COLORCYAN;
短买:X_37,NODRAW,COLOR33FFCC;
品红离场:X_38,NODRAW,COLORFF00DD;
STICKLINE(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,CLOSE,REF(CLOSE,1),2.6,0),COLOR000099;
STICKLINE(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,CLOSE,REF(CLOSE,1),2.4,0),COLOR0000AA;
STICKLINE(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,CLOSE,REF(CLOSE,1),2.2,0),COLOR0000BB;
STICKLINE(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,CLOSE,REF(CLOSE,1),2,0),COLOR0000CC;
STICKLINE(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,CLOSE,REF(CLOSE,1),1.8,0),COLOR0000DD;
STICKLINE(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,CLOSE,REF(CLOSE,1),1.5,0),COLOR0000EE;
STICKLINE(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,CLOSE,REF(CLOSE,1),1,0),COLORRED;
STICKLINE(X_13 OR X_14 OR X_15 OR X_16 OR X_17 OR X_18 OR X_19 OR X_20 OR X_21 OR X_22 OR X_23 OR X_24,LOW,HIGH,0,0),COLORRED;
STICKLINE(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 OR X_36,CLOSE,REF(CLOSE,1),2.6,0),COLOR999900;
STICKLINE(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 OR X_36,CLOSE,REF(CLOSE,1),2.4,0),COLORAAAA00;
STICKLINE(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 OR X_36,CLOSE,REF(CLOSE,1),2,2),COLORBBBB00;
STICKLINE(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 OR X_36,CLOSE,REF(CLOSE,1),1.8,0),COLORDDDD00;
STICKLINE(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 OR X_36,CLOSE,REF(CLOSE,1),1.5,0),COLOREEEE00;
STICKLINE(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 OR X_36,CLOSE,REF(CLOSE,1),1,0),COLORCYAN;
STICKLINE(X_25 OR X_26 OR X_27 OR X_28 OR X_29 OR X_30 OR X_31 OR X_32 OR X_33 OR X_34 OR X_35 OR X_36,LOW,HIGH,0,0),COLORCYAN;
STICKLINE(X_37,REF(CLOSE,1),REF(CLOSE,2),2.8,0),COLOR33AACC;
STICKLINE(X_37,REF(CLOSE,1),REF(CLOSE,2),2.4,0),COLOR33BBCC;
STICKLINE(X_37,REF(CLOSE,1),REF(CLOSE,2),2,2),COLOR33CCCC;
STICKLINE(X_37,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR33DDCC;
STICKLINE(X_37,REF(CLOSE,1),REF(CLOSE,2),1.8,0),COLOR33EECC;
STICKLINE(X_37,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLOR33FFCC;
DRAWTEXT(X_37,REF(CLOSE,1),55),COLOR33FFCC;
STICKLINE(X_38,REF(CLOSE,1),REF(CLOSE,2),2.8,0),COLORFF33FF;
STICKLINE(X_38,REF(CLOSE,1),REF(CLOSE,2),2,0),COLORFF55FF;
STICKLINE(X_38,REF(CLOSE,1),REF(CLOSE,2),1.8,0),COLORFF66FF;
STICKLINE(X_38,REF(CLOSE,1),REF(CLOSE,2),1.5,0),COLORFF77FF;
STICKLINE(X_38,REF(CLOSE,1),REF(CLOSE,2),1.3,0),COLORFF88FF;
STICKLINE(X_38,REF(CLOSE,1),REF(CLOSE,2),1,0),COLORFF99FF;
DRAWTEXT(X_38,REF(CLOSE,1)+0.1,56),COLORFF99FF;
X_39:=MA(CLOSE,3);
X_40:=(3*CLOSE+LOW+OPEN+HIGH)/6;
金线:(20*X_40+19*REF(X_40,1)+18*REF(X_40,2)+17*REF(X_40,3)+16*REF(X_40,4)+15*REF(X_40,5)+14*REF(X_40,6)+13*REF(X_40,7)+12*REF(X_40,8)+11*REF(X_40,9)+10*REF(X_40,10)+9*REF(X_40,11)+8*REF(X_40,12)+7*REF(X_40,13)+6*REF(X_40,14)+5*REF(X_40,15)+4*REF(X_40,16)+3*REF(X_40,17)+2*REF(X_40,18)+REF(X_40,20))/211,COLORRED;
银线:MA(CLOSE,26),COLORMAGENTA;
X_41:=IF(X_39>金线,金线,X_39);
IF(X_41>REF(X_41,1),X_41,DRAWNULL),COLORRED,LINETHICK2;
IF(金线>REF(金线,1),金线,DRAWNULL),COLORRED,LINETHICK2;
IF(金线<REF(金线,1),金线,DRAWNULL),COLORGREEN;
IF(银线>REF(银线,1),银线,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(银线<REF(银线,1),银线,DRAWNULL),COLOR669933;
X_42:=STRCAT(57,STRCAT(STRCAT(STRCAT(58,HYBLOCK),STRCAT(59,DYBLOCK)),STRCAT(60,GNBLOCK)));
X_43:=STRCAT(STRCAT(61,CON2STR(TOTALCAPITAL/1000000,2)),62);
X_44:=STRCAT(STRCAT(63,CON2STR(CAPITAL/1000000,2)),62);
X_45:=STRCAT(64,CON2STR(CAPITAL/1000000/(TOTALCAPITAL/1000000),2));
X_46:=STRCAT(STRCAT(65,CON2STR(CAPITAL/1000000*CLOSE,2)),62);
X_47:=STRCAT(66,STRCAT(STRCAT(STRCAT(X_43,X_44),X_45),X_46));
X_48:=STRCAT(67,CON2STR(FINANCE(29)/FINANCE(19)*100,2));
X_49:=STRCAT(68,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2));
X_50:=STRCAT(69,CON2STR(FINANCE(23)/FINANCE(20)*100,2));
X_51:=STRCAT(70,STRCAT(STRCAT(X_48,X_49),X_50));
DRAWTEXT_FIX(ISLASTBAR,0.005,0.06,0,X_42),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.12,0,X_47),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.18,0,X_51),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.005,0.22,0,STRCAT(124,125)),COLORGREEN;
DRAWTEXT_FIX(CLOSE>OPEN,0.01,0.85,0,71),COLORMAGENTA;
DRAWTEXT_FIX(1,0.08,0.85,0,STRCAT(72,ZDBLOCK)),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.9,0,FGBLOCK),COLORWHITE;
X_52:=EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8);
X_53:=EMA(X_52,5);
X_54:=REFDATE(REF(HHV(HIGH,96),5),DATE);
X_55:=REFDATE(REF(LLV(LOW,96),5),DATE);
X_56:=(X_54+X_55)/2;
箱顶:IF(X_52>0 AND X_52-X_53<=0,X_54,X_54),DOTLINE,COLORGREEN;
箱腰:IF(X_52>0 AND X_52-X_53<=0,X_56,X_56),DOTLINE,COLORYELLOW;
箱低:IF(X_52>0 AND X_52-X_53<=0,X_55,X_55),DOTLINE,COLORRED;
DRAWTEXT(ISLASTBAR,箱顶,73),COLORYELLOW;
DRAWTEXT(ISLASTBAR,箱腰,74),COLORYELLOW;
DRAWTEXT(ISLASTBAR,箱低,75),COLORYELLOW;
X_57:=IF(CLOSE>150,91.300003,0.913);
STICKLINE(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),箱低,箱腰,0.1,(-1)),COLORRED;
STICKLINE(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),箱顶,箱腰,0.1,(-1)),COLORGREEN;
DRAWICON(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),箱腰,11);
DRAWICON(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),箱腰,2);
金牛5:(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25),COLORBLUE,LINETHICK3;
X_58:=(HHV(HIGH,10)/LLV(LOW,10)-1)*100<15;
X_59:=REF(X_58,1) AND CLOSE>REF(HHV(CLOSE,10),1);
X_60:=BARSLAST(X_59);
X_61:=BARSLAST(CROSS(COST(70)*106>MA(CLOSE,555)*100,0.5));
X_62:=REF(金牛5>MAX(MA(CLOSE,120),MAX(MA(CLOSE,258),MAX(MA(CLOSE,369),MAX(MA(CLOSE,444),MA(CLOSE,555))))) AND MA(CLOSE,10)>MAX(MA(CLOSE,120),MAX(MA(CLOSE,258),MAX(MA(CLOSE,369),MAX(MA(CLOSE,444),MA(CLOSE,555))))) AND (MA(CLOSE,20)>REF(MA(CLOSE,20),1) OR MA(CLOSE,30)>REF(MA(CLOSE,30),1)),1);
X_63:=REF(MA(CLOSE,60)*100.199997>REF(MA(CLOSE,60),1)*100 AND MA(CLOSE,369)*100.199997>REF(MA(CLOSE,369),1)*100 AND MA(CLOSE,444)*100.199997>REF(MA(CLOSE,444),1)*100 AND MA(CLOSE,555)*100.25>REF(MA(CLOSE,555),1) AND MA(CLOSE,555)>1,1) AND X_62;
X_64:=REF(COUNT(CROSS(COST(70)*106>MA(CLOSE,555)*100,0.5),X_60)>0,1) OR REF(COUNT(X_59,X_61)>0,1) AND (MA(CLOSE,60)>=REF(MA(CLOSE,60),1) OR REF(MA(CLOSE,120)*100.300003>REF(MA(CLOSE,120)*100,1) AND MA(CLOSE,444)*100.400002>REF(MA(CLOSE,444),1)*100,1));
X_65:=REF(X_64 AND COST(70)*114>MA(CLOSE,555)*100 AND MA(CLOSE,60)*100.400002>=REF(MA(CLOSE,60),1)*100 AND MA(CLOSE,555)*100.25>=REF(MA(CLOSE,555),1) AND MA(CLOSE,10)>MAX(MA(CLOSE,120),MAX(MA(CLOSE,258),MAX(MA(CLOSE,369),MAX(MA(CLOSE,444),MA(CLOSE,555))))) AND 金牛5>MAX(MA(CLOSE,120),MAX(MA(CLOSE,258),MAX(MA(CLOSE,369),MAX(MA(CLOSE,444),MA(CLOSE,555))))) AND MA(CLOSE,555)>1,1);
X_66:=REF(金牛5*140>MAX(MA(CLOSE,120),MAX(MA(CLOSE,258),MAX(MA(CLOSE,369),MAX(MA(CLOSE,444),MA(CLOSE,555)))))*100 AND 金牛5*100>REF(金牛5,1)*100.050003 AND MA(CLOSE,555)>1,1);
DRAWICON(CROSS(ZIG(3,12),REF(ZIG(3,12),1)),LOW*1.08,7);
DRAWICON(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),LOW*1.05,1);
X_67:=CROSS(REF(CROSS(ZIG(3,8),REF(ZIG(3,8),1)) AND 金牛5*100.199997>=REF(金牛5,1)*100,1) AND (X_66 OR X_65 OR X_63),0.5);
X_68:=CROSS(REF(CROSS(ZIG(3,10),REF(ZIG(3,10),1)) AND 金牛5*100.199997>=REF(金牛5,1)*100,1) AND (X_66 OR X_65 OR X_63),0.5);
X_69:=DYNAINFO(4)=0;
X_70:=NOT(NAMELIKE(17) OR NAMELIKE(32) OR X_69);
DRAWTEXT(CROSS(X_67 OR X_68,0.5),LOW,123),COLORYELLOW;
DRAWICON(CROSS(X_67 OR X_68,0.5),LOW,9);
X_71:=(CLOSE+HIGH+OPEN+LOW)/4;
卖出:XMA(X_71,20)*(1+80/1000),NODRAW;
买入:XMA(X_71,32)*(1-100/1000),NODRAW;
X_72:=100*(卖出-买入)/买入;
X_73:=买入+(卖出-买入)*2/3;
X_74:=XMA(CLOSE,7);
X_75:=MEMA(CLOSE,3);
十五:DRAWICON(LONGCROSS(X_75,X_74,3) AND HIGH>X_73,HIGH*1.02,12);
X_76:=CLOSE-REF(CLOSE,1);
X_77:=100*EMA(EMA(X_76,6),6)/EMA(EMA(ABS(X_76),6),6);
X_78:=CROSS(EMA(CLOSE,19),EMA(CLOSE,7));
X_79:=CROSS(EMA(CLOSE,7),EMA(CLOSE,19));
X_80:=LOW=LLV(LOW,BARSLAST(X_78)+1);
X_81:=LLV(LOW,BARSLAST(X_78)+1);
X_82:=HIGH=HHV(HIGH,BARSLAST(X_79)+1);
X_83:=HHV(HIGH,BARSLAST(X_79)+1);
X_84:=DRAWLINE(X_80,X_81,X_82,X_83,0);
X_85:=HIGH=HHV(HIGH,BARSLAST(X_79)+1);
X_86:=HHV(HIGH,BARSLAST(X_79)+1);
X_87:=LOW=LLV(LOW,BARSLAST(X_78)+1);
X_88:=LLV(LOW,BARSLAST(X_78)+1);
X_89:=DRAWLINE(X_85,X_86,X_87,X_88,0);
X_90:=IF(X_89<REF(X_89,1) AND X_89=X_84,1,0);
X_91:=REF(X_90,1)=0 AND X_90>=1;
DRAWICON(X_91,LOW*0.98,34);
X_92:=REF(X_84<REF(X_84,1) AND X_89=X_84,1)=0 AND X_90<1;
DRAWICON(X_92,HIGH*1.02,35);
X_93:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_94:=SMA(X_93,3,1);
X_95:=SMA(X_94,3,1);
X_96:=3*X_94-2*X_95;
X_97:=CLOSE-REF(CLOSE,1);
X_98:=100*EMA(EMA(X_97,6),6)/EMA(EMA(ABS(X_97),6),6);
X_99:=LLV(X_98,2)=LLV(X_98,7) AND COUNT(X_98<0,2) AND CROSS(X_98,MA(X_98,2));
STICKLINE(X_99,OPEN,CLOSE,4,0),COLORWHITE;
X_100:=REF(CLOSE,1);
X_101:=SMA(MAX(CLOSE-X_100,0),7,1)/SMA(ABS(CLOSE-X_100),7,1)*1000;
X_102:=DRAWLINE(X_101>=HHV(X_101,7),X_101,X_101<=LLV(X_101,7),X_101,1);
X_103:=X_101=X_102;
X_104:=X_101<REF(X_101,1);
DRAWICON(X_103 AND X_104,LOW*1,18);
X_105:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
X_106:=HIGH-REF(HIGH,1);
X_107:=REF(LOW,1)-LOW;
X_108:=SUM(IF(X_106>0 AND X_106>X_107,X_106,0),25);
X_109:=SUM(IF(X_107>0 AND X_107>X_106,X_107,0),25);
X_110:=X_108*100/X_105;
X_111:=X_109*100/X_105;
X_112:=MA(ABS(X_111-X_110)/(X_111+X_110)*100,15);
X_113:=(X_112+REF(X_112,15))/2;
X_114:=ZIG(3,10);
X_115:=MA(X_114,2);
DRAWICON(CROSS(X_114,X_115),LOW-0.1,7);
DRAWICON(CROSS(X_115,X_114),HIGH+0.1,8);
X_116:=90;
X_117:=3;
海底:REF(LLV(LOW,X_116),X_117),NODRAW,COLORLIMAGENTA;
X_118:=REF(LLV(LOW,X_116),X_117);
X_119:=REFDATE(X_118,DATE);
X_120:=X_119=LOW AND (CLOSE-LOW>0-CLOSE OR OPEN-LOW>CLOSE-OPEN);
STICKLINE(X_120,LOW,HIGH,0.1,0),COLORBLUE;
DRAWTEXT(X_120,LOW*0.97,76),COLORBLUE;
X_121:=150;
X_122:=3;
X_123:=REF(HHV(HIGH,X_121),X_122);
天顶:REFDATE(X_123,DATE),NODRAW,COLORCYAN;
X_124:=REFDATE(X_123,DATE);
X_125:=REFDATE(X_124,DATE);
X_126:=X_125=HIGH AND (CLOSE-LOW<OPEN-CLOSE OR OPEN-LOW<CLOSE-OPEN);
STICKLINE(X_126,CLOSE,OPEN,3,0),COLORGREEN;
STICKLINE(X_126,LOW,HIGH,0.1,0),COLORGREEN;
DRAWTEXT(X_126,HIGH*1.01,77),COLORGREEN;
X_127:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_128:=(8*X_127+7*REF(X_127,1)+6*REF(X_127,2)+5*REF(X_127,3)+4*REF(X_127,4)+3*REF(X_127,5)+2*REF(X_127,6)+REF(X_127,8))/36;
X_129:=(LLV(X_128,2)+LLV(X_128,4)+LLV(X_128,6))/3;
X_130:=REF(X_128,1)=REF(X_129,1) AND X_128>X_129 AND CLOSE>X_128;
X_131:=X_128>X_129 AND X_128>REF(X_128,1) AND X_129>REF(X_129,1) AND HIGH/X_128<1.1 AND LOW>X_129 AND CLOSE>X_128;
X_132:=X_128>X_129 AND X_128>REF(X_128,1) AND X_129>=REF(X_129,1) AND HIGH/X_128>1.1;
X_133:=X_128>X_129 AND X_128>REF(X_128,1) AND X_129>REF(X_129,1) AND CLOSE>X_129 AND CLOSE<X_128;
X_134:=X_128>X_129 AND X_129>REF(X_129,1) AND X_128!=REF(X_128,1) AND CLOSE<X_129 OR (X_128>X_129 AND X_128<REF(X_128,1) AND X_129<REF(X_129,1) AND CLOSE<X_129);
X_135:=REF(X_128,1)>REF(X_129,1) AND X_128=X_129 AND CLOSE<X_129;
X_136:=X_128=X_129 AND CLOSE<X_129 OR (X_128<REF(X_128,1) AND X_129<REF(X_129,1) AND REF(X_128,1)=REF(X_129,1) AND CLOSE<X_129);
X_137:=X_128=X_129 AND CLOSE>X_128;
X_138:=AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20));
X_139:=IF(X_138>1,1,X_138)*100;
DRAWTEXT_FIX(BARSTATUS=2 AND X_130,0.8,0.05,0,78),COLORBLUE;
DRAWTEXT_FIX(BARSTATUS=2 AND X_131,0.8,0.05,0,79),COLORBLUE;
DRAWTEXT_FIX(BARSTATUS=2 AND X_132,0.8,0.05,0,80),COLORBLUE;
DRAWTEXT_FIX(BARSTATUS=2 AND X_133,0.8,0.05,0,81),COLORGREEN;
DRAWTEXT_FIX(BARSTATUS=2 AND X_134,0.8,0.05,0,82),COLORGREEN;
DRAWTEXT_FIX(BARSTATUS=2 AND X_135,0.8,0.05,0,83),COLORGREEN;
DRAWTEXT_FIX(BARSTATUS=2 AND X_136,0.8,0.05,0,84),COLORGREEN;
DRAWTEXT_FIX(BARSTATUS=2 AND X_137,0.8,0.05,0,85),COLORYELLOW;
X_140:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
X_141:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
X_142:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
X_143:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
X_144:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
X_145:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
X_146:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
X_147:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
X_148:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
X_149:=EMA(CLOSE,2)-EMA(CLOSE,150);
X_150:=X_140;
X_151:=X_141+X_143+X_145+X_147;
X_152:=IF(X_150>0 OR X_151>0,LOW*0.99,DRAWNULL);
DRAWTEXT(CROSS(X_152,X_150),LOW,86),COLORRED;
红买绿卖:IF(CROSS(X_152,X_150),LOW*0.99,DRAWNULL),CROSSDOT,COLORWHITE,LINETHICK5;
X_153:=MA(CLOSE,5);
X_154:=(CLOSE-X_153)/X_153*100;
X_155:=ISLASTBAR=1 AND X_154>6;
DRAWTEXT_FIX(X_155=1,0.8,0.8,0,87),COLORFFFFAA;
X_156:=EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3);
X_157:=ZIG(3,15);
X_158:=IF(X_157>REF(X_157,1),5,105);
X_159:=CROSS(X_156,X_158);
X_160:=CROSS(X_158,X_156);
DRAWICON(X_159,LOW*1.05,25);
DRAWICON(X_160,HIGH*1.02,27);
X_161:=REF(VOL,1);
X_162:=DVOL;
X_163:=X_162/X_161;
X_164:=X_163-REF(X_163,1);
X_165:=REF(CLOSE,1);
X_166:=DCLOSE;
X_167:=(X_166-X_165)/X_165*100;
X_168:=X_167-REF(X_167,1);
X_169:=CROSS(X_164,500) AND CROSS(X_168,10);
DRAWICON(X_169=1,LOW*0.993,21);
X_170:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_171:=(8*X_170+7*REF(X_170,1)+6*REF(X_170,2)+5*REF(X_170,3)+4*REF(X_170,4)+3*REF(X_170,5)+2*REF(X_170,6)+REF(X_170,8))/36;
X_172:=(LLV(X_171,2)+LLV(X_171,4)+LLV(X_171,6))/3;
X_173:=MA(CLOSE,1);
X_174:=SMA(SMA(SMA(X_173,2,1),2,1),2,1);
X_175:=MA(X_174,3);
X_176:=(CLOSE+HIGH+LOW)/3;
X_177:=EMA(X_176,10);
X_178:=PEAKBARS(3,15,1)<4;
X_179:=FILTER(X_178=1,3);
X_180:=PEAKBARS(3,5,1)<10;
X_181:=IF(X_180=1,2,0);
X_182:=IF(X_181=2,2,0);
X_183:=(CLOSE+HIGH+OPEN+LOW)/4;
X_184:=XMA(X_183,20)*(1+80/1000);
X_185:=XMA(X_183,32)*(1-100/1000);
X_186:=X_185+(X_184-X_185)*2/3;
X_187:=XMA(CLOSE,7);
X_188:=MEMA(CLOSE,3);
X_189:=LONGCROSS(X_188,X_187,3) AND HIGH>X_186;
X_190:=IF(X_182>REF(X_182,1),70,0);
X_191:=CROSS(X_190=70 OR X_189,0.5);
X_192:=REF(CLOSE=ZIG(3,3) OR CLOSE=ZIG(3,4) AND ZIG(3,2)<REF(ZIG(3,2),1) OR (ZIG(3,3)>REF(ZIG(3,3),1) AND ZIG(3,4)>REF(ZIG(3,4),1)),1);
X_193:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30))/4;
X_194:=MA(CLOSE,20);
X_195:=OPEN>=REF(CLOSE,1)*0.6 AND OPEN<=REF(CLOSE,1)*1.05;
X_196:=FINANCE(1)/10000000<=70;
X_197:=DYNAINFO(17)>1;
X_198:=REF(CLOSE,2)>REF(CLOSE,3)*0.5;
X_199:=REF(HIGH/CLOSE,1)>1.005;
X_200:=REF(LOW,1)>REF(HIGH,2)*0.5;
X_201:=COUNT(REF(X_195 AND X_196 AND X_197 AND X_199 AND X_198 AND X_200,1) AND REF(X_177>=REF(X_177,1) AND X_174>REF(X_174,1) AND (X_193>MA(CLOSE,20) OR MA(X_177,5)>REF(MA(X_177,5),1)),1) AND OPEN*99<REF(MAX(MA(CLOSE,3),MA(CLOSE,5)),1)*100 AND OPEN>REF(MAX(X_177,MAX(X_174,X_171)),1),2)>0 AND REF(X_175>REF(X_175,1) AND MA(X_177,5)>REF(MA(X_177,5),1) AND MA(CLOSE,20)>REF(MA(CLOSE,20),1) AND COUNT(X_191 OR X_179,3)=0 AND 金牛5*100>REF(金牛5,1)*100.050003,1) AND OPEN<MAX(MA(CLOSE,3),MA(CLOSE,5)) AND X_192;
DRAWTEXT(CROSS(X_201,0.5) AND (X_66 OR X_65 OR X_63),LOW*0.96,53);
DRAWICON(CROSS(X_201,0.5) AND (X_66 OR X_65 OR X_63),LOW*0.96,23);
副图
X_1:=EMA(CLOSE,12)-EMA(CLOSE,26);
X_2:=EMA(X_1,9);
X_3:=X_1>X_2;
X_4:=(CLOSE-LLV(LOW,12))/(HHV(HIGH,12)-LLV(LOW,12))*100;
X_5:=SMA(X_4,3,1);
X_6:=SMA(X_5,3,1);
X_7:=X_5>X_6;
X_8:=REF(CLOSE,1);
X_9:=SMA(MAX(CLOSE-X_8,0),9,1)/SMA(ABS(CLOSE-X_8),9,1)*100;
X_10:=SMA(MAX(CLOSE-X_8,0),26,1)/SMA(ABS(CLOSE-X_8),26,1)*100;
X_11:=X_9>X_10;
X_12:=SMA(X_4,3,1);
X_13:=SMA(X_12,3,1);
X_14:=X_12>X_13;
X_15:=(MA(CLOSE,3)+MA(CLOSE,9)+MA(CLOSE,12)+MA(CLOSE,26))/4;
X_16:=CLOSE>X_15;
X_17:=CLOSE-REF(CLOSE,1);
X_18:=100*EMA(EMA(X_17,9),9)/EMA(EMA(ABS(X_17),9),3);
X_19:=100*EMA(EMA(X_17,26),12)/EMA(EMA(ABS(X_17),26),12);
X_20:=X_18>X_19;
X_21:=DMA((HIGH+LOW+CLOSE*2)/4,0.9);
X_22:=REF(EMA(X_21,3),1);
X_23:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
X_24:=IF(CLOSE>OPEN,X_23*(HIGH-LOW),IF(CLOSE<OPEN,X_23*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-X_23*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-X_23*(HIGH-LOW),0-VOL/2));
X_25:=X_24/20/1.15;
X_26:=X_25*0.55+REF(X_25,1)*0.33+REF(X_25,2)*0.22;
X_27:=EMA(X_26,8);
X_28:=EMA(X_26,3);
X_29:=X_28;
X_30:=VOL;
X_31:=MA(X_30,5);
X_32:=MA(X_30,10);
X_33:=X_31>=X_32;
X_34:=X_29>=0;
X_35:=X_34 AND X_33;
DRAWICON(X_35,1,1);
X_36:=MA(KDJ.K#WEEK(9,3,3),5);
X_37:=EMA(CLOSE,12/2)-EMA(CLOSE,26/2);
X_38:=EMA(X_37,9/2);
X_39:=X_36>=REF(X_36,1) AND X_37>=X_38;
DRAWICON(X_39,0.9,13);
X_40:=X_39 OR X_35;
X_41:=X_3 AND X_7 AND X_11 AND X_14 AND X_16 AND X_20;
X_42:=COST(50)*COST(50)/COST(80);
X_43:=COST(40)*COST(40)/COST(60);
X_44:=X_43-X_42;
X_45:=X_44>0 AND CLOSE>X_43;
X_46:=X_44<0 AND CLOSE>X_42;
X_47:=X_45 OR X_46 OR (X_45 AND X_46);
X_48:=X_47=0 OR (X_44>0 AND CLOSE>X_43 AND CLOSE<MA(CLOSE,10)) OR (X_44<0 AND CLOSE>X_42 AND CLOSE<MA(CLOSE,5));
X_49:=X_47 AND REF(X_48,1);
X_50:=X_48 AND REF(X_47,1);
STICKLINE(X_47,0.5,0.8,3,0),COLORRED;
STICKLINE(X_48,0.5,0.8,3,1),COLORGRAY;
STICKLINE(X_41,0.5,0.8,3,0),COLORMAGENTA;
DRAWICON(X_47 OR X_41 AND REF(X_47 OR X_41,1)=0 AND X_40,0.5,7);
X_51:=(HIGH+LOW+CLOSE*2)/4;
X_52:=EMA(X_51,17);
X_53:=STD(X_51,17);
X_54:=((X_51-X_52)/X_53*100+200)/4;
X_55:=(EMA(X_54,5)-25)*1.56;
X_56:=EMA(X_55,2)*1.22;
X_57:=EMA(X_56,2);
STICKLINE(X_56-X_57>0,0.2,0.4,3,0),COLORRED;
STICKLINE(X_56-X_57<0,0.2,0.4,3,0),COLORGREEN;
STICKLINE(X_56-X_57>0 AND REF(X_56-X_57<0,1),0.2,0.4,3.05,0),COLOR000099;
STICKLINE(X_56-X_57>0 AND REF(X_56-X_57<0,1),0.2,0.4,2.2,0),COLOR0000CC;
STICKLINE(X_56-X_57>0 AND REF(X_56-X_57<0,1),0.2,0.4,1.5,0),COLORRED;
STICKLINE(X_56-X_57>0 AND REF(X_56-X_57<0,1),0.2,0.4,0.5,0),COLORYELLOW;
STICKLINE(X_56-X_57>0 AND X_56-X_57<REF(X_56-X_57,1) AND X_57>110,0.2,0.4,3,0),COLORLIRED;
选股副图一体
X_1:=EMA(EMA(CLOSE-REF(CLOSE,1),8),8)/EMA(EMA(ABS(CLOSE-REF(CLOSE,1)),8),8)*100;
X_2:=IF(LLV(X_1,3)=LLV(X_1,11) AND COUNT(X_1<0,2) AND CROSS(X_1,MA(X_1,2)),1,0);
X_3:=FILTER(X_2=1,5);
X_4:=EMA(DBQR.ZS,12)-EMA(DBQR.ZS,26);
X_5:=EMA(X_4,9);
X_6:=(X_4-X_5)*2;
X_7:=MA(X_6,3);
X_8:=MA(X_6,10);
X_9:=EMA(CLOSE,6)-EMA(CLOSE,13);
X_10:=EMA(X_9,9/2);
X_11:=MA(KDJ.K#WEEK(9,3,3),5);
X_12:=X_11>=REF(X_11,1) AND X_9>=X_10 AND X_7>0 AND X_8>0;
买入:X_3 AND X_12;