副图公式 源码支持手机/电脑
GUA1:=HHV(HIGH,25);
GUA2:=LLV(LOW,25);
GUA3:=EMA((CLOSE-GUA2)/(GUA1-GUA2)*100,20);
GUA4:=EMA((CLOSE-GUA2)/(GUA1-GUA2)*100,5);
GUA5:=CROSS(GUA4,GUA3);
DRAWTEXT(CROSS(GUA3,GUA4) AND BARSLAST(GUA5)>3,HIGH+1,'↖卖'),COLORGREEN;
DRAWTEXT(CROSS(GUA3,GUA4) AND BARSLAST(GUA5)<=3,HIGH+1,'↖止损'),COLORBLUE;
DRAWTEXT(CROSS(GUA4,GUA3),LOW-1,'↖买'),COLORYELLOW;
DRAWICON(CROSS(GUA3,GUA4),HIGH+0.5,2);
DRAWICON(CROSS(GUA4,GUA3),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),COLOR0000CC;
STICKLINE(C>O,O,C,1.3,0),COLOR0000FF;
STICKLINE(C>O,O,C,0.3,0),COLORCC66FF;
选股公式源码
{选股公式:买}
GUA1:=HHV(HIGH,25);
GUA2:=LLV(LOW,25);
GUA3:=EMA((CLOSE-GUA2)/(GUA1-GUA2)*100,20);
GUA4:=EMA((CLOSE-GUA2)/(GUA1-GUA2)*100,5);
GUA5:=CROSS(GUA4,GUA3);
{DRAWTEXT(CROSS(GUA4,GUA3),LOW-1,'↖买'),COLORYELLOW;
DRAWICON(CROSS(GUA4,GUA3),LOW-0.5,1);
STICKLINE(C<O,O,C,3,0),COLORFF6600;
STICKLINE(C<O,O,C,2,0),COLORFF9900;}
买:CROSS(GUA4,GUA3);
{卖出公式一:卖}
GUA1:=HHV(HIGH,25);
GUA2:=LLV(LOW,25);
GUA3:=EMA((CLOSE-GUA2)/(GUA1-GUA2)*100,20);
GUA4:=EMA((CLOSE-GUA2)/(GUA1-GUA2)*100,5);
GUA5:=CROSS(GUA4,GUA3);
卖:CROSS(GUA3,GUA4) AND BARSLAST(GUA5)>3;
{卖出公式二:止损}
GUA1:=HHV(HIGH,25);
GUA2:=LLV(LOW,25);
GUA3:=EMA((CLOSE-GUA2)/(GUA1-GUA2)*100,20);
GUA4:=EMA((CLOSE-GUA2)/(GUA1-GUA2)*100,5);
GUA5:=CROSS(GUA4,GUA3);
止损:CROSS(GUA3,GUA4) AND BARSLAST(GUA5)<=3;
|