M1:=5;
M2:=100;
X_1:=POW(10,6)+241230-DATE;
X_2:=IF(X_1>0,1,0);
X_3:=HHV(CLOSE,10);
X_4:=EMA(X_3,30);
X_5:=EMA(X_3,120);
X_6:=MA(CLOSE*vol,20);
X_7:=MA(CLOSE*VOL,60);
X_8:=1000*(X_6-REF(X_6,1))/REF(X_6,1)*2;
X_9:=1000*(X_7-REF(X_7,1))/REF(X_7,1)*2;
X_10:=(X_8-X_9)*VOL*CLOSE/MA(REF(VOL*CLOSE,1),5);
STICKLINE(X_10>=0 AND CLOSE>=OPEN,X_10,0,1,0),COLORMAGENTA;
STICKLINE(X_10>=0 AND CLOSE<OPEN,X_10,0,1,0),COLORBLUE;
STICKLINE(X_10<0 AND CLOSE<OPEN,X_10,0,1,0),COLORGREEN;
STICKLINE(X_10<0 AND CLOSE>=OPEN,X_10,0,1,0),COLORYELLOW;
X_11:=LLV(LOW,200);
LLS:EMA((CLOSE-X_11)/X_11,30)*100+200,COLORYELLOW;
X_12:=FILTER(CLOSE>=REF(CLOSE,1)*1.05 AND X_10>=LLS/2 AND (crOSS(CLOSE,X_4) OR (CLOSE>X_4 AND REF(LOW,1)<X_4)),20);
DRAWICON(X_12,X_10,18);