GUA:=(O+H+L+C)/4;
GUB:=MA(GUA,3);
GUC:=SUM(IF(GUA>REF(GUA,1),GUA*VOL,0),4)/SUM(IF(GUA<REF(GUA,1),GUA*VOL,0),4);
GUD:=REF(100-(100/(1+GUC)),1);
GUA1:=HHV(GUA,15);
GUA2:=LLV(GUA,15);
GUA3:=GUA1-GUA2;
GUA4:=EMA((GUA-GUA2)/GUA3,2)*100;
GUB1:=HHV(GUA,60);
GUB2:=LLV(GUA,60);
GUB3:=GUB1-GUB2;
GUB4:=EMA((GUA-GUB2)/GUB3,2)*100;
GUC1:=HHV(GUA,240);
GUC2:=LLV(GUA,240);
GUC3:=GUC1-GUC2;
GUC4:=EMA((GUA-GUC2)/GUC3,2)*100;
短线:=GUA4,COLORGREEN;
中线:=GUB4,COLORYELLOW;
长线:=GUC4,COLORFF00FF;
GUD1:=中线>REF(中线,1) AND 短线>REF(短线,1) AND 长线>REF(长线,1) AND 长线<8 AND 中线<10 AND 短线<15;
GUD2:=CROSS(短线,中线) AND 中线<8;
GUD3:=CROSS(短线,长线) AND 长线<8 AND 中线<20;
波谷中线抄底:FILTER((GUD1 OR GUD2 OR GUD3) AND GUD<15 AND C>REF(C,1),5)COLORFF00FF,LINETHICK2;