XA_1:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
XA_2:=(EMA(XA_1,3)-50)*2;
XA_3:=(-1)*XA_2;
XA_4:=EMA(XA_2,2);
XA_5:=EMA(XA_3,2);
JS3:XA_4-XA_5,COLORGREEN;
JS4:-JS3,COLORGREEN;
XA_6:=JS3=5;
XA_7:=JS3=(-5);
JQ1:IF(JS3>REF(JS3,1),JS3,DRAWNULL),COLORMAGENTA;
JQ2:IF(JS3>0,JS4,DRAWNULL),COLORYELLOW;
JQ3:IF(JS3>0,JS3,DRAWNULL),COLORYELLOW;
JQ6:IF(JS3>0 AND JS3>=REF(JS3,1),JS3,DRAWNULL),COLORRED,LINETHICK6;
JQ8:DRAWBAND(JQ3,RGB(100,55,111),JQ2,RGB(0,0,0));
JQ4:DRAWBAND(JQ6,RGB(199,55,123),JQ2,RGB(0,0,0));
XA_8:=JS3>0 AND REF(JS3,3)<0 AND REF(JS3,1)>0;
XA_9:=FILTER(XA_8,5) AND JS3>=REF(JS3,1);
DRAWICON(XA_9,8,41);
买入:crOSS(JS3,JS4) AND JS3>1.1,LINETHICK0;
DRAWICON(买入,(-103),1);