通達信【多空波段】主/副圖/選股指標 源碼 指標簡介:多空波段指標 可以用來篩選潛力股集合波段王、波段鬼、四色信號共振等原理。1、紅色買,綠色賣,紅色區(qū)域共振持股,位置低最好,當幅圖達到80以上小心!2、制作主圖錢袋子信號選股指標。 3、指標無未來函數(shù),以下舉例:1、多空波段主圖指標:多空:EMA(C,20),CROSSDOT,COLORGREEN,LINETHICK5;IF(多空>REF(多空,1),多空,DRAWNULL),CROSSDOT,COLORRED,LINETHICK7;高1:=REF(HHV(H,120),3);低1:=REF(LLV(L,120),3);ABC1:=高1-(高1-低1)*0.2;ABC2:=高1-(高1-低1)*0.4;ABC3:=高1-(高1-低1)*0.5;ABC4:=高1-(高1-低1)*0.6;ABC5:=高1-(高1-低1)*0.9;突破:=REF(EMA(C,14),1);尊重市場:=(EMA(C,10)-突破)/突破*100;基準:=IF(尊重市場>=0,REF(EMA(C,10),BARSLAST(CROSS(尊重市場,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,尊重市場))+1));波段:=CROSS(尊重市場,0),LINETHICK3;STICKLINE(尊重市場>=0,C,O,2.7,0),COLOR0011FF;STICKLINE(尊重市場>=0,C,O,1.8,0),COLOR0044FF;STICKLINE(尊重市場>=0,C,O,0.9,0),COLOR0077FF;STICKLINE(尊重市場>=0,C,O,0.1,0),COLOR0099FF;STICKLINE(尊重市場>=0,H,L,0,0),COLOR0099FF;STICKLINE(波段,C,O,2.7,0),COLOR330033;STICKLINE(波段,C,O,1.8,0),COLOR770077;STICKLINE(波段,C,O,0.9,0),COLORBB00BB;STICKLINE(波段,C,O,0.1,0),COLORFF00FF;STICKLINE(波段,H,L,0,0),COLORFF00FF;DRAWICON(波段,L*1,9);{微信公眾號:尊重市場}DRAWTEXT(波段,L*1,'買入'),COLORYELLOW;BB:=CROSS(0,尊重市場),LINETHICK5;STICKLINE(尊重市場<0,C,O,2.7,0),COLORAAAAAA;STICKLINE(尊重市場<0,C,O,1.8,0),COLORCCCCCC;STICKLINE(尊重市場<0,C,O,0.9,0),COLORDDDDDD;STICKLINE(尊重市場<0,C,O,0.1,0),COLORFFFFFF;STICKLINE(尊重市場<0,H,L,0,0),COLORFFFFFF;STICKLINE(BB,C,O,2.7,0),COLOR333300;STICKLINE(BB,C,O,1.8,0),COLOR555500;STICKLINE(BB,C,O,0.9,0),COLOR777700;STICKLINE(BB,C,O,0.1,0),COLOR999900;STICKLINE(BB,H,L,0,0),COLOR999900; 2、多空波段幅圖指標:{微信公眾號:尊重市場}X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*10;STICKLINE(X2>0,0,-10,3.8,0),COLORRED,LINETHICK3;STICKLINE(X2<0,0,-10,3.8,0),COLORGREEN,LINETHICK3;紅買綠賣:X2,COLORRED,NODRAW;XYZ1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;XYZ2:=SMA(XYZ1,3,1);XYZ3:=SMA(XYZ2,3,1);XYZ4:=SMA(XYZ3,3,1);HYW:= XYZ3;WEI:= XYZ4;逢低吸:CROSS(XYZ3,XYZ4) AND XYZ3<20,COLORYELLOW,NODRAW;STICKLINE(FILTER(逢低吸,10)=1,0,80,1,0),COLORRED;位置:XYZ3,COLORFF99CC,NODRAW;XYZ9:=CROSS(XYZ4,XYZ3) AND XYZ3>80;XYZ8:=CROSS(XYZ2,XYZ3) AND XYZ3>80 AND XYZ3>XYZ4;STICKLINE(XYZ8,85,100,3,0),COLOR0099FF;AA:=LLV(LOW,36);BB:=HHV(HIGH,30);{微信公眾號:尊重市場}風險:=80,COLORGREEN,DOTLINE;小心:=87.5,COLOR00FF00;DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);股神:=DD,COLOR0000FF,LINETHICK2;股海:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);目標出現(xiàn)B:=IF(CROSS(股海,90) AND (股神<40),33,0),COLORFFFF00;STICKLINE(目標出現(xiàn)B,0,50,2,0),COLOR0099FF;DRAWTEXT(CROSS(股海,90) AND (股神<40),55,'準備'),COLORFFFF00;準備:CROSS(股海,90) AND (股神<40),COLORWHITE,NODRAW;跟蹤:=10,COLOR0000FF;目標出現(xiàn)A:=IF((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<REF(REF(股神,1),1)) AND (股神<跟蹤),40,0),COLORF00FF0;STICKLINE(目標出現(xiàn)A,0,30,1,0),COLORF00FF0;DRAWTEXT((COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<REF(REF(股神,1),1)) AND (股神<跟蹤),40,'關注'),COLORF00FF0;關注:(COUNT((股神>REF(股神,1)),1)=1) AND (REF(股神,1)<REF(REF(股神,1),1)) AND (股神<跟蹤),COLORMAGENTA,NODRAW;XYZP1P:=(CLOSE-LLV(LOW,55.144))/(HHV(HIGH,55.144)-LLV(LOW,55))*80;XYZP2P:=SMA(XYZP1P,7,1);XYZP3P:=SMA(XYZP2P,5,1);{微信公眾號:尊重市場}飛漲:=IF(CROSS(XYZP2P,XYZP3P) AND XYZP2P<20,80,0),STICK,COLORMAGENTA,LINETHICK3;STICKLINE(飛漲,0,50,2,0),COLORMAGENTA;DRAWTEXT(CROSS(XYZP2P,XYZP3P) AND XYZP2P<20,88,'將漲'),COLORMAGENTA;將漲:CROSS(XYZP2P,XYZP3P) AND XYZP2P<20,COLORYELLOW,NODRAW;A:=(3*CLOSE+LOW+OPEN+HIGH)/6;D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/211;D2:=EMA(D1,2);D3:=EMA(D2,2);K1:=EMA(D3,2);{微信公眾號:尊重市場}起漲:IF(CROSS(D1,K1),1,0),COLORCYAN,NODRAW;STICKLINE(起漲 AND X2>0,0,60,2,0),COLORRED;DRAWTEXT(CROSS(D1,K1) AND X2>0,68,'啟漲'),COLORYELLOW;啟漲:CROSS(D1,K1) AND X2>0,COLORMAGENTA,NODRAW;XYZ26:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;XYZ27:=REVERSE(XYZ26);XYZ28:=SMA(XYZ26,3,1);波段王:=SMA(XYZ28,3,1);波段鬼:=SMA(波段王,3,1);DRAWICON(CROSS(波段王,波段鬼) AND 波段王<40,36,1);DRAWICON(CROSS(波段鬼,波段王) AND 波段鬼>75,90,2);DRAWTEXT(CROSS(波段王,波段鬼) AND 波段王<40,20,'低吸'), COLORWHITE;低吸:CROSS(波段王,波段鬼) AND 波段王<40,COLORWHITE,NODRAW;