GM1:=MA((LOW+HIGH+CLOSE+OPEN)/4,25)*1.23;
GM2:=MA(LOW,24)*1.09;
GM3:=MA(LOW,24)*1.19;
GM4:=EMA(SLOPE(CLOSE,13)*13+CLOSE,13);
GM5:=HHV(GM4,26);
GM6:=EMA(SLOPE(CLOSE,10)*10+CLOSE,30);
GM7:=HHV(GM6,30);
GM8:=EMA(SLOPE(CLOSE,25)*25+CLOSE,25);
GM9:=HHV(GM8,55);
GM10:=(LOW+HIGH+CLOSE+OPEN)/3.8;
GM11:=HHV(MA(GM10,8),60);
GM12:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,9)-LLV(LOW,12))*123;
GM13:=SMA(GM12,3,1);
GM14:=SMA(GM13,3,1);
GM15:=5*GM13-3*GM14;
GM16:=7*GM13-6*GM14;
GM17:=MA(LOW,13)*1.19;
GM18:=MA(LOW,11)*1.09;
GM19:=REF(COUNT(GM17>REF(GM17,1),3)=3,1);
GM20:=REF(GM15>REF(GM15,1) AND GM16>REF(GM16,1),1) AND GM15>240 AND GM16>150;
XG:CROSS(CLOSE,GM9) AND HIGH>GM11 OR (CROSS(CLOSE,GM11) AND HIGH>GM9) AND CLOSE/GM3>0.93 AND OPEN/LOW<1.009 AND GM20 AND GM11>GM2 AND REF(GM2>GM7,1) AND REF(COUNT(CLOSE/REF(CLOSE,1)>1.075,5)<1,1) AND CLOSE>GM5 AND CLOSE>GM2 AND CLOSE/REF(CLOSE,1)>1.049;