联系方式 Contact

云指标公式网

淘宝:iyungs.taobao.com

电话:18020657357

微信:396950280

Q Q:332879389

点击这里给我发消息

网址:www.yzhibiao.com

搜索 Search

长短多空判断

2016-9-30 10:33:34点击:

对长短多头共振的个股,坚决持仓做多
 

 TJ:=IF("000引用.FWYXQ">0,1,0);

{短线}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX1:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
    13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
    7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,LINETHICK2,NODRAW;
MAA1:=MA(DKX1,6);
短线持仓:IF(DKX1>=MAA1 AND TJ>0,1,DRAWNULL),COLORYELLOW,NODRAW;
STICKLINE(DKX1>=MAA1,7,8,1,0),COLORRED;
STICKLINE(DKX1<MAA1,7,8,1,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,7.5,'   短线'),COLORYELLOW;
{中短};
DKX2:=MA(DKX1,34),LINETHICK2,NODRAW;
MAA2:=REF(DKX2,1);
中短持仓:IF(DKX2>=MAA2,1,DRAWNULL),COLORCYAN,NODRAW;
STICKLINE(DKX2>=MAA2,5,6,1,0),COLORRED;
STICKLINE(DKX2<MAA2,5,6,1,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,5.5,'   中短'),COLORCYAN;
 
{中长};
DKX3:=MA(DKX1,89),LINETHICK2,NODRAW;
MAA3:=REF(DKX3,1);
中长持仓:IF(DKX3>=MAA3,1,DRAWNULL),COLORMAGENTA,NODRAW;
STICKLINE(DKX3>=MAA3,3,4,1,0),COLORRED;
STICKLINE(DKX3<MAA3,3,4,1,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,3.5,'   中长'),COLORMAGENTA;
 
{长线};
DKX4:=MA(DKX1,233),LINETHICK2,NODRAW;
MAA4:=REF(DKX4,1);
长线持仓:IF(DKX4>=MAA4,1,DRAWNULL),COLORMAGENTA,NODRAW;
STICKLINE(DKX4>=MAA4,1,2,1,0),COLORRED;
STICKLINE(DKX4<MAA4,1,2,1,0),COLORGREEN;
DRAWTEXT(ISLASTBAR,1.5,'   长线'),COLORMAGENTA;
 
强势做多:短线持仓>0 AND 中短持仓>0 AND 中长持仓>0 AND 长线持仓>0 AND TJ>0,COLORYELLOW,NODRAW;
STICKLINE(强势做多>0,0,9,0,0),COLORYELLOW;
0,COLORBLACK;9,COLORBLACK;