副图公式源码支持: 手机/电脑
GUP:=(C*2+H+L+O)/5;GUP0:=MA(C,5);
GUP1EMA(GUP,4)+MA(GUP,8)+MA(GUP,16))/3,COLORWHITE;
GUP2EMA(GUP,9)+MA(GUP,18)+MA(GUP,36))/3,COLORFF00FF;
GUP3EMA(GUP,13)+MA(GUP,26)+MA(GUP,52))/3,COLOR00FF00;
GUP4EMA(GUP,24)+MA(GUP,48)+MA(GUP,96))/3,COLOR0000FF;
GUP5:=EMA(100*(C-LLV(L,100))/(HHV(H,100)-LLV(L,100)),5);
GUP6:=GUP5/4;GUP7:=MAX(MAX(GUP1,GUP2),MAX(GUP3,GUP4));
GUP8:=MIN(MIN(GUP1,GUP2),MIN(GUP3,GUP4));
GUP9:=MIN(MIN(GUP1,GUP2),GUP3);
GUP10:=MAX(MAX(GUP1,GUP2),GUP3);
DRAWTEXT(FILTER(H>GUP7 AND L<GUP8 AND GUP1>REF(GUP1,1) AND GUP2>REF(GUP2,1) AND GUP4>REF(GUP4,2) AND (GUP7-GUP8)/GUP8<0.04 AND C>O AND (H-C)/(C-O)<0.4,3),GUP4-0.1,'穿四线');
DRAWTEXT(LONGCROSS(GUP1,GUP3,30) AND (GUP4-GUP3)/GUP3<0.05 AND GUP10<GUP4,GUP1*0.98,'圆弧底');
DRAWTEXT(FILTER(GUP4>REF(GUP4,2) AND REF(GUP1,3)<REF(GUP3,3) AND C>O AND(GUP10-GUP9)/GUP9<0.005,5),GUP8-0.05,'三线粘');
选股公式源码
{选股公式一:三线粘}
GUP:=(C*2+H+L+O)/5;GUP0:=MA(C,5);
GUP1:=(EMA(GUP,4)+MA(GUP,8)+MA(GUP,16))/3,COLORWHITE;
GUP2:=(EMA(GUP,9)+MA(GUP,18)+MA(GUP,36))/3,COLORFF00FF;
GUP3:=(EMA(GUP,13)+MA(GUP,26)+MA(GUP,52))/3,COLOR00FF00;
GUP4:=(EMA(GUP,24)+MA(GUP,48)+MA(GUP,96))/3,COLOR0000FF;
GUP9:=MIN(MIN(GUP1,GUP2),GUP3);
GUP10:=MAX(MAX(GUP1,GUP2),GUP3);
三线粘:FILTER(GUP4>REF(GUP4,2) AND REF(GUP1,3)<REF(GUP3,3) AND C>O AND(GUP10-GUP9)/GUP9<0.005,5);
{选股公式二:圆弧底}
GUP:=(C*2+H+L+O)/5;GUP0:=MA(C,5);
GUP1:=(EMA(GUP,4)+MA(GUP,8)+MA(GUP,16))/3,COLORWHITE;
GUP2:=(EMA(GUP,9)+MA(GUP,18)+MA(GUP,36))/3,COLORFF00FF;
GUP3:=(EMA(GUP,13)+MA(GUP,26)+MA(GUP,52))/3,COLOR00FF00;
GUP4:=(EMA(GUP,24)+MA(GUP,48)+MA(GUP,96))/3,COLOR0000FF;
GUP10:=MAX(MAX(GUP1,GUP2),GUP3);
圆弧底ONGCROSS(GUP1,GUP3,30) AND (GUP4-GUP3)/GUP3<0.05 AND GUP10<GUP4;
{选股公式三:穿四线}
GUP:=(C*2+H+L+O)/5;GUP0:=MA(C,5);
GUP1:=(EMA(GUP,4)+MA(GUP,8)+MA(GUP,16))/3,COLORWHITE;
GUP2:=(EMA(GUP,9)+MA(GUP,18)+MA(GUP,36))/3,COLORFF00FF;
GUP3:=(EMA(GUP,13)+MA(GUP,26)+MA(GUP,52))/3,COLOR00FF00;
GUP4:=(EMA(GUP,24)+MA(GUP,48)+MA(GUP,96))/3,COLOR0000FF;
GUP7:=MAX(MAX(GUP1,GUP2),MAX(GUP3,GUP4));
GUP8:=MIN(MIN(GUP1,GUP2),MIN(GUP3,GUP4));
穿四线:FILTER(H>GUP7 AND L<GUP8 AND GUP1>REF(GUP1,1) AND GUP2>REF(GUP2,1) AND GUP4>REF(GUP4,2) AND (GUP7-GUP8)/GUP8<0.04 AND C>O AND (H-C)/(C-O)<0.4,3); |