VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,5);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
VAR5:=MA(VAR4,2);
VAR6:=REF(CLOSE,1)/REF(CLOSE,2)< 0.95;
VAR7:=VAR5< 20 AND VAR6 AND CLOSE>LOW AND OPEN>LOW;
VAR8:=CLOSE/REF(CLOSE,3)< 0.95;
VAR9:=REF(VAR8,1)=1 AND CLOSE/REF(CLOSE,1)>1.025;
VAR10:=vol>REF(HHV(VOL,10),1) AND NOT(OPEN=CLOSE) AND HIGH/CLOSE< 1.0007;
VAR11:=REF(EVERY(MA(CLOSE,5)< MA(CLOSE,10),5),1) AND VOL/MA(VOL,10)>1.8;
VAR12:=COUNT(VAR7=1,3)>0 AND REF(CLOSE,1)< REF(CLOSE,2);
VAR13:=VOL/REF(VOL,1)>1.7 AND REF(OPEN,1)< 100;
底部掘金:=VAR9 AND VAR10 AND VAR11 AND VAR12 AND VAR13;
DRAWTEXT(底部掘金,16.6,' ★底部掘金'),COLORLIMAGENTA;
STICKLINE(底部掘金,20,12,1.6,0),COLORMAGENTA;
STICKLINE(底部掘金,12,6,0.1,0),COLORRED;
DRAWICON(底部掘金,19.8,9);
DRAWICON(底部掘金,17.8,9);
DRAWICON(底部掘金,15.8,9);