黄金波动主图
2018-05-13 作者:ADMIN 来源:网络整理
{ 黄金波动主图}
MA5:MA(C,5),COLORWHITE,LINETHICK2;
MA10:MA(C,10),COLORYELLOW;
MA20:MA(C,20),COLORLIBLUE;
MA60:MA(C,60),COLORLIGREEN,LINETHICK1;
MA250:MA(C,250),COLORGRAY;
C3:=REF(C,1);
涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);
CC21:=STICKLINE(涨停,OPEN,CLOSE,1,0),COLORBLUE;
STICKLINE(涨停,O,C,3,0),COLORRED;
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,1,0),COLORBLUE;
A:=C/REF(C,1)<1.095 AND C/REF(C,1)>0.049;
STICKLINE(C/REF(C,1)<1.0989 AND C/REF(C,1)>1.049,C,O,2,0),COLORYELLOW;
{涨停时间窗,主图}
ZTT:=C/REF(C,1)>1.098;
VARZTT:=BARSLAST(C/REF(C,1)>1.098);
DRAWTEXT(VARZTT=2,L*0.99,'2'),COLORYELLOW;
DRAWTEXT(VARZTT=4,L*0.99,'4'),COLORYELLOW;
DRAWTEXT(VARZTT=6,L*0.99,'6'),COLORYELLOW;
DRAWTEXT(VARZTT=7,L*0.99,'7'),COLORYELLOW;
DRAWTEXT(VARZTT=12,L*0.99,'12'),COLORYELLOW;
DPK:=CALCSTOCKINDEX('999999SH','停牌调用',1);
GG:=BARSCOUNT(C)+1;
停牌:=DPK-REF(DPK,1)-(GG-REF(GG,1));
DRAWTEXT(停牌>0,L*0.98,VARCAT('停牌',VAR2STR(停牌,0))),COLORYELLOW;
DRAWTEXT(ISLASTBAR,C*1.09,VAR2STR(C*1.1,2)),COLORYELLOW;{明日涨停价位标注}
现价线:CONST(C),COLORLICYAN,DOTLINE;{现价线}
涨停线:CONST(REF(C,1)*1.099),COLORMAGENTA,DOTLINE;
阅读:259 评论:0
上一篇: 波段天才系统(主图指标)
下一篇: 黑马王子量柱 通达信主图指标