VAR1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR2:=20*VAR1+19*REF(VAR1,1)+18*REF(VAR1,2)+17*REF(VAR1,3);
VAR3:=VAR2+16*REF(VAR1,4)+15*REF(VAR1,5)+14*REF(VAR1,6)+13*REF(VAR1,7);
VAR4:=VAR3+12*REF(VAR1,8)+11*REF(VAR1,9)+10*REF(VAR1,10)+9*REF(VAR1,11);
VAR5:=VAR4+8*REF(VAR1,12)+7*REF(VAR1,13)+6*REF(VAR1,14)+5*REF(VAR1,15);
VAR6:=(VAR5+4*REF(VAR1,16)+3*REF(VAR1,17)+2*REF(VAR1,18)+REF(VAR1,20))/210;
VAR7:=BARSLAST(CROSS(MA(C,10),MA(C,5))) AND CROSS(MA(C,5),MA(C,10));
VAR8:=VAR7 AND MA(C,5)>MA(C,30) AND MA(C,10)>MA(C,30) AND MA(C,10)>REF(MA(C,10),1);
VAR9:=EMA(EMA(CLOSE,90)*1.01,10);
VAR10:=EMA((((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100),5);
VAR11:=EMA((((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*50),13);
VAR12:=LOW<(AMOUNT/VOL)*0.9;
VAR13:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>1.2;
VAR14:=LOW<MA(CLOSE,5)*0.921;
VAR15:=VOL<MA(VOL,5)*1.5;
VAR16:=VAR12 AND VAR13 AND VAR14 AND VAR15;
VAR17:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR18:=IF(((C)/(REF(C,1))>1.05) AND ((H)/(C)<1.01) AND (VAR17>0),91,0);
VAR27:=(REF(CLOSE,9+1)<CLOSE);
VAR26:=SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100;
主力成本:EMA(VAR6,13),COLORFF00FF,NODRAW;
短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;
IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2;
IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
DRAWTEXT(VAR8,LOW-0.58,'★红牛'),COLORRED;
DRAWTEXT(CROSS(EMA(C,5),VAR9),EMA(C,5)+0.05,'牛起步'),COLOR00FF00;
DRAWTEXT((CROSS(VAR10,VAR11)=1),(LOW*0.99),'○底'),COLORBLUE;
DRAWTEXT(VAR16,L*0.99,'铁树开花'),COLOR0099FF;
DRAWTEXT(FILTER((VAR18>90),45),(LOW)*(0.93),'★大胆搏 '),COLOR00FFFF;
DRAWTEXT(FILTER((VAR18>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;
DRAWTEXT(FILTER((VAR27>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;
DRAWTEXT(CROSS(82,VAR26),H*1.01,'▼逃'),COLORRED;