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


高点时间:=VARCAT(VARCAT ('transaction ' , VAR2STR(BARSLAST(GD)+1 , 0),' day ');
低点时间:=VARCAT(VARCAT ('transaction ',VAR2STR(BARSLAST(DD)+1,0)),' days ');
周:= varcat (varcat(',if (weekday = 1,'一',IF(WEEKDAY=2,'二' , IF(WEEKDAY=3,'三',IF(WEEKDAY=4 , '四',IF(WEEKDAY=5,)
date:= varcat(varcat(varcat(varcat(varcat(var 2 str(year,0),' year ')、VAR2STR(MONTH,0))、VAR2STR(DAY,0))、' DAY ')、week);
价格:=VARCAT(VAR2STR(极,2),'元');
Date: =VARCAT(日期,价格);
高点显示:=VARCAT(VARCAT(低点时间,低涨幅),低点换手);
低点显示:=VARCAT(VARCAT(高点时间,高落差),高点换手);
ST:=NAMELIKE('ST')=1或NAMELIKE('ST')=1或NAMELIKE('SST')=1或NAMELIKE('S*ST')=1或NAMELIKE(' S ST ')= 1;
明涨停:if (ST = 1,ZT价格(C,0.05) , ZT价格(C , 0.1)),有色 , 无平局;
明限:if (ST = 1,dt价(c,0.05),dt价(c , 0.1)),色绿,无平局;
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且statistics =1,H , 高点显示),DRAWABOVE,COLORRED
DRAWTEXT(DD=1且statistics =1,L , 低点显示),DRAWABOVE,COLORGREEN
DRAWTEXT(GD=1且statistics =1,H*0.93 , 日期价格),DRAWABOVE
DRAWTEXT(DD=1且statistics =1,L,日期价格);

推荐阅读