九毛八公式指标
请老师写一个通达信, 涨停板后加天数的公式,比如今天涨停K线下方就会显示1的数字,明天就会显示2,一直到20天后就不用显示了。
公式模块:
XG:=(C-REF(C,1))/REF(C,1)*100>9.5 AND C=H;
DRAWTEXT(BArslAST(XG)=1,L,'1'),COLOR00BB00; DRAWTEXT(BARSLAST(XG)=2,L,'2'),COLOR00BB00; DRAWTEXT(BARSLAST(XG)=3,L,'3'),COLOR00BB00; DRAWTEXT(BARSLAST(XG)=4,L,'4'),COLOR00BB00; DRAWTEXT(BARSLAST(XG)=5,L,'5'),COLOR00BB00; DRAWTEXT(BARSLAST(XG)=6,L,'6'),COLOR00BB00; DRAWTEXT(BARSLAST(XG)=7,L,'7'),COLOR00BB00; DRAWTEXT(BARSLAST(XG)=8,L,'8'),COLOR00BB00; DRAWTEXT(BARSLAST(XG)=9,L,'9'),COLOR00BB00; DRAWTEXT(BARSLAST(XG)=10,L,'10'),COLOR00BB00;