VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=LLV(LOW,5);
VAR4:=HHV(HIGH,4);
VAR5:=EMA((VAR2-VAR3)/(VAR4-VAR3)*100,4)*VAR1;
VAR6:=EMA(0.667*REF(VAR5,1)+0.333*VAR5,2)*VAR1;
VAR7:=CROSS(VAR5,VAR6) AND VAR5<40;
买:VAR7;
DRAWTEXT_FIX(CLOSE>OPEN,0.01,0.01,0,4),COLORYELLOW;