无聊看见HYBLOCK函数随便玩玩!(源码、副图、贴图)介绍
无聊看见HYBLOCK函数随便玩玩!(源码、副图、贴图)
DRAWTEXT(ISLASTBAR,C,HYBLOCK);
一般这个函数都这么用吧,可以在指标的图上显示所看股票对应的行业名称!
于是非常无聊,又没事做,这样写如果所看的股票属于887002钢铁行业那么就会显示对应的版块K线
A:HYBLOCK,NODRAW;
BKC:IF(A=67,"887002$CLOSE",0),NODRAW;
BKL:IF(A=67,"887002$LOW",0),NODRAW;
BKH:IF(A=67,"887002$HIGH",0),NODRAW;
BKO:IF(A=67,"887002$OPEN",0),NODRAW;
DRAWKLINE(BKH,BKO,BKL,BKC);
gd14652