虚拟涨跌
在最后一根K线上虚拟画出今天涨停和跌停的虚拟线出来,而且只在日线级别出现,其他级别不让他出现,否则影响看裸K。你可以随便加在你的主图里,因为涉及到你自己主图源码的显示,这段源码最好加在你的自制主图源码最前端,这样他就不会影响你的自制主图特殊K线的显示。如果你嫌同时加了涨跌停虚拟K不好看,只想要其中一样
虚拟涨跌代码只是最后一根K线的虚拟方框,下载的内容不包括龙魂主图。
{虚拟涨停K}
KXZT:=IF(CURRBARSCOUNT=1 AND PERIOD=5,REF(CLOSE,1)*1.1,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,KXZT,MAX(OPEN,CLOSE),-1,-1),COLOR00C0C0;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
{虚拟跌停K}
KXDT:=IF(CURRBARSCOUNT=1 AND PERIOD=5,REF(CLOSE,1)*0.9,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,KXDT,MIN(OPEN,CLOSE),-1,-1),COLORLIBLUE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
{虚拟涨停K}
KXZT:=IF(CURRBARSCOUNT=1 AND PERIOD=5 AND NOT(C 1500 OR DYNAINFO(7)=0) AND C =O,REF(CLOSE,1)*1.1,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,KXZT,MAX(OPEN,CLOSE),-1,-1),COLOR00C0C0;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
KXDT:=IF(CURRBARSCOUNT=1 AND PERIOD=5 AND NOT(C 1500) AND C O,REF(CLOSE,1)*0.9,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,KXDT,MIN(OPEN,CLOSE),-1,-1),COLORLIBLUE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);