X_1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
X_2:=SMA(X_1,9,1);
X_3:=SMA(X_2,9,1);
J:3*X_2-2*X_3,COLORRED;
MAC1:EMA(J,3),COLORGREEN;
X_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;