「翔博精选指标」波段循环操作(通达信公式 主图 源码 测试图)
2021-12-19原创 编 辑:翔博软件
{公式名称: 波段循环操作
公式源码:}
长期循环线:EMA(CLOSE,68),CIRCLEDOT,COLORLICYAN;
IF(长期循环线>REF(长期循环线,1),长期循环线,DRAWNULL),CIRCLEDOT,COLORRED;
IF(长期循环线<REF(长期循环线,1),长期循环线,DRAWNULL),CIRCLEDOT,COLORLICYAN;
操作线:EMA(CLOSE,12),COLORLICYAN,LINETHICK2;
IF(操作线>REF(操作线,1),操作线,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(操作线<REF(操作线,1),操作线,DRAWNULL),COLORLICYAN,LINETHICK2;
MA8:EMA(CLOSE,23),POINTDOT,COLORRED;
IF(MA8<REF(MA8,1),MA8,DRAWNULL),POINTDOT,COLORGREEN;
MA9:EMA(CLOSE,25),POINTDOT,COLORRED;
IF(MA9<REF(MA9,1),MA9,DRAWNULL),POINTDOT,COLORGREEN;
短循环线:EMA(CLOSE,24),DOTLINE,COLORRED;
IF(短循环线>REF(短循环线,1),短循环线,DRAWNULL),DOTLINE,COLORRED;
IF(短循环线<REF(短循环线,1),短循环线,DRAWNULL),DOTLINE,COLORGREEN;
X_1:=STRCAT(STRCAT(1,CON2STR(TOTALCAPITAL/1000000,2)),2);
X_2:=STRCAT(STRCAT(3,CON2STR(CAPITAL/1000000,2)),2);
X_3:=STRCAT(STRCAT(4,CON2STR(CAPITAL/1000000*CLOSE,2)),2);
X_4:=STRCAT(5,CON2STR(FINANCE(42),0));
X_5:=STRCAT(6,STRCAT(STRCAT(STRCAT(X_1,X_2),X_3),X_4));
DRAWTEXT_FIX(ISLASTBAR,0.02,0.06,0,X_5),COLORGRAY;
DRAWTEXT_FIX(ISLASTBAR=1,0.295,0.01,1,7),COLORLIGRAY;
DRAWTEXT_FIX(1,0.02,0.115,0,8),COLORGRAY;
DRAWTEXT_FIX(1,0.07,0.115,0,HYBLOCK),COLORGRAY;
DRAWTEXT_FIX(1,0.12,0.115,0,GNBLOCK),COLORGRAY;
X_6:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_7:=(8*X_6+7*REF(X_6,1)+6*REF(X_6,2)+5*REF(X_6,3)+4*REF(X_6,4)+3*REF(X_6,5)+2*REF(X_6,6)+REF(X_6,8))/36;
波段线:X_7,COLORRED;
X_8:=12;
X_9:=26;
X_10:=9;
X_11:=EMA(CLOSE,X_8)-EMA(CLOSE,X_9);
X_12:=EMA(X_11,X_10);
空头:STICKLINE(REF(MACD.DIF,1)>MACD.DIF AND (CLOSE<波段线 OR (CLOSE>波段线 AND 波段线<REF(波段线,1))),CLOSE,OPEN,3,0),COLORLICYAN;
STICKLINE(REF(MACD.DIF,1)>MACD.DIF AND CLOSE<波段线,HIGH,LOW,0,0),COLORLICYAN;
头:STICKLINE(CLOSE<波段线,CLOSE,OPEN,3,0),COLORLICYAN;
STICKLINE(CLOSE<波段线,HIGH,LOW,0,0),COLORLICYAN;
STICKLINE(空头,CLOSE,OPEN,2.8,0),COLOR555500;
STICKLINE(空头,CLOSE,OPEN,2,0),COLOR888800;
STICKLINE(空头,CLOSE,OPEN,1.5,0),COLORAAAA00;
STICKLINE(空头,CLOSE,OPEN,1,0),COLORCCCC00;
STICKLINE(空头,CLOSE,OPEN,0.5,0),COLOREEEE00;
STICKLINE(头,CLOSE,OPEN,2.8,0),COLOR555500;
STICKLINE(头,CLOSE,OPEN,2,0),COLOR888800;
STICKLINE(头,CLOSE,OPEN,1.5,0),COLORAAAA00;
STICKLINE(头,CLOSE,OPEN,1,0),COLORCCCC00;
STICKLINE(头,CLOSE,OPEN,0.5,0),COLOREEEE00;
X_13:=CLOSE/REF(CLOSE,1)>=1.097 AND CLOSE=HIGH AND CLOSE>EMA(CLOSE,68);
STICKLINE(X_13,CLOSE,OPEN,1.5,0),COLORYELLOW;
STICKLINE(X_13,OPEN,CLOSE,0.2,0),COLORRED;
X_14:=100*(CLOSE-LLV(LOW,3))/(HHV(CLOSE,3)-LLV(LOW,3));
X_15:=100*(CLOSE-LLV(LOW,5))/(HHV(CLOSE,5)-LLV(LOW,5));
X_16:=100*(CLOSE-LLV(LOW,10))/(HHV(CLOSE,10)-LLV(LOW,10));
X_17:=100*(CLOSE-LLV(LOW,20))/(HHV(CLOSE,20)-LLV(LOW,20));
X_18:=100*(CLOSE-LLV(LOW,30))/(HHV(CLOSE,30)-LLV(LOW,30));
X_19:=MA(CLOSE,20)>REF(MA(CLOSE,20),1);
X_20:=VOL>MA(VOL,5) AND VOL>MA(VOL,63);
X_21:=MACD.DIF>REF(MACD.DIF,1) AND MACD.DIF>MACD.DEA;
X_22:=KDJ.K>REF(KDJ.K,1) AND KDJ.K>50;
X_23:=X_15>=99 AND X_16>=99 AND X_17>=99 AND X_18>=99;
X_24:=HIGH>=REF(CLOSE,1)*1.099 AND CLOSE>REF(CLOSE,1);
X_25:=X_19 AND X_20 AND X_21 AND X_22 AND X_23;
X_26:=CLOSE>=REF(CLOSE,1)*1.099 AND CLOSE=HIGH AND CLOSE>EMA(CLOSE,24);
STICKLINE(X_26 AND X_25,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(X_26 AND X_25,OPEN,OPEN+(CLOSE-OPEN)*2/3,2,0),COLORYELLOW;
STICKLINE(X_26 AND X_25,OPEN,OPEN+(CLOSE-OPEN)*1/2.5,2,0),COLORFF80FF;
X_27:=TROUGH(CLOSE,10,1)*1.02;
X_28:=TROUGH(CLOSE,10,1)*1.02;
X_29:=COUNT(LOW<X_27,3);
X_30:=TROUGH(CLOSE,10,1)*1.05;
X_31:=EMA(CLOSE,24)<EMA(CLOSE,68) AND CLOSE>EMA(CLOSE,24) AND CLOSE<EMA(CLOSE,68) OR (EMA(CLOSE,24)>EMA(CLOSE,68) AND CLOSE<EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68)) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30);
DRAWTEXT(EMA(CLOSE,24)<EMA(CLOSE,68) AND CLOSE>EMA(CLOSE,24) AND CLOSE<EMA(CLOSE,68) OR (EMA(CLOSE,24)>EMA(CLOSE,68) AND CLOSE<EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68)) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),LOW*0.98,9),COLORA8A8A8;
STICKLINE(X_31,OPEN,CLOSE,3.5,0),COLOR5F5F5F;
STICKLINE(X_31,OPEN,CLOSE,3,0),COLOR6E6E6E;
STICKLINE(X_31,OPEN,CLOSE,2.5,0),COLOR747474;
STICKLINE(X_31,OPEN,CLOSE,2,0),COLOR919191;
STICKLINE(X_31,OPEN,CLOSE,1.5,0),COLORA8A8A8;
STICKLINE(X_31,OPEN,CLOSE,1,0),COLORCDCDCD;
STICKLINE(X_31,OPEN,CLOSE,0.5,0),COLOREBEBEB;
STICKLINE(X_31,OPEN,CLOSE,0.1,0),COLORWHITE;
X_32:=CLOSE<EMA(CLOSE,24) AND CLOSE<EMA(CLOSE,68) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30);
DRAWTEXT(CLOSE<EMA(CLOSE,24) AND CLOSE<EMA(CLOSE,68) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),LOW*0.98,10),COLORA8A8A8;
X_33:=CLOSE-OPEN;
STICKLINE(X_32,OPEN,CLOSE,3.5,0),COLOR5F5F5F;
STICKLINE(X_32,OPEN,CLOSE,1,0),COLORB3F5F9;
STICKLINE(X_32,OPEN,OPEN+X_33/2,3.5,0),COLOR5F5F5F;
STICKLINE(X_32,OPEN,OPEN+X_33/2,3,0),COLOR6E6E6E;
STICKLINE(X_32,OPEN,OPEN+X_33/2,2.5,0),COLOR747474;
STICKLINE(X_32,OPEN,OPEN+X_33/2,2,0),COLOR919191;
STICKLINE(X_32,OPEN,OPEN+X_33/2,1.5,0),COLORA8A8A8;
STICKLINE(X_32,OPEN,OPEN+X_33/2,1,0),COLORCDCDCD;
STICKLINE(X_32,OPEN,OPEN+X_33/2,0.5,0),COLOREBEBEB;
STICKLINE(X_32,OPEN,OPEN+X_33/2,0.1,0),COLORWHITE;
白金:CLOSE>EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68) AND EMA(CLOSE,24)>EMA(CLOSE,68) AND (EMA(CLOSE,24)>REF(EMA(CLOSE,24),1) AND EMA(CLOSE,68)>REF(EMA(CLOSE,68),1)) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),NODRAW,COLOR00AAAA;
DRAWTEXT(CLOSE>EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68) AND EMA(CLOSE,24)>EMA(CLOSE,68) AND (EMA(CLOSE,24)>REF(EMA(CLOSE,24),1) AND EMA(CLOSE,68)>REF(EMA(CLOSE,68),1)) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),LOW*0.98,11),COLOR00CCCC;
STICKLINE(白金,OPEN,CLOSE,3.5,0),COLOR008888;
STICKLINE(白金,OPEN,CLOSE,1.6,0),COLOR00AAAA;
STICKLINE(白金,OPEN,CLOSE,0.8,0),COLOR00CCCC;
STICKLINE(白金,OPEN,CLOSE,0.2,0),COLORYELLOW;
黄金:CLOSE>EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68) AND EMA(CLOSE,24)<EMA(CLOSE,68) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),NODRAW,COLOR00AAAA;
DRAWTEXT(CLOSE>EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68) AND EMA(CLOSE,24)<EMA(CLOSE,68) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),LOW*0.98,12),COLOR00CCCC;
X_34:=CLOSE-OPEN;
STICKLINE(黄金,OPEN,CLOSE,3.5,0),COLOR008888;
STICKLINE(黄金,OPEN,CLOSE,1,0),COLORWHITE;
STICKLINE(黄金,OPEN,OPEN+X_34/2,3.5,0),COLOR008888;
STICKLINE(黄金,OPEN,OPEN+X_34/2,1.6,0),COLOR00AAAA;
STICKLINE(黄金,OPEN,OPEN+X_34/2,0.8,0),COLOR00CCCC;
STICKLINE(黄金,OPEN,OPEN+X_34/2,0.2,0),COLORYELLOW;
IF(波段线<REF(波段线,1),波段线,DRAWNULL),COLORGREEN;
攻击线:MA(CLOSE,3),DOTLINE,COLORGRAY;
IF(攻击线>REF(攻击线,1),攻击线,DRAWNULL),DOTLINE,COLORWHITE;
IF(攻击线<REF(攻击线,1),攻击线,DRAWNULL),DOTLINE,COLORGRAY;
X_35:=DRAWICON(CROSS(ZIG(3,6),REF(ZIG(3,6),1)),LOW*0.98,9);
DRAWTEXT(X_35=1,LOW*0.99,13),COLOR1665F8;
X_36:=DRAWICON(CROSS(REF(ZIG(3,4),1),ZIG(3,4)),HIGH*1.015,15);
DRAWTEXT(X_36=1,HIGH*1.01,14),COLOR77EE3E;
X_37:=CROSS(KDJ.J,KDJ.D);
X_38:=CROSS(KDJ.D,KDJ.J);
X_39:=CLOSE-OPEN;
STICKLINE(X_37,OPEN,CLOSE,0,0),COLORYELLOW;
STICKLINE(X_37,OPEN,OPEN+X_39/2,0.01,0),COLORYELLOW;
STICKLINE(X_37,OPEN,OPEN+X_39/2,0,0),COLORRED;
STICKLINE(X_37,OPEN,OPEN+X_39/5,3.4,0),COLOR335555;
STICKLINE(X_37,OPEN,OPEN+X_39/5,2,0),COLOR338888;
STICKLINE(X_37,OPEN,OPEN+X_39/5,1.5,0),COLOR33AAAA;
STICKLINE(X_37,OPEN,OPEN+X_39/5,1,0),COLOR33CCCC;
STICKLINE(X_37,OPEN,OPEN+X_39/5,0,0),COLOR33EEEE;
X_40:=CROSS(MACD.DIF,MACD.DEA);
X_41:=CLOSE-OPEN;
STICKLINE(X_40,OPEN,CLOSE,0,0),COLORYELLOW;
STICKLINE(X_40,OPEN,OPEN+X_41/2,0.3,0),COLORYELLOW;
STICKLINE(X_40,OPEN,OPEN+X_41/2,0,0),COLORRED;
STICKLINE(X_40,OPEN,OPEN+X_41/5,3.4,0),COLOR000055;
STICKLINE(X_40,OPEN,OPEN+X_41/5,2,0),COLOR000088;
STICKLINE(X_40,OPEN,OPEN+X_41/5,1.5,0),COLOR0000AA;
STICKLINE(X_40,OPEN,OPEN+X_41/5,1,0),COLOR0000CC;
STICKLINE(X_40,OPEN,OPEN+X_41/5,0,0),COLOR0000EE;
STICKLINE(X_38,OPEN,OPEN+X_39/5,1.4,0),COLOR4BFE59;
公式源码:}
长期循环线:EMA(CLOSE,68),CIRCLEDOT,COLORLICYAN;
IF(长期循环线>REF(长期循环线,1),长期循环线,DRAWNULL),CIRCLEDOT,COLORRED;
IF(长期循环线<REF(长期循环线,1),长期循环线,DRAWNULL),CIRCLEDOT,COLORLICYAN;
操作线:EMA(CLOSE,12),COLORLICYAN,LINETHICK2;
IF(操作线>REF(操作线,1),操作线,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(操作线<REF(操作线,1),操作线,DRAWNULL),COLORLICYAN,LINETHICK2;
MA8:EMA(CLOSE,23),POINTDOT,COLORRED;
IF(MA8<REF(MA8,1),MA8,DRAWNULL),POINTDOT,COLORGREEN;
MA9:EMA(CLOSE,25),POINTDOT,COLORRED;
IF(MA9<REF(MA9,1),MA9,DRAWNULL),POINTDOT,COLORGREEN;
短循环线:EMA(CLOSE,24),DOTLINE,COLORRED;
IF(短循环线>REF(短循环线,1),短循环线,DRAWNULL),DOTLINE,COLORRED;
IF(短循环线<REF(短循环线,1),短循环线,DRAWNULL),DOTLINE,COLORGREEN;
X_1:=STRCAT(STRCAT(1,CON2STR(TOTALCAPITAL/1000000,2)),2);
X_2:=STRCAT(STRCAT(3,CON2STR(CAPITAL/1000000,2)),2);
X_3:=STRCAT(STRCAT(4,CON2STR(CAPITAL/1000000*CLOSE,2)),2);
X_4:=STRCAT(5,CON2STR(FINANCE(42),0));
X_5:=STRCAT(6,STRCAT(STRCAT(STRCAT(X_1,X_2),X_3),X_4));
DRAWTEXT_FIX(ISLASTBAR,0.02,0.06,0,X_5),COLORGRAY;
DRAWTEXT_FIX(ISLASTBAR=1,0.295,0.01,1,7),COLORLIGRAY;
DRAWTEXT_FIX(1,0.02,0.115,0,8),COLORGRAY;
DRAWTEXT_FIX(1,0.07,0.115,0,HYBLOCK),COLORGRAY;
DRAWTEXT_FIX(1,0.12,0.115,0,GNBLOCK),COLORGRAY;
X_6:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_7:=(8*X_6+7*REF(X_6,1)+6*REF(X_6,2)+5*REF(X_6,3)+4*REF(X_6,4)+3*REF(X_6,5)+2*REF(X_6,6)+REF(X_6,8))/36;
波段线:X_7,COLORRED;
X_8:=12;
X_9:=26;
X_10:=9;
X_11:=EMA(CLOSE,X_8)-EMA(CLOSE,X_9);
X_12:=EMA(X_11,X_10);
空头:STICKLINE(REF(MACD.DIF,1)>MACD.DIF AND (CLOSE<波段线 OR (CLOSE>波段线 AND 波段线<REF(波段线,1))),CLOSE,OPEN,3,0),COLORLICYAN;
STICKLINE(REF(MACD.DIF,1)>MACD.DIF AND CLOSE<波段线,HIGH,LOW,0,0),COLORLICYAN;
头:STICKLINE(CLOSE<波段线,CLOSE,OPEN,3,0),COLORLICYAN;
STICKLINE(CLOSE<波段线,HIGH,LOW,0,0),COLORLICYAN;
STICKLINE(空头,CLOSE,OPEN,2.8,0),COLOR555500;
STICKLINE(空头,CLOSE,OPEN,2,0),COLOR888800;
STICKLINE(空头,CLOSE,OPEN,1.5,0),COLORAAAA00;
STICKLINE(空头,CLOSE,OPEN,1,0),COLORCCCC00;
STICKLINE(空头,CLOSE,OPEN,0.5,0),COLOREEEE00;
STICKLINE(头,CLOSE,OPEN,2.8,0),COLOR555500;
STICKLINE(头,CLOSE,OPEN,2,0),COLOR888800;
STICKLINE(头,CLOSE,OPEN,1.5,0),COLORAAAA00;
STICKLINE(头,CLOSE,OPEN,1,0),COLORCCCC00;
STICKLINE(头,CLOSE,OPEN,0.5,0),COLOREEEE00;
X_13:=CLOSE/REF(CLOSE,1)>=1.097 AND CLOSE=HIGH AND CLOSE>EMA(CLOSE,68);
STICKLINE(X_13,CLOSE,OPEN,1.5,0),COLORYELLOW;
STICKLINE(X_13,OPEN,CLOSE,0.2,0),COLORRED;
X_14:=100*(CLOSE-LLV(LOW,3))/(HHV(CLOSE,3)-LLV(LOW,3));
X_15:=100*(CLOSE-LLV(LOW,5))/(HHV(CLOSE,5)-LLV(LOW,5));
X_16:=100*(CLOSE-LLV(LOW,10))/(HHV(CLOSE,10)-LLV(LOW,10));
X_17:=100*(CLOSE-LLV(LOW,20))/(HHV(CLOSE,20)-LLV(LOW,20));
X_18:=100*(CLOSE-LLV(LOW,30))/(HHV(CLOSE,30)-LLV(LOW,30));
X_19:=MA(CLOSE,20)>REF(MA(CLOSE,20),1);
X_20:=VOL>MA(VOL,5) AND VOL>MA(VOL,63);
X_21:=MACD.DIF>REF(MACD.DIF,1) AND MACD.DIF>MACD.DEA;
X_22:=KDJ.K>REF(KDJ.K,1) AND KDJ.K>50;
X_23:=X_15>=99 AND X_16>=99 AND X_17>=99 AND X_18>=99;
X_24:=HIGH>=REF(CLOSE,1)*1.099 AND CLOSE>REF(CLOSE,1);
X_25:=X_19 AND X_20 AND X_21 AND X_22 AND X_23;
X_26:=CLOSE>=REF(CLOSE,1)*1.099 AND CLOSE=HIGH AND CLOSE>EMA(CLOSE,24);
STICKLINE(X_26 AND X_25,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(X_26 AND X_25,OPEN,OPEN+(CLOSE-OPEN)*2/3,2,0),COLORYELLOW;
STICKLINE(X_26 AND X_25,OPEN,OPEN+(CLOSE-OPEN)*1/2.5,2,0),COLORFF80FF;
X_27:=TROUGH(CLOSE,10,1)*1.02;
X_28:=TROUGH(CLOSE,10,1)*1.02;
X_29:=COUNT(LOW<X_27,3);
X_30:=TROUGH(CLOSE,10,1)*1.05;
X_31:=EMA(CLOSE,24)<EMA(CLOSE,68) AND CLOSE>EMA(CLOSE,24) AND CLOSE<EMA(CLOSE,68) OR (EMA(CLOSE,24)>EMA(CLOSE,68) AND CLOSE<EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68)) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30);
DRAWTEXT(EMA(CLOSE,24)<EMA(CLOSE,68) AND CLOSE>EMA(CLOSE,24) AND CLOSE<EMA(CLOSE,68) OR (EMA(CLOSE,24)>EMA(CLOSE,68) AND CLOSE<EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68)) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),LOW*0.98,9),COLORA8A8A8;
STICKLINE(X_31,OPEN,CLOSE,3.5,0),COLOR5F5F5F;
STICKLINE(X_31,OPEN,CLOSE,3,0),COLOR6E6E6E;
STICKLINE(X_31,OPEN,CLOSE,2.5,0),COLOR747474;
STICKLINE(X_31,OPEN,CLOSE,2,0),COLOR919191;
STICKLINE(X_31,OPEN,CLOSE,1.5,0),COLORA8A8A8;
STICKLINE(X_31,OPEN,CLOSE,1,0),COLORCDCDCD;
STICKLINE(X_31,OPEN,CLOSE,0.5,0),COLOREBEBEB;
STICKLINE(X_31,OPEN,CLOSE,0.1,0),COLORWHITE;
X_32:=CLOSE<EMA(CLOSE,24) AND CLOSE<EMA(CLOSE,68) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30);
DRAWTEXT(CLOSE<EMA(CLOSE,24) AND CLOSE<EMA(CLOSE,68) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),LOW*0.98,10),COLORA8A8A8;
X_33:=CLOSE-OPEN;
STICKLINE(X_32,OPEN,CLOSE,3.5,0),COLOR5F5F5F;
STICKLINE(X_32,OPEN,CLOSE,1,0),COLORB3F5F9;
STICKLINE(X_32,OPEN,OPEN+X_33/2,3.5,0),COLOR5F5F5F;
STICKLINE(X_32,OPEN,OPEN+X_33/2,3,0),COLOR6E6E6E;
STICKLINE(X_32,OPEN,OPEN+X_33/2,2.5,0),COLOR747474;
STICKLINE(X_32,OPEN,OPEN+X_33/2,2,0),COLOR919191;
STICKLINE(X_32,OPEN,OPEN+X_33/2,1.5,0),COLORA8A8A8;
STICKLINE(X_32,OPEN,OPEN+X_33/2,1,0),COLORCDCDCD;
STICKLINE(X_32,OPEN,OPEN+X_33/2,0.5,0),COLOREBEBEB;
STICKLINE(X_32,OPEN,OPEN+X_33/2,0.1,0),COLORWHITE;
白金:CLOSE>EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68) AND EMA(CLOSE,24)>EMA(CLOSE,68) AND (EMA(CLOSE,24)>REF(EMA(CLOSE,24),1) AND EMA(CLOSE,68)>REF(EMA(CLOSE,68),1)) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),NODRAW,COLOR00AAAA;
DRAWTEXT(CLOSE>EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68) AND EMA(CLOSE,24)>EMA(CLOSE,68) AND (EMA(CLOSE,24)>REF(EMA(CLOSE,24),1) AND EMA(CLOSE,68)>REF(EMA(CLOSE,68),1)) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),LOW*0.98,11),COLOR00CCCC;
STICKLINE(白金,OPEN,CLOSE,3.5,0),COLOR008888;
STICKLINE(白金,OPEN,CLOSE,1.6,0),COLOR00AAAA;
STICKLINE(白金,OPEN,CLOSE,0.8,0),COLOR00CCCC;
STICKLINE(白金,OPEN,CLOSE,0.2,0),COLORYELLOW;
黄金:CLOSE>EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68) AND EMA(CLOSE,24)<EMA(CLOSE,68) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),NODRAW,COLOR00AAAA;
DRAWTEXT(CLOSE>EMA(CLOSE,24) AND CLOSE>EMA(CLOSE,68) AND EMA(CLOSE,24)<EMA(CLOSE,68) AND X_29>=1 AND X_27<EMA(CLOSE,24) AND CLOSE>波段线 AND EMA(CLOSE,12)>REF(EMA(CLOSE,12),1) AND CROSS(CLOSE,X_30),LOW*0.98,12),COLOR00CCCC;
X_34:=CLOSE-OPEN;
STICKLINE(黄金,OPEN,CLOSE,3.5,0),COLOR008888;
STICKLINE(黄金,OPEN,CLOSE,1,0),COLORWHITE;
STICKLINE(黄金,OPEN,OPEN+X_34/2,3.5,0),COLOR008888;
STICKLINE(黄金,OPEN,OPEN+X_34/2,1.6,0),COLOR00AAAA;
STICKLINE(黄金,OPEN,OPEN+X_34/2,0.8,0),COLOR00CCCC;
STICKLINE(黄金,OPEN,OPEN+X_34/2,0.2,0),COLORYELLOW;
IF(波段线<REF(波段线,1),波段线,DRAWNULL),COLORGREEN;
攻击线:MA(CLOSE,3),DOTLINE,COLORGRAY;
IF(攻击线>REF(攻击线,1),攻击线,DRAWNULL),DOTLINE,COLORWHITE;
IF(攻击线<REF(攻击线,1),攻击线,DRAWNULL),DOTLINE,COLORGRAY;
X_35:=DRAWICON(CROSS(ZIG(3,6),REF(ZIG(3,6),1)),LOW*0.98,9);
DRAWTEXT(X_35=1,LOW*0.99,13),COLOR1665F8;
X_36:=DRAWICON(CROSS(REF(ZIG(3,4),1),ZIG(3,4)),HIGH*1.015,15);
DRAWTEXT(X_36=1,HIGH*1.01,14),COLOR77EE3E;
X_37:=CROSS(KDJ.J,KDJ.D);
X_38:=CROSS(KDJ.D,KDJ.J);
X_39:=CLOSE-OPEN;
STICKLINE(X_37,OPEN,CLOSE,0,0),COLORYELLOW;
STICKLINE(X_37,OPEN,OPEN+X_39/2,0.01,0),COLORYELLOW;
STICKLINE(X_37,OPEN,OPEN+X_39/2,0,0),COLORRED;
STICKLINE(X_37,OPEN,OPEN+X_39/5,3.4,0),COLOR335555;
STICKLINE(X_37,OPEN,OPEN+X_39/5,2,0),COLOR338888;
STICKLINE(X_37,OPEN,OPEN+X_39/5,1.5,0),COLOR33AAAA;
STICKLINE(X_37,OPEN,OPEN+X_39/5,1,0),COLOR33CCCC;
STICKLINE(X_37,OPEN,OPEN+X_39/5,0,0),COLOR33EEEE;
X_40:=CROSS(MACD.DIF,MACD.DEA);
X_41:=CLOSE-OPEN;
STICKLINE(X_40,OPEN,CLOSE,0,0),COLORYELLOW;
STICKLINE(X_40,OPEN,OPEN+X_41/2,0.3,0),COLORYELLOW;
STICKLINE(X_40,OPEN,OPEN+X_41/2,0,0),COLORRED;
STICKLINE(X_40,OPEN,OPEN+X_41/5,3.4,0),COLOR000055;
STICKLINE(X_40,OPEN,OPEN+X_41/5,2,0),COLOR000088;
STICKLINE(X_40,OPEN,OPEN+X_41/5,1.5,0),COLOR0000AA;
STICKLINE(X_40,OPEN,OPEN+X_41/5,1,0),COLOR0000CC;
STICKLINE(X_40,OPEN,OPEN+X_41/5,0,0),COLOR0000EE;
STICKLINE(X_38,OPEN,OPEN+X_39/5,1.4,0),COLOR4BFE59;