XA_1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
XA_2:=SMA(XA_1,9,1);
XA_3:=SMA(XA_2,9,1);
J:3*XA_2-2*XA_3,COLORRED;
Mac1:EMA(J,3),COLORGREEN;
XA_4:=EMA(J,240);
MAC3:EMA(J,20),COLORMAGENTA,LINETHICK2;
MAC4:EMA(J,60),COLORBLUE,LINETHICK2;
MACA:IF(J<=10,50,0),COLORFFCC00;
MACB:IF(J<=HIGH+LOW+CLOSE,1,8)*10,DOTLINE,COLOR999999;