N1:=9;
LC := REF(CLOSE,1);
MA15:=MA(C,15);
rsi$1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(Abs(CLOSE-LC),N1,1)*100;
K:RSI$1-REF(RSI$1,1);
STICKLINE(k<REF(k,1) AND RSI$1>40 AND (k<0 OR REF(k,1)<0),15,20,2);
STICKLINE(k<REF(k,1)AND RSI$1<40,-15,-20,2);
x:((k<REF(k,1)AND RSI$1<40)>0)*8;
y:((k<REF(k,1) AND RSI$1>40)>0 AND (k<0 OR REF(k,1)<0))*8;