通达信分类持仓副图指标源码

2015-12-25 14:37:00来源:本站整理浏览:291

通达信分类持仓副图指标源码

{分类持仓-副图}
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
多空分界线:50,COLORRED;
 SJTJ:=DATE<1590301;
 HX:=买线>卖线 AND SJTJ ;
 HZ:=买线>卖线 AND (C-O)/O>=0.002 AND SJTJ;
 HD:=买线>卖线 AND (C-O)/O>=0.005 AND SJTJ;
 DRAWICON(HX ,55,13);
 DRAWTEXT(HX,58,"小"),COLORYELLOW;
 DRAWICON(HZ OR HD ,65,13);
 DRAWTEXT(HZ OR HD,68,"中"),COLORYELLOW;
 DRAWICON(HD ,75,13);
 DRAWTEXT(HD,78,"大"),COLORYELLOW;

LX:=卖线>买线 ;
LZ:=卖线>买线 AND (O-C)/O>=0.002;
 LD:=卖线>买线 AND (O-C)/O>=0.005;
 DRAWICON(LX ,45,14);
 DRAWTEXT(LX,48,"小"),COLORYELLOW;
 DRAWICON(LZ OR LD ,35,14);
 DRAWTEXT(LZ OR LD,38,"中"),COLORYELLOW;
 DRAWICON(LD ,25,14);
 DRAWTEXT(LD,28,"大"),COLORYELLOW;

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式