通达信主图公式 通达信公式( 四 )


日期:=VARCAT(VARCAT(VARCAT(VARCAT(VARCAT(VARCAT(VAR2STR(YEAR,0),\\\'年\\\'),VAR2STR(MONTH,0)),\\\'月\\\'),VAR2STR(DAY,0)),\\\'日\\\'),星期);
价格:=VARCAT(VAR2STR(极点,2),\\\'元\\\');
日期价格:=VARCAT(日期,价格);
高点显示:=VARCAT(VARCAT(低点时间,低涨幅),低点换手);
低点显示:=VARCAT(VARCAT(高点时间,高跌幅),高点换手);
ST:=NAMELIKE(\\\'ST\\\')=1 OR NAMELIKE(\\\'*ST\\\')=1 OR NAMELIKE(\\\'SST\\\')=1 OR NAMELIKE(\\\'S*ST\\\')=1 OR NAMELIKE(\\\'S ST\\\')=1;
明涨停:IF(ST=1,ZTPRICE(C,0.05),ZTPRICE(C,0.1)),COLORRED,NODRAW;
明跌停:IF(ST=1,DTPRICE(C,0.05),DTPRICE(C,0.1)),COLORGREEN,NODRAW;
DRAWBAND(C1,RGB(0,0,0),C1,RGB(0,0,0)),COLORGREEN,DOTLINE;
DRAWBAND(C2,RGB(0,0,0),C2,RGB(0,0,0)),COLORRED,DOTLINE;
DRAWTEXT(GD=1 AND 统计=1 ,H,高点显示),DRAWABOVE,COLORRED;
DRAWTEXT(DD=1 AND 统计=1 ,L,低点显示),DRAWABOVE,COLORGREEN;
DRAWTEXT(GD=1 AND 统计=1 ,H*0.93,日期价格),DRAWABOVE;
DRAWTEXT(DD=1 AND 统计=1 ,L,日期价格);

推荐阅读