VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),13,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*13,VAR2/13),13);
VAR4:=LLV(LOW,34);
VAR5:=HHV(VAR3,34);
VAR6:=IF(LLV(LOW,56),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR8:=VAR7>REF(VAR7,1);
VAR9:=REF(LLV(LOW,100),3);
VAR10:=REFDATE(VAR9,DATE);
VAR11:=LOW=VAR10;
VAR12:=VAR8 AND VAR11;
VAR13:=VAR12>REF(VAR12,1);
BUYHAOGU:VAR13>REF(VAR13,1);