VAR01:=SMA(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),15,1);
VAR02:=HIGH-REF(HIGH,5);
VAR03:=REF(LOW,5)-LOW;
VAR04:=SMA(IF(VAR02>0 AND VAR02>VAR03,VAR02,0),15,1);
VAR05:=SMA(IF(VAR03>0 AND VAR03>VAR02,VAR03,0),15,1);
VAR06:=LLV(LOW,27);
VAR07:=HHV(HIGH,34);
VAR08:=EMA((CLOSE-VAR06)/(VAR07-VAR06)*4,4)*25;
VAR09:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1);
买入:crOSS(VAR09,8);