主图指标
DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.5,0,0,1),COLORCYAN;
赚钱轨道:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED,LINETHICK2;
X_1:=MA(CLOSE,20);
DRAWBAND(赚钱轨道,RGB(155,50,50),X_1,RGB(0,100,50));
IF(赚钱轨道<X_1 OR CLOSE<赚钱轨道,赚钱轨道,DRAWNULL),COLORBLUE,LINETHICK2;
拉升线:IF(赚钱轨道>X_1,X_1,DRAWNULL),COLORMAGENTA,LINETHICK3;
下跌线:IF(赚钱轨道<=X_1,X_1,DRAWNULL),COLORLIBLUE,LINETHICK2;
X_2:=(CLOSE+HIGH+LOW+OPEN)/4;
X_3:=MA((CLOSE*2+HIGH)/3,5);
X_4:=MA((OPEN*2+HIGH)/3,5);
X_5:=MA((CLOSE+LOW*2)/3,5);
X_6:=MA((OPEN+LOW*2)/3,5);
X_7:=OPEN+(CLOSE-OPEN)/2;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(DMI.PDI>DMI.MDI,CLOSE,OPEN,0.1,0),COLOR9966FF;
STICKLINE(X_3>=X_4,CLOSE,OPEN,2.9,0),COLOR000099;
STICKLINE(X_3>=X_4,CLOSE,OPEN,1.5,0),COLOR0000CC;
STICKLINE(X_3>=X_4,CLOSE,OPEN,0.1,0),COLOR9966FF;
STICKLINE(X_3<X_4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,2.9,0),COLOR999900;
STICKLINE(X_3<X_4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,1.5,0),COLORCCCC00;
STICKLINE(X_3<X_4 AND DMI.PDI<DMI.MDI,CLOSE,OPEN,0.1,0),COLORFFFF66;
STICKLINE(X_3>=X_4 AND CLOSE<X_4,X_7,MAX(OPEN,CLOSE),2.8,0),COLORMAGENTA;
STICKLINE(CROSS(X_3,X_4),CLOSE,OPEN,2.8,0),COLORYELLOW;
STICKLINE(X_3<X_4 AND (CROSS(CLOSE,X_6) OR CROSS(X_2,X_6)),X_7,MIN(CLOSE,OPEN),2.8,0),COLORWHITE;
STICKLINE(CROSS(X_4,X_3) AND CLOSE<OPEN AND DMI.PDI<DMI.MDI,CLOSE,OPEN,2.8,0),COLORFF3300;
X_8:=REF(OPEN,1);
X_9:=SMA(MAX(OPEN-X_8,0),6,1)/SMA(ABS(OPEN-X_8),6,1)*100;
X_10:=REF(CLOSE,1);
X_11:=SMA(MAX(CLOSE-X_10,0),6,1)/SMA(ABS(CLOSE-X_10),6,1)*100;
X_12:=REF(HIGH,1);
X_13:=SMA(MAX(HIGH-X_12,0),6,1)/SMA(ABS(HIGH-X_12),6,1)*100;
X_14:=REF(LOW,1);
X_15:=SMA(MAX(LOW-X_14,0),6,1)/SMA(ABS(LOW-X_14),6,1)*100;
X_16:=(MIN(OPEN,CLOSE)-LOW)/LOW*100>VOL/CAPITAL*0.001;
X_17:=(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,13))*100;
X_18:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
X_19:=EMA(X_18,8)*10<(-26);{WWW.GPXIAZAI.COM}
X_20:=IF(X_16 AND MA(X_17,5)<50 AND X_19,30,0);
X_21:=X_9;
X_22:=X_11;
X_23:=X_13;
X_24:=X_15;
X_25:=MIN(MIN(MIN(X_21,X_22),X_23),X_24);
X_26:=MAX(MAX(MAX(X_21,X_22),X_23),X_24);
X_27:=VOL>REF(VOL,1)*2 AND (CLOSE>=OPEN OR CLOSE>REF(CLOSE,1));
X_28:=(CLOSE+LOW+HIGH)/3;
X_29:=ATAN(EMA(X_28,13)-REF(EMA(X_28,13),1))*3.1416*10;
X_30:=EMA(CLOSE,8);
X_31:=REF(CLOSE,1);
X_32:=SMA(MAX(CLOSE-X_31,0),3,1)/SMA(ABS(CLOSE-X_31),3,1)*100;
X_33:=EMA(CLOSE,3);
X_34:=EMA(CLOSE,21);
X_35:=INDEXADV;
X_36:=INDEXDEC;
X_37:=X_35/(X_35+X_36)*100;
X_38:=IF(X_37>=70,X_37,DRAWNULL);
X_39:=IF(X_37<70,X_37,DRAWNULL);
X_40:=HY_INDEXADV;
X_41:=HY_INDEXDEC;
X_42:=X_40/(X_40+X_41)*100;
X_43:=IF(X_42>=70,X_42,DRAWNULL);
X_44:=IF(X_42<70,X_42,DRAWNULL);
X_45:=(FINANCE(11)-FINANCE(15))/FINANCE(10)*1.2;
X_46:=(FINANCE(31)+FINANCE(17))/FINANCE(10)*1.4;
X_47:=FINANCE(23)/FINANCE(10)*3.3;
X_48:=FINANCE(19)/FINANCE(15)*0.6;
X_49:=FINANCE(20)/FINANCE(15)*0.999;
X_50:=X_45+X_46+X_47+X_48+X_49;
副图1
DRAWTEXT_FIX(1,0.15,0.05,0,'公众号:通达信指标爱好者'),COLORYELLOW;
指标爱好者:=MAX(MA(C,5),MAX(MAX(MA(C,10),MA(C,20)),MAX(MA(C,60),MA(C,120))));
M20:=MA(指标爱好者,20);
MA5:=MA(指标爱好者,5);
MA3:=MA(指标爱好者,3);
XG:CROSS(C,指标爱好者) AND CROSS(C,MA5) AND CROSS(C,M20);
副图2
DRAWTEXT_FIX(1,0.15,0.05,0,'公众号:通达信指标爱好者'),COLORYELLOW;
趋势1:=100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55));
RSV:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
趋势2:=EMA(J,6);
开启:=CROSS(趋势2,趋势1);
STICKLINE(开启,0,10,1,0),COLORLIMAGENTA;
DRAWTEXT(开启,8,'▲开启'),COLORCYAN;
GG0:=(CLOSE-REF(CLOSE,3))/REF(CLOSE,3);
GG1:=(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);
GG2:=(CLOSE-REF(CLOSE,20))/REF(CLOSE,20);
GG3:=(CLOSE-REF(CLOSE,60))/REF(CLOSE,60);
GG4:=(CLOSE-REF(CLOSE,120))/REF(CLOSE,120);
GG5:=(CLOSE-REF(CLOSE,250))/REF(CLOSE,250);
GG6:=(CLOSE-REF(CLOSE,10))/REF(CLOSE,10);
DP0:=(INDEXC-REF(INDEXC,3))/REF(INDEXC,3);
DP1:=(INDEXC-REF(INDEXC,5))/REF(INDEXC,5);
DP2:=(INDEXC-REF(INDEXC,20))/REF(INDEXC,20);
DP3:=(INDEXC-REF(INDEXC,60))/REF(INDEXC,60);
DP4:=(INDEXC-REF(INDEXC,120))/REF(INDEXC,120);
DP5:=(INDEXC-REF(INDEXC,250))/REF(INDEXC,250);
DP6:=(INDEXC-REF(INDEXC,10))/REF(INDEXC,10);
RS3:=GG0-DP0;
RS5:=GG1-DP1;
RS10:=GG6-DP6;
RS20:=GG2-DP2;
RS60:=GG3-DP3;
RS120:=GG4-DP4;
RS250:=GG5-DP5;
逆风:(6*RS3+5*RS5+4*RS20+3*RS60+2*RS120+RS250)/21*25,LINETHICK2,COLORRED;
TX:3.5,LINETHICK2,COLORGREEN;
上攻:=CROSS(逆风,TX);
DRAWTEXT(上攻,3.8,'▲凤凰振翅'),COLORYELLOW;
副图3
X_1:=EMA(100*(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)),13)/4;
X_2:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
X_3:=(X_2-LLV(X_2,21))/(HHV(X_2,21)-LLV(X_2,21))*4*25;
X_4:=CROSS(X_3,18);
X_5:=MA(CLOSE,20);
X_6:=CLOSE>MA(CLOSE,5);
X_7:=MA(CLOSE,5)>MA(CLOSE,10);
X_8:=CLOSE>MA(CLOSE,10);
X_9:=MA(CLOSE,5)>MA(CLOSE,20);
X_10:=CLOSE>MA(CLOSE,20);
X_11:=REF(X_5,1);
X_12:=X_5>X_11;
X_13:=IF(X_6,10,0-10)+IF(X_7,10,0-10)+IF(X_8,10,0-10)+IF(X_9,10,0-10)+IF(X_10,10,0-10)+IF(X_12,10,0-10);
X_14:=CLOSE>MA(LOW,20)*1.1;
X_15:=EMA(100*(1-WINNER(1.1*CLOSE)),1)=0;
X_16:=VOL*(CLOSE-OPEN)/(CLOSE+OPEN);
X_17:=EMA(VOL*(CLOSE-OPEN)/(CLOSE+OPEN),38);
X_18:=EMA(X_17,8);
X_19:=MA(X_18,3);
X_20:=MA(X_18,10);
X_21:=X_19>X_20 AND X_20>0;
X_22:=(MA(CLOSE,1)+MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,7)+MA(CLOSE,9))/5;
X_23:=(MA(CLOSE,2)+MA(CLOSE,4)+MA(CLOSE,6)+MA(CLOSE,8)+MA(CLOSE,10))/5;
X_24:=EMA(X_22,3);
X_25:=EMA(X_23,10);
X_26:=EMA(AMOUNT,1)/EMA(VOL,1)/100;
X_27:=DMA(X_24,X_26);
X_28:=DMA(X_25,X_26);
X_29:=MAX(2*(X_27-X_28),0)*100;
X_30:=X_29>0 AND X_29>REF(X_29,1);
STICKLINE(CLOSE,0,1,4,1),COLORGRAY;
STICKLINE(CLOSE,0,0.8,4,1),COLORGRAY;
STICKLINE(CLOSE,0,0.6,4,1),COLORGRAY;
STICKLINE(CLOSE,0,0.4,4,1),COLORGRAY;
STICKLINE(CLOSE,0,0.2,4,1),COLORGRAY;
X_31:=X_14>0 AND X_30>0 AND X_21>0 AND X_13=60 AND X_1>10;
DRAWICON(X_14>0,1,41);
DRAWICON(X_30>0,0.7,30);
DRAWICON(X_4>0,0.7,28);
DRAWICON(X_21>0,0.5,40);
DRAWICON(X_13=60,0.3,1);
DRAWICON(X_1>10,0.1,38);