NUMBER:=30;
PL5:=IF(PERIOD>=7,ZIG(3,1),IF(PERIOD=3,ZIG(1,2),ZIG(1,2)));
{S说明:如果周月以上的选5%转向,如果日线选3%转向,如果日线以下周期选2%转向 }
PL10:=IF(PERIOD>=7,ZIG(3,30),IF(PERIOD=3,ZIG(1,10),ZIG(1,10)));
{S说明:如果周月以上的选10%转向,如果日线选5%转向,如果日线以下周期选4%转向 }
PL20:=IF(PERIOD>=7,ZIG(1,10),IF(PERIOD=3,ZIG(1,30),ZIG(1,20)));
{S说明:如果周月以上的选15%转向,如果日线选8%转向,如果日线以下周期选7%转向 }
EN1:=PL5> REF(PL5,1) AND REF(PL5,1)<=REF(PL5,2) AND REF(PL5,2)<=REF(PL5,3);
EX1:=PL5
EN2:=PL10> REF(PL10,1) AND REF(PL10,1)<=REF(PL10,2) AND REF(PL10,2)<=REF(PL10,3);
EX2:=PL10
EN3:=PL20> REF(PL20,1) AND REF(PL20,1)<=REF(PL20,2) AND REF(PL20,2)<=REF(PL20,3);
EX3:=PL20
走强1:=BARSLAST(PL5
走弱1:=BARSLAST(PL5> REF(PL5,1));
走强2:=BARSLAST(PL10
走弱2:=BARSLAST(PL10> REF(PL10,1));
走强3:=BARSLAST(PL20
走弱3:=BARSLAST(PL20> REF(PL20,1));
ZTJZ5:=IF(PL10> REF(PL10,1),COUNT(EN1,走强2),0);
ZTJD5:=IF(PL10> REF(PL10,1),COUNT(EX1,走强2),0);
DTJZ5:=IF(PL10
DTJD5:=IF(PL10
ZTJZ10:=IF(PL20> REF(PL20,1),COUNT(EN2,走强3),0);
ZTJD10:=IF(PL20> REF(PL20,1),COUNT(EX2,走强3),0);
DTJZ10:=IF(PL20
DTJD10:=IF(PL20
XG1:=EX2;
XG2:=PL20> REF(PL20,3);
XG3:=ZTJZ10=3;
{盘古量趋势}
量:=V;
RSV:=MA(V,7)*1.5;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=(3*K-2*D);
倍量:=(V/REF(V,1)>=1.91 AND COUNT(C> O,1)) OR (L> REF(H,1) AND COUNT(O> C,1) AND V/REF(V,1)>=1.91);
DAYNUM:=BARSLAST( (EN2 AND ZTJZ5=1) OR (EX2 AND PL20> REF(PL20,1) AND ZTJD10=1) OR(EN2 AND PL20> REF(PL20,1) AND ZTJZ10=2) OR (EX2 AND PL20> REF(PL20,1) AND ZTJD10=2) OR(EN2 AND PL20> REF(PL20,1) AND ZTJZ10=3));
C5NUMBER:=BARSLAST(EX2 AND (PL10> REF(PL10,1) OR REF(PL10> REF(PL10,1),1) OR ZTJD10=1));
DAYNUM!=C5NUMBER AND DAYNUM REF(PL10,1) OR REF(PL10> REF(PL10,1),1) OR ZTJD10=1),DAYNUM)=0
AND COUNT(倍量,DAYNUM)>=1;