很多粉絲在問(wèn)我要主圖指標(biāo),我就直接開放源碼吧,適用于通達(dá)信PC版和手機(jī)版。
個(gè)人可免費(fèi)下載使用,但嚴(yán)禁盜版商用。
主要顯示信息如下:
1、左上角顯示所屬行業(yè)、概念、自定義板塊名稱。
2、日線圖漲幅超過(guò)9.92%時(shí),K線突出顯示紫色。
3、顯示均線多頭和空頭排序提示。
4、顯示均線拐點(diǎn)對(duì)應(yīng)的抵扣日。
代碼如下,直接復(fù)制粘貼,做成主圖指標(biāo),畫線類型選主圖疊加。
M10:=480;M9:=240;M8:=120;M7:=60;M6:=0;M5:=30;M4:=20;M3:=0;M2:=10;M1:=5;MA10:MA(CLOSE,M10)COLOR0080FF;MA9:MA(CLOSE,M9)COLORFF8000;MA8:MA(CLOSE,M8)COLORC0C0C0;MA7:MA(CLOSE,M7)COLOR00FF00;MA6:MA(CLOSE,M6)COLOR3091AD;MA5:MA(CLOSE,M5)COLORFFFF00;MA4:MA(CLOSE,M4)COLORFF00FF;MA3:MA(CLOSE,M3)COLORLIGREEN;MA2:MA(CLOSE,M2)COLOR00FFFF;MA1:MA(CLOSE,M1)COLORFFFFFF;DRAWICON(CURRBARSCOUNT=61,C,11);DRAWICON(CURRBARSCOUNT=121,C,11);DRAWICON(CURRBARSCOUNT=241,C,11);STICKLINE(C>=O AND PERIOD=5 AND C>REF(C,1)*1.0992,L,H,0,0),COLORMAGENTA;STICKLINE(C>=O AND PERIOD=5 AND C>REF(C,1)*1.0992,C,O,2.0,1),COLORMAGENTA;STICKLINE(C<O AND PERIOD=5 AND C>REF(C,1)*1.0992,L,H,0,0),COLORYELLOW;STICKLINE(C<O AND PERIOD=5 AND C>REF(C,1)*1.0992,C,O,2.0,0),COLORYELLOW;MA05:=MA(CLOSE,5);MA010:=MA(CLOSE,10);MA15:=MA(CLOSE,15);MA20:=MA(CLOSE,20);MA30:=MA(CLOSE,30);MA40:=MA(CLOSE,40);MA60:=MA(CLOSE,60);MA120:=MA(CLOSE,120);MA240:=MA(CLOSE,240);MA480:=MA(CLOSE,480);NOTEXT亂同花:MA05>REF(MA05,1) AND MA010>REF(MA010,1) AND MA15>REF(MA15,1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1) AND MA40>REF(MA40,1) AND MA60>REF(MA60,1) AND MA120>REF(MA120,1) AND MA240>REF(MA240,1) AND MA480>REF(MA480,1),COLORFFFFFF,NODRAW;NOTEXT亂同花D:MA05<REF(MA05,1) AND MA010<REF(MA010,1) AND MA15<REF(MA15,1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1) AND MA40<REF(MA40,1) AND MA60<REF(MA60,1) AND MA120<REF(MA120,1) AND MA240<REF(MA240,1) AND MA480<REF(MA480,1),COLORFFFFFF,NODRAW;NOTEXT亂同花小:MA05>REF(MA05,1) AND MA010>REF(MA010,1) AND MA15>REF(MA15,1) AND MA20>REF(MA20,1) AND MA30>REF(MA30,1) AND MA40>REF(MA40,1) AND MA60>REF(MA60,1) AND MA120>REF(MA120,1),COLORFFFFFF,NODRAW;NOTEXT亂同花小D:MA05<REF(MA05,1) AND MA010<REF(MA010,1) AND MA15<REF(MA15,1) AND MA20<REF(MA20,1) AND MA30<REF(MA30,1) AND MA40<REF(MA40,1) AND MA60<REF(MA60,1) AND MA120<REF(MA120,1),COLORFFFFFF,NODRAW;NOTEXT同花順:NOTEXT亂同花 AND MA05>MA010 AND MA010>MA15 AND MA15>MA20 AND MA20>MA30 AND MA30>MA40 AND MA40>MA60 AND MA60>MA120 AND MA120>MA240 AND MA240>MA480,COLOR00FFFF,NODRAW;NOTEXT同花順D:NOTEXT亂同花D AND MA05<MA010 AND MA010<MA15 AND MA15<MA20 AND MA20<MA30 AND MA30<MA40 AND MA40<MA60 AND MA60<MA120 AND MA120<MA240 AND MA240<MA480,COLOR00FFFF,NODRAW;DRAWTEXT(NOTEXT亂同花小 AND NOT(NOTEXT亂同花) AND NOT(NOTEXT同花順),MA240,'^'),COLORRED;DRAWTEXT(NOTEXT亂同花小D AND NOT(NOTEXT亂同花D) AND NOT(NOTEXT同花順D),MA240,'^'),COLORCYAN;DRAWTEXT(NOTEXT亂同花 AND NOT(NOTEXT同花順),MA240,'*'),COLORRED;DRAWTEXT(NOTEXT亂同花D AND NOT(NOTEXT同花順D),MA240,'*'),COLORCYAN;DRAWTEXT(NOTEXT同花順,MA240,'#'),COLORRED;DRAWTEXT(NOTEXT同花順D,MA240,'#'),COLORCYAN;{信息模塊}DRAWTEXT_FIX(ISLASTBAR=1,0,0,0,HYBLOCK)COLORLIGRAY;DRAWTEXT_FIX(ISLASTBAR=1,0.0,0.05,0,GNBLOCK)COLORLIGRAY;DRAWTEXT_FIX(ISLASTBAR=1,0.0,0.1,0,ZDBLOCK)COLORLIGRAY;
聯(lián)系客服