B1:=(HHV(H,5)-C)/(HHV(H,5)-LLV(LOW,5))*100- 70;
B2:=SMA(B1,9,1)+100;
B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
B4:=Sma(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
B7:=IF(B6>60,B6-60,0);
XG:REF(C<O,1) AND REF(C<O,2) AND C>O AND C/REF(C,1)>1.03 AND (REF(H,3)-REF(L,1))/C*100>10 AND
B7>=REF(B7,1),COLORRED;