YS1:=(HIGH+LOW+CLOSE*2)/4;
RK3:=EMA(YS1,10);
RK4:=STD(YS1,10);
RK5:=(YS1-RK3)*100/RK4;
RK6:=EMA(RK5,5);
RK7:=EMA(RK6,10);
DRAWTEXT((REF(RK7<REF(RK7,1),1) AND RK7>REF(RK7,1)),LOW*1.1,'↙B'),colorlired;
DRAWTEXT((REF(RK7>REF(RK7,1),1) AND RK7<REF(RK7,1)),HIGH*0.9,'↖S'),colorgreen;