HGW1:=HHV(HIGH,500);
HGW2:=HHV(HIGH,250);
HGW3:=HHV(HIGH,90);
HGW4:=LLV(LOW,500);
HGW5:=LLV(LOW,250);
HGW6:=LLV(LOW,90);
SQL1:=EMA(HGW1,21);
SQL2:=EMA(HGW2,21);
SQL3:=EMA(HGW3,21);
SQL4:=EMA(HGW4,21);
SQL5:=EMA(HGW5,21);
SQL6:=EMA(HGW6,21);
SQL7:=EMA((SQL4*0.96+SQL5*0.96+SQL6*0.96+SQL1*0.558+SQL2*0.558+SQL3*0.558)/6,21);
SQL8:=EMA((SQL4*1.25+SQL5*1.23+SQL6*1.2+SQL1*0.55+SQL2*0.55+SQL3*0.65)/6,21);
SQL9:=EMA((SQL4*1.3+SQL5*1.3+SQL6*1.3+SQL1*0.68+SQL2*0.68+SQL3*0.68)/6,21);
SQL10:=EMA((SQL7*3+SQL8*2+SQL9)/6*1.738,21);
SQL11:=REF(LOW,1);
SQL12:=SMA(ABS(LOW-SQL11),3,1)/SMA(MAX(LOW-SQL11,0),3,1)*100;
SQL13:=EMA(IF(CLOSE*1.35<=SQL10,SQL12*10,SQL12/10),3);
SQL14:=LLV(LOW,30);
SQL15:=HHV(SQL13,30);
SQL16:=IF(MA(CLOSE,58),1,0);
SQL17:=EMA(IF(LOW<=SQL14,(SQL13+SQL15*2)/2,0),3)/618*SQL16;
SQL18:=REF(SQL17,1)*SQL17;
SQL19:=REF(SQL17,1)*SQL17;
SQL20:=CLOSE/REF(CLOSE,1)>1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));
SQL21:=FILTER(SQL20,28);
首板擒龙头:REF(SQL18,1)>0 AND SQL19=0 AND SQL21,LINETHICK2,COLOR00FFFF;