刘冠华 发表于 2023-10-24 21:25:04

通达信软件主图指标(买卖通道)源码和贴图!

<p data-first-child >今天给大家带来的指标是通达信主图指标(买卖通道)以下是指标的源码和贴图。大家复制源码就能导入的通达信的软件里了,电脑手机都能用。</p><p >M:=17;</p><p >P:=2;</p><p >N:=5;</p><p >大盘指数:INDEXC,NODRAW,COLORLIMAGENTA ;</p><p >C3:=REF(C,1);</p><p >涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);</p><p >STICKLINE(涨停,OPEN,CLOSE,2.5,0),COLORYELLOW;</p><p >跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);</p><p >STICKLINE(跌停,OPEN,CLOSE,2.5,0),COLORBLUE;</p><p >EMA5:EMA(C,5),NODRAW;</p><p >操盘:=EMA(C,17);</p><p >KDJ_K:="KDJ.K"(9,3,3);KDJ_D:="KDJ.D"(9,3,3);KDJ_J:="KDJ.J"(9,3,3);</p><p >买1:=CROSS(KDJ_J,0) OR (CROSS(KDJ_J,KDJ_K) AND KDJ_D<26);</p><p >买2:=CROSS("RSI.RSI1"(6,2,2),20) OR CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));</p><p >买3:=CROSS("MACD.DIF","MACD.DEA") OR CROSS("MACD.MACD",0);</p><p >买0:=买1+买2+买3;</p><p >DRAWICON(买0>1,L*0.98,16);</p><p >X6:=REF(CLOSE,1);</p><p >X7:=((SMA(MAX((CLOSE - X6),0),7,1) / SMA(ABS((CLOSE - X6)),7,1)) * 100);</p><p >X8:=CROSS(79,X7);</p><p >X9:=FILTER(X8,4);</p><p >DRAWTEXT(X9,(HIGH * 1.02),'●出货'),COLOR9000F5;</p><p >上升压力: 操盘 + P*STD(CLOSE,M),COLOR0099FF,LINETHICK2;</p><p >下跌支撑: 操盘 - P*STD(CLOSE,M),COLORMAGENTA,LINETHICK2;</p><p >DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);</p><p >DEA:=EMA(DIF,9);</p><p >MACD1:=(DIF-DEA)*2,COLORSTICK;</p><p >A:=MA(CLOSE,5);</p><p >B:=MA(CLOSE,20);</p><p >TYP:=(HIGH+LOW+CLOSE)/3;</p><p >CCI:=(TYP-MA(TYP,84))/(0.015*AVEDEV(TYP,84));</p><p >BB:=BETWEEN(REF(CLOSE,1),A,B);</p><p >DRAWTEXT(CLOSE>A AND A>B AND B>REF(B,1) AND CROSS(CCI,100) AND MACD1>0 AND REF(MACD1,1)>0,B,'追'),COLORYELLOW;</p><p >CBFB:=MA(C,2);</p><p >JL:=IF(C>CBFB,V,0);</p><p >CL:=IF(C<CBFB,V,0);</p><p >JLH:=SUM(JL,4);</p><p >CLH:=SUM(CL,4);</p><p >LHB:=CLH/JLH;</p><p >TJ1:=IF(HHV(LHB,5)>4 AND CROSS(2,LHB) AND C>=O,1,0);</p><p >DRAWICON(TJ1,L*0.96,9);</p><p >Z:=MA(C,120);</p><p >VAR3:=(MA(C,5)-Z)/Z;</p><p >VAR4:=MA((CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100,3);</p><p >VAR5:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);</p><p >D1:DRAWTEXT(CLOSE>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) ,LOW ,'★B'),COLORRED;</p><p >D2:DRAWTEXT(REF(VAR5,1)<5 AND VAR5>REF(VAR5,1) AND REF(VAR5,1)<REF(VAR5,2) AND VAR3<-0.3,LOW ,'★B'),COLORGREEN;</p><p >D3:DRAWTEXT(CROSS(VAR4,5) AND VAR3<-0.4,LOW ,'★B'),COLORBLUE;</p><p >Y:=MA(C,120);</p><p >VAR6:=(MA(C,5)-Y)/Y;</p><p >VAR7:=MA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,3);</p><p >VAR8:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,120)/MA(VOL,120)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);</p><p >D4:DRAWTEXT(CLOSE<Y AND Y<REF(Y,1) AND REF(VAR7,1)>80 AND VAR7<REF(VAR7,1) AND REF(VAR7,1)>REF(VAR7,2),HIGH,'★S'),COLORYELLOW;</p><p >D5:DRAWTEXT(CROSS(90,VAR7) AND VAR8>0.2,HIGH,'★S'),COLORGREEN;</p><p >D6:DRAWTEXT(CROSS(95,VAR7) AND VAR6>0.5,HIGH ,'★S'),COLORRED;</p><p >MAA5:=MA(C,5),COLORFF00FF,LINETHICK2;</p><p >MAA10:=MA(C,10);</p><p >MAA30:=MA(C,30),COLORRED;</p><p >KS:=IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;</p><p >A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;</p><p >A4:=SMA(A3,3,1);</p><p >A5:=SMA(A4,3,1);</p><p >A6:=3*A4-2*A5;</p><p >A7:=C-REF(C,1);</p><p >A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);</p><p >买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));</p><p >DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORYELLOW;</p><p >STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;</p><p >X1:=(C+L+H)/3;</p><p >BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;</p><p >EMA8:=EMA(C,8);</p><p >DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),</p><p >EMA8,'∠45升'),COLORWHITE;</p><p >A01:=MA(CLOSE, 28);</p><p >A02:=MA(CLOSE, 66);</p><p >A03:=AMOUNT / VOL / 100.000;</p><p >A04:=SUMBARS(VOL,CAPITAL * 1.618);</p><p >A05:=IF((A04 > 100.000), 1.033,IF(((A04 <= 100.000) AND (A04 > 33.000)), 1.039, 1.05));</p><p >运作成本:MA(A03, 10),NODRAW;</p><p >中线成本:EMA(A03, 34) * A05,NODRAW;</p><p >总体成本:DMA(中线成本,VOL / CAPITAL),NODRAW;</p><p >VAR12:=(2*CLOSE+HIGH+LOW)/4;</p><p >VAR13:=IF(YEAR>=2099 AND MONTH>2,0,1);</p><p >VAR14:=LLV(LOW,5); VAR15:=HHV(HIGH,4);</p><p >散户:=EMA((VAR12-VAR14)/(VAR15-VAR14)*100,4)*VAR13;</p><p >庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR13;</p><p >DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.05,'←低吸'),COLORLIRED;</p><p >DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.05,'←高抛'),COLORGREEN;</p><p class="ztext-empty-paragraph"><br/></p><p><br/><br/><br/></p><p class="ztext-empty-paragraph"><br/></p><p ><br/><b>① 指标源码有很多,导入就可以使用,不会的我教你,种类很多,监测主力资金进场的,妖股起涨的,均线粘合的等等,看自己需要!</b></p><p ><b>②由于篇幅限制就到这里了,如果对于指标有兴趣或者疑问的可以与我一起交流学习,创作不易,希望大家对于我的文章能够点赞、关注和转发,你的支持将是我继续进行下去的动力,谢谢!</b></p><p></p>

轻轻的亲亲像亲j 发表于 2024-1-5 02:00:44

如果想获取全部资源,怎么操作?

清月灵灵终 发表于 2024-1-11 15:55:03

好人还是很多的!
页: [1]
查看完整版本: 通达信软件主图指标(买卖通道)源码和贴图!