副图公式源码支持: 手机/电脑
GUA2:=(CLOSE+HIGH+LOW)/(3);
GUA3:=(EMA(GUA2,10));
GUA4:=(REF(GUA3,1));
GUP1:=HHV(HIGH,25);
GUP2:=LLV(LOW,25);
GUP3:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,20);
GUP4:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,5);
GUP5:=CROSS(GUP4,GUP3);
STICKLINE((GUA3>GUA4),GUA3,GUA4,3,0),COLORYELLOW;
STICKLINE((GUA3<GUA4),GUA3,GUA4,3,0),COLORGREEN;
DRAWTEXT(CROSS(GUP3,GUP4) AND BARSLAST(GUP5)>3,HIGH+1,'短逃'),COLORGREEN;
DRAWTEXT(CROSS(GUP3,GUP4) AND BARSLAST(GUP5)<=3,HIGH+1,'止损'),COLORWHITE;
DRAWTEXT(CROSS(GUP4,GUP3),LOW-1,'短攻'),COLORYELLOW;
DRAWICON(CROSS(GUP3,GUP4),HIGH+0.5,2);
DRAWICON(CROSS(GUP4,GUP3),LOW-0.5,1);
STICKLINE(C<O,O,C,3,0),COLORFF6600;
STICKLINE(C<O,O,C,2,0),COLORFF9900;
STICKLINE(C<O,O,C,1.2,0),COLORFFCC00;
STICKLINE(C<O,O,C,0.2,0),COLORCYAN;
STICKLINE(C>O,O,C,3,0),COLOR000099;
STICKLINE(C>O,O,C,2,0),COLORLIBLUE;
STICKLINE(C>O,O,C,1.3,0),COLORLIRED;
STICKLINE(C>O,O,C,0.3,0),COLORCC66FF;
选股公式源码
{选股公式:短攻}
GUA2:=(CLOSE+HIGH+LOW)/(3);
GUA3:=(EMA(GUA2,10));
GUA4:=(REF(GUA3,1));
GUP1:=HHV(HIGH,25);
GUP2:=LLV(LOW,25);
GUP3:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,20);
GUP4:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,5);
GUP5:=CROSS(GUP4,GUP3);
{STICKLINE((GUA3>GUA4),GUA3,GUA4,3,0),COLORYELLOW;
STICKLINE((GUA3<GUA4),GUA3,GUA4,3,0),COLORGREEN;
STICKLINE(C<O,O,C,3,0),COLORFF6600;
STICKLINE(C<O,O,C,2,0),COLORFF9900;
STICKLINE(C<O,O,C,1.2,0),COLORFFCC00;}
短攻:CROSS(GUP4,GUP3);
{卖出公式一:短逃}
GUP1:=HHV(HIGH,25);
GUP2:=LLV(LOW,25);
GUP3:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,20);
GUP4:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,5);
GUP5:=CROSS(GUP4,GUP3);
短逃:CROSS(GUP3,GUP4) AND BARSLAST(GUP5)>3;
{卖出公式二:止损}
GUP1:=HHV(HIGH,25);
GUP2:=LLV(LOW,25);
GUP3:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,20);
GUP4:=EMA((CLOSE-GUP2)/(GUP1-GUP2)*100,5);
GUP5:=CROSS(GUP4,GUP3);
止损:CROSS(GUP3,GUP4) AND BARSLAST(GUP5)<=3; |