zt1:=C/REF(C,1)>1.0975 AND C=H;TS:=BArslAST(zt1);
zj:=IF(ts<=16,DRAWLINE(zt1,(H+L)/2,ISLASTBAR,REF((H+L)/2,ts),1),DRAWNULL);
MA30:=MA(C,30);CPXA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
CPXB:=(20*CPXA+19*REF(CPXA,1)+18*REF(CPXA,2)+17*REF(CPXA,3)+16*REF(CPXA,4)+15*REF(CPXA,5)+14*REF(CPXA,6)+13*REF(CPXA,7)+12*REF(CPXA,8)+11*REF(CPXA,9)+10*REF(CPXA,10)+9*REF(CPXA,11)+8*REF(CPXA,12)+7*REF(CPXA,13)+6*REF(CPXA,14)+5*REF(CPXA,15)+4*REF(CPXA,16)+3*REF(CPXA,17)+2*REF(CPXA,18)+1*REF(CPXA,19))/210;
zt:=IF(REF(C,1)*1.1-C<0.01 ,1,0);LC:=REF(CLOSE,1);
{ Gupang.com 股-旁-网_通达信股票指标公式}
czx:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(Abs(CLOSE-LC),2,1)*100;
zcx:=45;zcx2:=50;cdx:=20;
PP2:=czx<zcx2 AND REF(czx,1)>zcx2 ;PP:=czx<zcx AND REF(czx,1)>zcx ;PP3:=czx<cdx AND REF(czx,1)>cdx;
HH:=COUNT(zt,9)>=1;
DDDD:=(PP2 AND HH OR PP AND HH OR PP3 AND HH);
A:=SMA(L,4,3) ;ZF:=(C-REF(C,1))/REF(C,1)*100;
zt9:=INTPART(SUM(ZF>9.9,9));
lsmr:=IF (((A AND REF(PP,1) AND HH AND zt9) OR (A AND REF(PP3,1) AND HH AND zt9) OR (A AND REF(PP2,1) AND HH AND zt9)),1,0 );
LT:=(CAPITAL/100)/10000<=10;
XG1:=lsmr AND REF(lsmr,1) AND czx>REF(czx,1) AND LT;
XG2:=lsmr AND REF(lsmr,2) AND czx>REF(czx,1) AND LT;
XG3:=REF(lsmr,1) AND czx>REF(czx,1) AND LT AND REF(czx,1)<REF(czx,2);
jd30:=ATAN((MA30/REF(MA30,1)-1)*100)*180/3.14159;
AA30:=jd30>5;
XG:XG1 OR XG2 OR XG3 AND C>MA30 AND C>CPXB and c>zj;