通达信波段持股指标公式
安装后如下图,友情提示(指标只是辅助,不作建议) 所有程序均为免费分享。
A1:=FORCAST(EMA(CLOSE,5),6);
A2:=FORCAST(EMA(CLOSE,8),6);
A3:=FORCAST(EMA(CLOSE,11),6);
A4:=FORCAST(EMA(CLOSE,14),6);
A5:=FORCAST(EMA(CLOSE,17),6);
B:=((((A1 + A2) + A3) + A4) - (4 * A5));
TOWERC:=EMA(B,2){需要编写选股关注微信公众号:程序化指标};
STICKLINE((TOWERC < REF(TOWERC,1)),TOWERC,REF(TOWERC,1),2,0),COLORCYAN;
STICKLINE((TOWERC < REF(TOWERC,1)),TOWERC,REF(TOWERC,1),1.5,0),COLOR990000;
STICKLINE((TOWERC < REF(TOWERC,1)),TOWERC,REF(TOWERC,1),0.8,0),COLORCC0000;
STICKLINE((TOWERC < REF(TOWERC,1)),TOWERC,REF(TOWERC,1),0.3,0),COLORFF4400;
STICKLINE((TOWERC < REF(TOWERC,1)),TOWERC,REF(TOWERC,1),2,0),COLORFF8800;
STICKLINE((TOWERC < REF(TOWERC,1)),TOWERC,REF(TOWERC,1),1.5,0),COLORFFCC00;
STICKLINE((TOWERC < REF(TOWERC,1)),TOWERC,REF(TOWERC,1),0.8,0),COLORCYAN;
STICKLINE((TOWERC >= REF(TOWERC,1)),TOWERC,REF(TOWERC,1),3,0),COLOR000045;
STICKLINE((TOWERC >= REF(TOWERC,1)),TOWERC,REF(TOWERC,1),2.5,0),COLOR000065;
STICKLINE((TOWERC >= REF(TOWERC,1)),TOWERC,REF(TOWERC,1),2,0),COLOR000085;
STICKLINE((TOWERC >= REF(TOWERC,1)),TOWERC,REF(TOWERC,1),1.5,0),COLOR0000A5;
STICKLINE((TOWERC >= REF(TOWERC,1)),TOWERC,REF(TOWERC,1),1,0),COLOR0000C5;
STICKLINE((TOWERC >= REF(TOWERC,1)),TOWERC,REF(TOWERC,1),0.8,0),COLOR0000E5;
STICKLINE((TOWERC >= REF(TOWERC,1)),TOWERC,REF(TOWERC,1),0.5,0),COLOR0000F5;