x:IF(ABS(var 1)& lt; c,ABS(VAR 1),DRAWNULL),COLORRED,CIRCLEDOT
S:IF(ABS(VAR 1)>c,ABS(VAR 1),DRAWNULL),COLORGREEN,CIRCLEDOT
B 1:=REF(C, 1);
B2:=REF(C,2);
SS:= IF(C & gt; REF(C, 1) and REF(C, 1)>=REF(C, 2), 1, if (c <: REF(C, 1) and REF(C,1) < =REF(C,2),- 1,IF(C & gt; REF(C, 2) and REF(C, 2)>REF(C, 1), 2, if (c < REF(C, 2) and REF(C, 2) < REF(C, 1),-2,0))));
SM:=IF(REF(SS, 1)>0 or REF(SS,1) < 0, REF(SS, 1), IF(REF(SS, 2)>0 or REF(SS, 2) < 0, ref (ss,2), if (ref (ss,3) > 0 or ref (ss,3) <; 0, ref (ss,3), if (ref (ss,4) > 0 or ref (ss,4) <; 0, ref (ss,4), if (ref (ss,5) > 0 or ref (ss,5) <; 0, REF(SS, 5), IF(REF(SS, 6)>0 or REF(SS, 6) < 0, ref (ss,6), if (ref (ss,7) > 0 or ref (ss,7) <; 0,REF(SS,7),0))))))));
Adhesion line (SS= 1 or SM>= 1 and SS=0, B 1, c, 0.8, 1), COLORRED.
Sticky line (SS=2, B2, C, 0.8, 1) with red color;
STICKLINE(SS=-2,B2,C,0.8,0),COLORFF9000
STICKLINE((SS=- 1 or SS=-2) and SM>0, B2, B 1, 0.8, 1), COLORRED.
STICKLINE((SS= 1 or SS=2) and SM<0, B2, B 1, 0.8,0), COLORFF9000.
MA 1:MA(C,5);
MA2: Ma (c,10);
MA3: Ma (c, 20);
MA4: Ma (c, 30);
MA5: Ma (c, 60);
DIFF:=EMA (closing, 12)-EMA (closing, 26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA),COLORSTICK
RSV:=(CLOSE-LLV (low, 9))/(HHV (high, 9)-LLV (low, 9)) *100; {The closing price is different from the lowest value of N period, and the highest value of N period is different from the lowest value of N period, and the difference between them is the ratio. }
K:=SMA(RSV,3, 1); {moving average of {RSV}
D:=SMA(K,3, 1); {moving average of k}
AA:= X & gt; 0 & amp& ampMACD & gt; 0 & amp& ampK & gtD & amp& ampma 1 & gt; MA2 & amp; & ampMA3 & gtMA4
BB:= S & gt; 0 & amp& ampMACD<0 & amp& ampK & ltD & amp& ampma 1 & lt; MA2 & amp; & ampMA3 & ltMA4
DRAWICON(CROSS(AA,0.5),H, 1);
DRAWICON(CROSS(BB,0.5),L,2);