「翔博精选指标」新旧涨跌停幅度自动标识(通达信公式 主图 源码
2021-12-13原创 编 辑:翔博软件
新旧涨跌停幅度自动标识
8月23日,新旧规则下完美涨跌停,
5日,5%,10%,20%
{新旧涨跌停}
涨幅20:=(CODELIKE('688') OR (CODELIKE('300') AND DATE>=1200823));BARPOS:=BARSCOUNT(CLOSE)+1;
ZT:=IF(NAMELIKE('S') OR NAMELIKE('*'),105,IF(涨幅20,IF(BARPOS>5,120,DRAWNULL),110));
昨收:=REF(C,1);
ZTJ:=昨收*ZT;
涨停:=ROUND(H*100)>=ROUND(ZTJ) AND PERIOD=5;
DT:=IF(NAMELIKE('S') OR NAMELIKE('*'),95,IF(涨幅20,IF(BARPOS>5,80,DRAWNULL),90));
DTJ:=昨收*DT;
跌停:=ROUND(L*100)<=ROUND(DTJ) AND PERIOD=5;
DRAWTEXT(涨停 AND 跌停 AND PERIOD=5,L-0.05,'天地板'),COLORCC00CC;{从跌停到涨停}
STICKLINE(涨停 AND C>=O,O,C,3,0 ),COLORWHITE;
STICKLINE(涨停 AND C>=O,O,L,0,0 ),COLORWHITE;
STICKLINE(涨停 AND C>=O,C,H,0,0 ),COLORWHITE;
STICKLINE(跌停 AND C
STICKLINE(跌停 AND C