VAR1:=(OPEN+HIGH+LOW+CLOSE)/4;
VAR2:=IF(BETWEEN(CLOSE,VAR1,HIGH) OR CLOSE=OPEN,VOL,0);
VAR3:=IF(BETWEEN(CLOSE,VAR1,LOW),VOL,0);
VAR4:=IF(VAR2 AND VAR3,0,VOL/3);
VAR5:=10*(VAR2-(VAR3+VAR4))/IF(CAPITAL<1,SUM(VOL,13),CAPITAL);
VAR6:=3*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*1,5,1)-2*SMA((CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*1,5,1);
VAR7:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*1;
VAR8:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR9:=SMA(VAR8,3,1);
VAR10:=SMA(VAR9,3,1);
VAR11:=3*VAR9-2*VAR10;
VAR12:=EMA(CLOSE,3);
VAR13:=EMA(CLOSE,5);
VAR14:=EMA(VAR13,5);
VAR15:=COUNT(CROSS(VAR12,VAR14),2)=1;
VAR16:=COUNT(CROSS(VAR13,VAR14),2)=1;
VAR17:=FILTER(VAR15 AND VAR16,2);
VAR18:=VAR17=1 AND VAR5>0 AND CROSS(VAR9,VAR10);
XG:CROSS(VAR6,EMA(VAR6,5)) AND EMA(VAR6,5)<VAR7 AND VAR5>0 AND CROSS(VAR9,VAR10) AND VAR18,COLORYELLOW;