副图公式源码支持 手机/电脑
GUP1:=(H+L+C)/3;
GUP2:=REF(C,1);
GUP3:=(GUP1-MA(GUP1,13))*100/(1.5*AVEDEV(GUP1,13));
GUP4:=SMA(MAX(C-GUP2,0),5,1)/SMA(ABS(C-GUP2),5,1)*100;
GUP5:=COUNT(GUP3<-270,7)/7>=1/7 AND GUP3>-170;
GUP6:=GUP3<0 AND GUP4<=REF(GUP4,1) AND GUP3>REF(GUP3,1);
GUP7:=GUP3<-33 AND GUP4<0.88*REF(GUP4,3) AND GUP4<REF(GUP4,1) AND GUP4<25 AND (GUP5 OR GUP3>1.088*REF(GUP3,3));
普买:GUP6 OR GUP7,COLORRED;
精买:GUP4<68 AND GUP4>48 AND 普买 AND (MA(C,5)>MA(C,10) OR MA(C,10)>MA(C,20)),COLORYELLOW;
优买:普买 AND REF(GUP4,1)<REF(GUP4,2) AND (GUP3>1.088*REF(GUP3,3) OR CROSS(GUP3,REF(GUP3,1)) OR REF(GUP3,1)>REF(GUP3,2)),COLORFF00FF;
特买:普买 AND GUP4<=21 AND (CROSS(GUP3,REF(GUP3,1)) OR GUP3>1.088*REF(GUP3,3) OR GUP5),COLOR00FF00;
选股公式源码
{选股公式一:普买}
GUP1:=(H+L+C)/3;
GUP2:=REF(C,1);
GUP3:=(GUP1-MA(GUP1,13))*100/(1.5*AVEDEV(GUP1,13));
GUP4:=SMA(MAX(C-GUP2,0),5,1)/SMA(ABS(C-GUP2),5,1)*100;
GUP5:=COUNT(GUP3<-270,7)/7>=1/7 AND GUP3>-170;
GUP6:=GUP3<0 AND GUP4<=REF(GUP4,1) AND GUP3>REF(GUP3,1);
GUP7:=GUP3<-33 AND GUP4<0.88*REF(GUP4,3) AND GUP4<REF(GUP4,1) AND GUP4<25 AND (GUP5 OR GUP3>1.088*REF(GUP3,3));
普买:GUP6 OR GUP7,COLORRED;
{选股公式二:精买}
GUP1:=(H+L+C)/3;
GUP2:=REF(C,1);
GUP3:=(GUP1-MA(GUP1,13))*100/(1.5*AVEDEV(GUP1,13));
GUP4:=SMA(MAX(C-GUP2,0),5,1)/SMA(ABS(C-GUP2),5,1)*100;
GUP5:=COUNT(GUP3<-270,7)/7>=1/7 AND GUP3>-170;
GUP6:=GUP3<0 AND GUP4<=REF(GUP4,1) AND GUP3>REF(GUP3,1);
GUP7:=GUP3<-33 AND GUP4<0.88*REF(GUP4,3) AND GUP4<REF(GUP4,1) AND GUP4<25 AND (GUP5 OR GUP3>1.088*REF(GUP3,3));
普买:=GUP6 OR GUP7,COLORRED;
精买:GUP4<68 AND GUP4>48 AND 普买 AND (MA(C,5)>MA(C,10) OR MA(C,10)>MA(C,20)),COLORYELLOW;
{选股公式三:优买}
GUP1:=(H+L+C)/3;
GUP2:=REF(C,1);
GUP3:=(GUP1-MA(GUP1,13))*100/(1.5*AVEDEV(GUP1,13));
GUP4:=SMA(MAX(C-GUP2,0),5,1)/SMA(ABS(C-GUP2),5,1)*100;
GUP5:=COUNT(GUP3<-270,7)/7>=1/7 AND GUP3>-170;
GUP6:=GUP3<0 AND GUP4<=REF(GUP4,1) AND GUP3>REF(GUP3,1);
GUP7:=GUP3<-33 AND GUP4<0.88*REF(GUP4,3) AND GUP4<REF(GUP4,1) AND GUP4<25 AND (GUP5 OR GUP3>1.088*REF(GUP3,3));
普买:=GUP6 OR GUP7,COLORRED;
优买:普买 AND REF(GUP4,1)<REF(GUP4,2) AND (GUP3>1.088*REF(GUP3,3) OR CROSS(GUP3,REF(GUP3,1)) OR REF(GUP3,1)>REF(GUP3,2)),COLORFF00FF;
{选股公式四:特买}
GUP1:=(H+L+C)/3;
GUP2:=REF(C,1);
GUP3:=(GUP1-MA(GUP1,13))*100/(1.5*AVEDEV(GUP1,13));
GUP4:=SMA(MAX(C-GUP2,0),5,1)/SMA(ABS(C-GUP2),5,1)*100;
GUP5:=COUNT(GUP3<-270,7)/7>=1/7 AND GUP3>-170;
GUP6:=GUP3<0 AND GUP4<=REF(GUP4,1) AND GUP3>REF(GUP3,1);
GUP7:=GUP3<-33 AND GUP4<0.88*REF(GUP4,3) AND GUP4<REF(GUP4,1) AND GUP4<25 AND (GUP5 OR GUP3>1.088*REF(GUP3,3));
普买:=GUP6 OR GUP7,COLORRED;
特买:普买 AND GUP4<=21 AND (CROSS(GUP3,REF(GUP3,1)) OR GUP3>1.088*REF(GUP3,3) OR GUP5),COLOR00FF00; |