通达信——精选指标《四线共振副图》源码
<p data-first-child></p><p class="ztext-empty-paragraph"><br/></p><p >指标源码:</p><blockquote > MID9:=(3*CLOSE+LOW+OPEN+HIGH)/6;<br/> 牛线1:=(20*MID9+19*REF(MID9,1)+18*REF(MID9,2)+17*REF(MID9,3)+16*REF(MID9,4)+15*REF(MID9,5)+14*REF(MID9,6)+13*REF(MID9,7)+12*REF(MID9,8)+11*REF(MID9,9)+10*REF(MID9,10)+9*REF(MID9,11)+8*REF(MID9,12)+7*REF(MID9,13)+6*REF(MID9,14)+5*REF(MID9,15)+4*REF(MID9,16)+3*REF(MID9,17)+2*REF(MID9,18)+REF(MID9,20))/210,COLORGREEN{COLORRED};<br/> 马线1:=MA(牛线1,6),COLORMAGENTA;<br/> STICKLINE(C>牛线1,-1.9,-0.4,4,0),COLOR000099,LINETHICK2;<br/> STICKLINE(C<马线1,-1.9,-0.4,4,0),COLOR017700,LINETHICK2;<br/> STICKLINE(牛线1>=C AND C>=马线1,-1.9,-0.4,8,0),,COLOR017700,LINETHICK2;<br/> DRAWTEXT(ISLASTBAR=1,IF(V>=0,-1,-0.4),'机构'),COLORWHITE;<br/> MID1:=(3*CLOSE+LOW+OPEN+HIGH)/6;<br/> 牛线:=(20*MID1+19*REF(MID1,1)+18*REF(MID1,2)+17*REF(MID1,3)+16*REF(MID1,4)+15*REF(MID1,5)+14*REF(MID1,6)+13*REF(MID1,7)+12*REF(MID1,8)+11*REF(MID1,9)+10*REF(MID1,10)+9*REF(MID1,11)+8*REF(MID1,12)+7*REF(MID1,13)+6*REF(MID1,14)+5*REF(MID1,15)+4*REF(MID1,16)+3*REF(MID1,17)+2*REF(MID1,18)+REF(MID1,20))/210,COLORGREEN{COLORRED};<br/> 马线:=MA(牛线,3),COLORMAGENTA;<br/> GB:=(C-牛线);<br/> 换手:=V*100/CAPITAL;<br/> 主:=MA(换手,5);<br/> 大:=MA(换手,12);<br/> 中:=MA(换手,34);<br/> 散:=MA(换手,55);<br/> 均:=(主+大+中+散)/4;<br/> GBB:=(主-散);<br/> GB1:=GB+GBB;<br/> STICKLINE(GB1>=0,2.5,4,4,0),COLOR000099,LINETHICK2;<br/> STICKLINE(GB1<0,2.5,4,4,0),COLOR017700,LINETHICK2;<br/> DRAWTEXT(ISLASTBAR=1,IF(V>=0,3.2,0),'散户'),COLORWHITE;<br/> AA:=MAX(MA(C,60),MA(C,120));<br/> BB:=MIN(MA(C,60),MA(C,120));<br/> 成交量:=V,COLORWHITE,LINETHICK0;<br/> Q:=EMA(V,5);<br/> Q1:=EMA(V,50);<br/> OBV:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0);<br/> OBV1:=EMA(OBV,5);<br/> OBV2:=EMA(OBV,50);<br/> W:=(Q-Q1)*0.00001;<br/> W1:=(OBV1-OBV2)*0.000001;<br/> W2:=W+W1;<br/> STICKLINE(W2>=0,0.3,1.8,4,0),COLOR000099,LINETHICK2;<br/> STICKLINE(W2<0,0.3,1.8,4,0),COLOR017700,LINETHICK2;<br/> DRAWTEXT(ISLASTBAR=1,IF(V>=0,1,0),'游资'),COLORWHITE;<br/> J:=MAX(MA(C,30),MA(C,60));<br/> K:=MIN(MA(C,30),MA(C,60));<br/> MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;<br/> DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+<br/> 16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+<br/> 13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+<br/> 10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+<br/> 7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+<br/> 4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;<br/> MADKX:=MA(DKX,6);<br/> MDD:=(DKX-MADKX)*1.2;<br/> V1:=(C*2+H+L)/4*10;<br/> V2:=EMA(V1,6)-EMA(V1,55); <br/> V3:=EMA(V2,6); <br/> V4:=2*(V2-V3)*5.5; <br/> V5:=(V2-V3)*0.06;<br/> V6:=MDD+V5;<br/> STICKLINE(V6>=0,-4.1,-2.6,4,0),COLOR000099,LINETHICK2;<br/> STICKLINE(V6<0,-4.1,-2.6,4,0),COLOR017700,LINETHICK2;<br/> DRAWTEXT(ISLASTBAR=1,IF(V>=0,-3.4,0),'主力'),COLORWHITE;<br/> BHG1:(GB1),COLORWHITE,NODRAW;<br/> BHG2:(W2),COLORYELLOW,NODRAW;<br/> BHG3:(C-牛线1),COLORYELLOW,NODRAW;<br/> BHG4:(V6),COLORGREEN,NODRAW;</blockquote><h2>欢迎大家自行尝试! 关于指标大家可以私信找我免费领取!</h2>
页:
[1]