副图公式源码支持 手机/电脑
GUP1:=SMA((HIGH+LOW)/2,5,1)-SMA((HIGH+LOW)/2,34,1);
GUP2:=SMA(GUP1,5,1);
GUP3:=SMA((GUP1-GUP2),5,1),LINETHICK0;
STICKLINE(GUP3>=REF(GUP3,1),0,GUP3,2.2,1),COLORRED;
STICKLINE(GUP3< REF(GUP3,1),0,GUP3,2.2,1),COLORGREEN;
GUP4:=REF(GUP3,1);
买入1:=REF(GUP3,3)<REF(GUP4,3) AND REF(GUP3,2)<REF(GUP4,2) AND REF(GUP3,2)<REF(GUP3,3) AND REF(GUP3,1)>REF(GUP4,1) AND GUP3>GUP4 AND COUNT(GUP3>0,4)=4;
DRAWTEXT(买入1,GUP3,'买1'),COLORYELLOW;
买入2:=COUNT(GUP3<0,4)=4 AND REF(GUP3,3)<REF(GUP4,3) AND COUNT(GUP3>GUP4,3)=3;
DRAWTEXT(买入2,GUP3, '买2'),COLORYELLOW;
买入3:=REF(GUP3,3)<REF(GUP4,3) AND REF(GUP3,2)<REF(GUP4,2) AND REF(GUP3,2)<REF(GUP3,3) AND COUNT(GUP3>GUP4,2)=2 AND REF(GUP3,1)<0 AND GUP3>0;
DRAWTEXT(买入3,GUP3, '买3'),COLORYELLOW;
买入4:=REF(GUP3,4)<REF(GUP4,4) AND REF(GUP3,3)<REF(GUP4,3) AND REF(GUP3,3)<REF(GUP3,4) AND COUNT(GUP3>GUP4,3)=3 AND REF(GUP3,1)<0 AND GUP3>0;
DRAWTEXT(买入4,GUP3, '买4'),COLORYELLOW;
卖出1:=REF(GUP3,3)>REF(GUP4,3) AND REF(GUP3,2)>REF(GUP4,2) AND REF(GUP3,2)>REF(GUP3,3) AND REF(GUP3,1)<REF(GUP4,1) AND GUP3<GUP4 AND COUNT(GUP3<0,4)=4;
DRAWTEXT(卖出1,GUP3,'卖1'),COLORWHITE;
卖出2:=COUNT(GUP3>0,4)=4 AND REF(GUP3,3)>REF(GUP4,3) AND COUNT(GUP3<GUP4,3)=3;
DRAWTEXT(卖出2,GUP3,'卖2'),COLORWHITE;
选股公式源码
{选股公式一:买1}
GUP1:=SMA((HIGH+LOW)/2,5,1)-SMA((HIGH+LOW)/2,34,1);
GUP2:=SMA(GUP1,5,1);
GUP3:=SMA((GUP1-GUP2),5,1),LINETHICK0;
GUP4:=REF(GUP3,1);
买入1:=REF(GUP3,3)<REF(GUP4,3) AND REF(GUP3,2)<REF(GUP4,2) AND REF(GUP3,2)<REF(GUP3,3) AND REF(GUP3,1)>REF(GUP4,1) AND GUP3>GUP4 AND COUNT(GUP3>0,4)=4;
买1:买入1;
{选股公式二:买2}
GUP1:=SMA((HIGH+LOW)/2,5,1)-SMA((HIGH+LOW)/2,34,1);
GUP2:=SMA(GUP1,5,1);
GUP3:=SMA((GUP1-GUP2),5,1),LINETHICK0;
GUP4:=REF(GUP3,1);
买入2:=COUNT(GUP3<0,4)=4 AND REF(GUP3,3)<REF(GUP4,3) AND COUNT(GUP3>GUP4,3)=3;
买2:买入2;
{选股公式三:买3}
GUP1:=SMA((HIGH+LOW)/2,5,1)-SMA((HIGH+LOW)/2,34,1);
GUP2:=SMA(GUP1,5,1);
GUP3:=SMA((GUP1-GUP2),5,1),LINETHICK0;
GUP4:=REF(GUP3,1);
买入3:=REF(GUP3,3)<REF(GUP4,3) AND REF(GUP3,2)<REF(GUP4,2) AND REF(GUP3,2)<REF(GUP3,3) AND COUNT(GUP3>GUP4,2)=2 AND REF(GUP3,1)<0 AND GUP3>0;
买3:买入3;
{选股公式四:买4}
GUP1:=SMA((HIGH+LOW)/2,5,1)-SMA((HIGH+LOW)/2,34,1);
GUP2:=SMA(GUP1,5,1);
GUP3:=SMA((GUP1-GUP2),5,1),LINETHICK0;
GUP4:=REF(GUP3,1);
买入4:=REF(GUP3,4)<REF(GUP4,4) AND REF(GUP3,3)<REF(GUP4,3) AND REF(GUP3,3)<REF(GUP3,4) AND COUNT(GUP3>GUP4,3)=3 AND REF(GUP3,1)<0 AND GUP3>0;
买4:买入4; |