HM:=SMA(((CLOSE-LLV(LOW,30))
/(HHV(HIGH,30)-LLV(LOW,30))*100),3,1);
DS:=CROSS(HM,10);
DS1:=REF(DS,1);
DS2:=REF(DS,2);
DS3:=REF(DS,3);
R1:=HHV(HIGH,60);
R2:=LLV(LOW,30);
R3:=SMA((CLOSE-R2)/(R1-R2),5,1)*100;
DS OR DS1 OR DS2 OR DS3 AND CROSS(HM,40) AND R3 25,COLORMAGENTA ;