红蓝波段副图指标 简简单单操作 通达信 源码 测试图
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;