XGG1:=HHV(HIGH,500);
XGG2:=HHV(HIGH,250);
XGG3:=HHV(HIGH,90);
XGG4:=LLV(LOW,500);
XGG5:=LLV(LOW,250);
XGG6:=LLV(LOW,90);
XG1:=EMA(XGG1,21);
XG2:=EMA(XGG2,21);
XG3:=EMA(XGG3,21);
XG4:=EMA(XGG4,21);
XG5:=EMA(XGG5,21);
XG6:=EMA(XGG6,21);
XG7:=EMA((XG4*0.96+XG5*0.96+XG6*0.96+XG1*0.558+XG2*0.558+XG3*0.558)/6,21);
XG8:=EMA((XG4*1.25+XG5*1.23+XG6*1.2+XG1*0.55+XG2*0.55+XG3*0.65)/6,21);
XG9:=EMA((XG4*1.3+XG5*1.3+XG6*1.3+XG1*0.68+XG2*0.68+XG3*0.68)/6,21);
XG10:=EMA((XG7*3+XG8*2+XG9)/6*1.738,21);
XG11:=REF(LOW,1);
XG12:=SMA(Abs(LOW-XG11),3,1)/SMA(MAX(LOW-XG11,0),3,1)*100;
XG13:=EMA(IF(CLOSE*1.35<=XG10,XG12*10,XG12/10),3);
XG14:=LLV(LOW,30);
XG15:=HHV(XG13,30);
XG16:=IF(MA(CLOSE,58),1,0);
XG17:=EMA(IF(LOW<=XG14,(XG13+XG15*2)/2,0),3)/618*XG16;
XG18:=REF(XG17,1)*XG17;
XG19:=REF(XG17,1)*XG17;
XG20:=CLOSE/REF(CLOSE,1)>1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(vol,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));
XG21:=FILTER(XG20,28);
首板擒龙头X:REF(XG18,1)>0 AND XG19=0 AND XG21;