副图公式源码支持 手机/电脑
条件:=EVERY(L>REF(L,1),3) AND EVERY(REF(L,3)<REF(L,4),3) AND REF(L,3)=LLV(L,10);
GUP1:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(条件))+4);
低线:REF(L,GUP1);
GUPA:=(COUNT(低线>L,GUP1)=1 AND 低线>L) AND GUP1>5 AND H/L>1.04;
GUP2:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(GUPA))+1);
GUP3:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(GUP1))+4);
GUP4:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(GUP3))+4);
高线:REF(H,GUP2),COLORCYAN,DOTLINE;
DRAWTEXT(GUP1+1,L*0.99,'前底部'),COLORYELLOW;
DRAWTEXT(GUP2+1,H,'假突破'),DRAWABOVE,COLORYELLOW;
DRAWTEXT(GUP3+1,L*0.99,'次底部'),COLORYELLOW;
DRAWTEXT(GUP4+1,L*0.99,'近底部'),COLORYELLOW;
DRAWICON(GUP2+1,L,39);
DRAWICON(COUNT(C>高线,GUP2)=1 AND C>高线 AND GUP2<30,L,38);
DRAWTEXT(COUNT(C>高线,GUP2)=1 AND C>高线 AND GUP2<30,H,'买点'),DRAWABOVE,COLORYELLOW;
选股公式源码
{选股公式:买点}
条件:=EVERY(L>REF(L,1),3) AND EVERY(REF(L,3)<REF(L,4),3) AND REF(L,3)=LLV(L,10);
GUP1:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(条件))+4);
低线:=REF(L,GUP1);
GUPA:=(COUNT(低线>L,GUP1)=1 AND 低线>L) AND GUP1>5 AND H/L>1.04;
GUP2:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(GUPA))+1);
GUP3:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(GUP1))+4);
GUP4:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(GUP3))+4);
高线:=REF(H,GUP2),COLORCYAN;
{DRAWICON(COUNT(C>高线,GUP2)=1 AND C>高线 AND GUP2<30,L,38);
DRAWTEXT(COUNT(C>高线,GUP2)=1 AND C>高线 AND GUP2<30,H,'买点'),DRAWABOVE,COLORYELLOW;}
买点:COUNT(C>高线,GUP2)=1 AND C>高线 AND GUP2<30;
{卖出公式:绿箭头图标}
条件:=EVERY(L>REF(L,1),3) AND EVERY(REF(L,3)<REF(L,4),3) AND REF(L,3)=LLV(L,10);
GUP1:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(条件))+4);
低线:=REF(L,GUP1);
GUPA:=(COUNT(低线>L,GUP1)=1 AND 低线>L) AND GUP1>5 AND H/L>1.04;
GUP2:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(GUPA))+1);
GUP3:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(GUP1))+4);
GUP4:=BARSLAST(CURRBARSCOUNT=CONST(BARSLAST(GUP3))+4);
{DRAWICON(GUP2+1,L,39);}
绿箭头图标:GUP2+1;
|