A:=(3*ADVANCE+QHJSJ+OPEN+VOLINSTK)/6;
X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
S2:=SMA(ADVANCE,3,1);
S6:=SMA(ADVANCE,5,1);
DK:=2*(S2-S6);
主力成本:EMA(X,13),COLORLIMAGENTA,LINETHICK0;
短期底部:LLV(HIGH,30),COLORFFCC00,LINETHICK2;
NOTEXT1:IF(MA(ADVANCE,3),MA(ADVANCE,3),DRAWNULL),COLORBLUE,LINETHICK2;
NOTEXT2:IF(MA(ADVANCE,9),MA(ADVANCE,9),DRAWNULL),COLORLIMAGENTA,LINETHICK2;
NOTEXT3:IF(MA(ADVANCE,23.5),MA(ADVANCE,23.5),DRAWNULL),COLORGRAY,LINETHICK2;
TDXSTEP141:DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
MA5:=MA(ADVANCE,5);
MA10:=MA(ADVANCE,10);
MA30:=MA(ADVANCE,30);
FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);
FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);
红牛:FB,NODRAW,COLORWHITE;
TDXSTEP142:STICKLINE(红牛,MIN(OPEN,ADVANCE),MAX(OPEN,ADVANCE),4,0),COLORWHITE;
V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,90)*1.01,10);
牛起步:CROSS(V1,V2),NODRAW,COLORLIMAGENTA;
TDXSTEP143:STICKLINE(牛起步,MIN(OPEN,ADVANCE),MAX(OPEN,ADVANCE),4,0),COLORLIMAGENTA;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((CLOSE-VAR1)/(VAR2-VAR1)*100,5);
AK:=EMA((CLOSE-VAR1)/(VAR2-VAR1)*50,13);
AB:=CROSS(AK1,AK);
D牛窝:AB=1,NODRAW,COLORFF8080;
TDXSTEP144:STICKLINE(D牛窝,MIN(OPEN,ADVANCE),MAX(OPEN,ADVANCE),4,0),COLORFF8080;
AA1:=AMOUNT/DECLINE;
BB1:=QHJSJ<AA1*0.9;
CC1:=(ADVANCE-REF(ADVANCE,1))/REF(ADVANCE,1)*100>1.2;
DD1:=QHJSJ<MA(ADVANCE,5)*0.921;
EE1:=DECLINE<MA(DECLINE,5)*1.5;
铁树开花:=BB1 AND CC1 AND DD1 AND EE1;
VAR3AA:=IF(CLOSE>REF(CLOSE,1),88,0);
VAR4AA:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND VAR3AA>0,91,0);
大胆搏:FILTER(VAR4AA>90,45),NODRAW,COLOR400080;
TDXSTEP145:STICKLINE(大胆搏,MIN(OPEN,ADVANCE),MAX(OPEN,ADVANCE),4,0),COLOR400080;
加仓:FILTER(VAR4AA>90,35),NODRAW,COLORBLUE;
TDXSTEP146:STICKLINE(加仓,MIN(OPEN,ADVANCE),MAX(OPEN,ADVANCE),4,0),COLORBLUE;
A1AA:=9;
A2AA:=REF(CLOSE,A1AA+1)<CLOSE;
小心变盘:FILTER(A2AA>(-0.5),84),NODRAW,COLOR40FF00;
TDXSTEP147:STICKLINE(小心变盘,MIN(OPEN,ADVANCE),MAX(OPEN,ADVANCE),4,0),COLOR40FF00;
VAR6:=REF(ADVANCE,1);
VAR7:=SMA(MAX(ADVANCE-VAR6,0),6,1)/SMA(ABS(ADVANCE-VAR6),6,1)*100;
逃顶:CROSS(82,VAR7),NODRAW,COLORB76FFF;
TDXSTEP148:STICKLINE(逃顶,MIN(OPEN,ADVANCE),MAX(OPEN,ADVANCE),4,0),COLORB76FFF;