炒股必備技巧:如何給你的K線漲停加顏色申升超短 發(fā)布于2021-06-15 09:49 來(lái)自雪球 如何給你的K線漲停加顏色 股性是股票很重要的一點(diǎn)特質(zhì) 顏色說(shuō)明 黃色 具體操作方法打開通達(dá)信軟件 1. 鍵盤快捷鍵ctrl+f 打開公式編輯器如下圖 2. 如下圖所示 3. 寫完如下 4. 最后保存,通達(dá)信輸入KXJL 最后讓我們來(lái)看看效果非常清楚代碼如下 {通達(dá)信K線高亮指標(biāo) 指標(biāo)配色優(yōu)美 漲幅大于10%也高亮 黃色 橙色 深橙色 綠色 淺紫色 深紫色 白色虛線 豎線分割 {均線 ZDJS:=IF(CODELIKE('880005'), 1, 0); M5:IF(ZDJS=0,MA(C,5),DRAWNULL); M10:IF(ZDJS=0,MA(C,10),DRAWNULL); M20:IF(ZDJS=0,MA(C,20),DRAWNULL); M60:IF(ZDJS=0,MA(C,60),DRAWNULL); M250:IF(ZDJS=0,MA(C,250),DRAWNULL); {下一行是板塊調(diào)用 DRAWTEXT_FIX(1,0.003,0.02,0, STRCAT(ZDBLOCK,STRCAT(' + ', STRCAT(GNBLOCK,STRCAT('+ ',STRCAT(DYBLOCK,STRCAT('+ ',HYBLOCK))))))),COLORWHITE; {漲跌家數(shù)880005 指標(biāo) N1:DRAWSL(ZDJS=1,3200,0,1000,1), COLORWHITE; N2:DRAWSL(ZDJS=1,720,0,1000,1), COLORWHITE; {現(xiàn)價(jià)線} N:CONST(C), COLORWHITE, POINTDOT; {填充線寬度} W1:=3; W0:=0; {判斷漲跌幅限制 CYB:=IF(INBLOCK('創(chuàng)業(yè)板'), 1, 0); ZDF:=IF(INBLOCK('科創(chuàng)板'),0.2,IF(INBLOCK('ST板塊'), 0.05, 0.1)); ZT:=ZTPRICE(REF(CLOSE,1), ZDF); DT:=DTPRICE(REF(CLOSE,1), ZDF); ZT1:=ZTPRICE(REF(CLOSE,1), 0.1); ZT2:=ZTPRICE(REF(CLOSE,1), 0.2); DT1:=DTPRICE(REF(CLOSE,1), 0.1); DT2:=DTPRICE(REF(CLOSE,1), 0.2); {非創(chuàng)業(yè)板漲跌停} NOCYB:=CYB=0 AND ZDJS=0; STICKLINE((NOCYB AND C>=ZT AND C=H), O, C, W1, 0),COLORYELLOW; STICKLINE((NOCYB AND C<=DT AND C=L), O, C, W1, 0),COLORGREEN; STICKLINE((NOCYB AND L<=DT AND C<ZT AND C>L), L, C, 0, 0),COLORGREEN;{曾跌停陽(yáng)線} {炸板} STICKLINE((NOCYB AND C<ZT AND H=ZT AND C>DT AND C<O), O, C, W1, 0), COLORFF4D88; STICKLINE((NOCYB AND C<ZT AND H=ZT AND C>O), O, C, W1, 0), COLORFF4DFF; {創(chuàng)業(yè)板改革日分割線} GGR:=1200824;{改革日} STICKLINE(DATE=GGR AND (CYB=1 OR CODELIKE('8808')), CONST(LLV(L,120)), CONST(HHV(H,120)), W0, 0),COLOR5C979C; {創(chuàng)業(yè)板漲停跌停} STICKLINE((CYB=1 AND DATE>=GGR AND C>=ZT2 AND C=H), O, C, W1, 0), COLORYELLOW; STICKLINE((CYB=1 AND DATE<GGR AND C>=ZT AND C=H), O, C, W1, 0), COLORYELLOW; STICKLINE((CYB=1 AND DATE<GGR AND C<=DT AND C=L), O, C, W1, 0), COLORGREEN; {炸板} STICKLINE((CYB=1 AND DATE<GGR AND C<ZT AND H=ZT AND C>DT AND C<O), O, C, W1, 0), COLORFF4DFF; STICKLINE((CYB=1 AND DATE<GGR AND C<ZT AND H=ZT AND C>O), O, C, W1, 0), COLORFF4DFF; STICKLINE((CYB=1 AND DATE>=GGR AND C<ZT AND H=ZT2 AND C>DT AND C<O), O, C, W1, 0), COLORFF4DFF; {所有板塊 STICKLINE((C>ZT1 AND C<ZT2 AND C>O AND ZDJS=0), O, C, W1, 0), COLOR00AAFF; STICKLINE((C<H AND C>ZT2 AND C>O AND ZDJS=0), O, C, W1, 0), COLOR0066CC; STICKLINE((C<=DT1 AND C<O AND ZDJS=0), O, C, W1, 0), COLORGREEN; |
|
來(lái)自: 戀風(fēng)吹吧 > 《股票公式》