主图指标
X_1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
X_2:=EMA(X_1,13);
X_3:=EMA(X_2,3);
X_4:=EMA(X_3,3);
X_5:=EMA(X_4,3);
X_6:=EMA(X_5,3);
X_7:=EMA(X_6,3);
DRAWBAND(X_2,RGB(150,50,20),X_7,RGB(36,150,40));
NOTEXTMB101:IF(X_2>X_3,X_2,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXTMB102:IF(X_2<X_3,X_2,DRAWNULL),DOTLINE,COLORGREEN;
NOTEXTMB201:IF(X_3>X_4,X_3,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXTMB202:IF(X_3<X_4,X_3,DRAWNULL),DOTLINE,COLORGREEN;
NOTEXTMB301:IF(X_4>X_5,X_4,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXTMB302:IF(X_4<X_5,X_4,DRAWNULL),DOTLINE,COLORGREEN;
NOTEXTMB401:IF(X_5>X_6,X_5,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXTMB402:IF(X_5<X_6,X_5,DRAWNULL),DOTLINE,COLORGREEN;
NOTEXTMB501:IF(X_6>X_7,X_6,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXTMB502:IF(X_6<X_7,X_6,DRAWNULL),DOTLINE,COLORGREEN;
NOTEXTMB601:IF(X_7>REF(X_7,1),X_7,DRAWNULL),DOTLINE,COLORMAGENTA;
NOTEXTMB602:IF(X_7<REF(X_7,1),X_7,DRAWNULL),DOTLINE,COLORGREEN;
X_8:=(20*X_1+19*REF(X_1,1)+18*REF(X_1,2)+17*REF(X_1,3)+16*REF(X_1,4)+15*REF(X_1,5)+14*REF(X_1,6)+13*REF(X_1,7)+12*REF(X_1,8)+11*REF(X_1,9)+10*REF(X_1,10)+9*REF(X_1,11)+8*REF(X_1,12)+7*REF(X_1,13)+6*REF(X_1,14)+5*REF(X_1,15)+4*REF(X_1,16)+3*REF(X_1,17)+2*REF(X_1,18)+REF(X_1,20))/210;
X_9:=MA(X_8,20);
X_10:=MA(X_9,2);
DRAWBAND(X_9,RGB(250,0,0),X_10,RGB(250,250,0));
NOTEXTDTTJ:CONST(CLOSE),DOTLINE,COLORGRAY;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
STICKLINE(CLOSE>OPEN,HIGH,LOW,0,0),COLOR7D7DFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0),COLOR7D7DFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3.1,0),COLOR1313FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.4,0),COLOR2424FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR2D2DFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.6,0),COLOR4444FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.2,0),COLOR5757FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.6,0),COLOR6666FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.1,0),COLOR7D7DFF;
STICKLINE(CLOSE<OPEN,HIGH,LOW,0,0),COLORAA9900;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0,0),COLORAA5500;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,3.1,0),COLORAA6600;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2.4,0),COLORAA7700;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,2,0),COLORAA8800;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.6,0),COLORAA9900;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,1.2,0),COLORAAAA00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.6,0),COLORAACC00;
STICKLINE(CLOSE<OPEN,CLOSE,OPEN,0.1,0),COLORAADD00;
副图1
N:=3;
VAR1:=(C-EMA(C,6))/EMA(C,6)*100;
VAR2:=(C-MA(C,24))/MA(C,24)*100;
VAR3:=(C-MA(C,32))/MA(C,32)*100;
VAR4:=(VAR1+VAR2+VAR3)/3;
KX:MEMA(VAR4,N),NODRAW,COLORWHITE;
DX:MEMA(KX,3),NODRAW,COLORYELLOW;
DRAWBAND(KX,RGB(150,0,100),DX,RGB(100,100,50));
MCD:EMA(EMA(VAR1,3),N)*2,COLORSTICK;
VAR5:=EMA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
VAR6:=SMA(SMA(100-3*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+SMA(2*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
VAR7:=VAR6<REF(VAR6,1) AND MCD>REF(MCD,1) AND DX>REF(DX,1) AND V>REF(V,1) AND C>O*1.011;
VAR8:=LLV(VAR5,3)<VAR5;
VAR9:=KX>DX AND DX<7;
必杀①:IF(VAR8>=1 AND VAR9 AND REF(KX<DX,1),1,0),NODRAW,COLORRED;
必杀②:IF(VAR7 AND VAR8 AND VAR9,1,0),NODRAW,COLORYELLOW;
STICKLINE(必杀①,-2,0,2,0),COLORRED;
STICKLINE(必杀②=1 AND REF(必杀②,1)<=0,0,1,2,0),COLORYELLOW;
{文字输出可以不要}
DRAWTEXT(必杀①,0,'①'),COLORWHITE;
DRAWTEXT(必杀② AND REF(必杀②,1)<=0,2,'②'),COLORYELLOW;
副图2
VARR1:=(HHV(HIGH,24)-CLOSE)/(HHV(HIGH,24)-LLV(LOW,24))*100;
VARR2:=(CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100;
VARR3:=(2*CLOSE+HIGH+LOW)/4;
VARR4:=LLV(LOW,26);
VARR5:=HHV(HIGH,34);
VARR6:=EMA((VARR3-VARR4)/(VARR5-VARR4)*100,16);
VARR7:=SMA((SMA(VARR2,3,1)+3),3,1),LINETHICK3;
VARR8:=EMA(VARR6,7);
VARR9:=SMA(VARR1,3,1);
VARR10:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VARR11:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VARR12:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VARR13:=(VARR10+VARR11+VARR12)/3;
VARR14:=IF(VARR13<=-20,10,0);
VARR15:=HHV(VARR14,10);
VARR24:=LLV(LOW,36);
VARR25:=HHV(HIGH,30);
VARR26:=EMA((CLOSE-VARR24)/(VARR25-VARR24)*4,4)*25;
VARB27:=(((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)/2+22)*1;
VARB28:=(((CLOSE -(((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) / (((EMA(AMOUNT,13) /EMA(VOL,13)) / 100))) * 100);
VAR2:=LLV(LOW,10);
VAR33:=HHV(HIGH,25);
动力线:= EMA((CLOSE-VAR2)/(VAR33-VAR2)*4,4);
底部:=0.2;
阶段底部:=CROSS(动力线,底部);
MAA5:=MA(C,5);
MAA10:=MA(C,10);
MAA30:=MA(C,30),;
KS:=IF(MAA10>MAA30,MAA10,MAA30);
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
替换:=FILTER(买=1,5);
绝底:((VARB28 < (0)) AND 替换) AND ((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100)<VARB27-2 AND VARR26<10 AND 阶段底部,STICK,LINETHICK2;
STICKLINE(绝底,0.58,0,1,0),COLORF05B72;
STICKLINE(绝底,0.58,0.78,3,0),COLORF47920;
DRAWICON(绝底,1,13);
DRAWICON(绝底,1.1,38);