UP:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);S:=(C/MA(C,15)-1)*1000+50;xg:CROSS(S,UP);