PGGZH1:=POW(10,6);
PGGZH2:=IF(PGGZH1>0,1,0);
PGGZH3:=SUM(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),10);
PGGZH4:=HIGH-REF(HIGH,1);
PGGZH5:=REF(LOW,1)-LOW;
PGGZH7:=SUM(IF(PGGZH5>0 AND PGGZH5>PGGZH4,PGGZH5,0),20);
PGGZH8:=LLV(LOW,240);
PGGZH9:=HHV(HIGH,240);
参考系:=(CLOSE-PGGZH8)/PGGZH8*100;
中线:=PGGZH7/PGGZH3/2*100;
散户线:=(PGGZH9-CLOSE)/CLOSE*100;
PGGZH10:=HHV(CLOSE,20);
PGGZH11:=EMA(PGGZH10,30)*1.03;
PGGZH12:=EMA(PGGZH10,120)*1.03;
PGGZH13:=(CLOSE+HIGH+LOW)/3;
PGGZH14:=EMA(PGGZH13,10);
看涨:=IF(参考系>15 AND 参考系>中线,参考系,DRAWNULL);
超强:=IF(参考系>30 AND 参考系>散户线,参考系,DRAWNULL);
XG:(FILTER(看涨 OR 超强 AND 参考系>=HHV(参考系,10) AND OPEN/PGGZH14<1.08 AND OPEN/PGGZH11<1.1 AND OPEN/PGGZH12<1.2 AND CLOSE>PGGZH11 AND CLOSE>=REF(CLOSE,1)*1.05 AND 散户线<60 AND 参考系<120,30))*PGGZH2;