通达信——精选指标《超级主力建仓副图》指标源码
<p data-first-child></p><p class="ztext-empty-paragraph"><br/></p><p >指标源码:</p><blockquote > V1:=(C*2+H+L)/4*10;<br/> V2:=EMA(V1,13)-EMA(V1,34);<br/> V3:=EMA(V2,5);<br/> V4:=2*(V2-V3)*5.5;<br/> V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;<br/> V6:=EMA(3*V5-2*SMA(V5,18,1),5);<br/> V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;<br/> V8:=(INDEXC*2+INDEXH+INDEXL)/4;<br/> V9:=EMA(V8,13)-EMA(V8,34);<br/> VA:=EMA(V9,3);<br/> VB:=(V9-VA)/2;<br/> V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);<br/> V12:=(EMA(V11,3)-REF(EMA(V11,3),1))/REF(EMA(V11,3),1)*100;<br/> 买入: STICKLINE(EMA(V11,3)<=13 ANDV12>13,0,50,5,0),LINETHICK3,COLORRED;<br/> BB1:= (EMA(V11,3)<=13 AND V12>13) AND FILTER((EMA(V11,3)<=13 ANDV12>13),10);<br/> DRAWTEXT(BB1,60,'主力进'),COLORWHITE;<br/> 卖临界: STICKLINE(EMA(V11,3)>60 ANDEMA(V11,3)>REF(EMA(V11,3),1),100,95,15,1),COLORGREEN;<br/> CC1:=(EMA(V11,3)>=90 AND V12) AND FILTER((EMA(V11,3)>=90 ANDV12),10);<br/> STICKLINE(IF(VB>=0,VB,0) AND EMA(V11,3)<13,0,15,5,0),COLORLIRED;<br/> STICKLINE(IF(VB<=0,VB,0) AND EMA(V11,3)>90,0,7,10,0),COLORGREEN;<br/> STICKLINE( IF(V4>=0,V4,1) AND EMA(V11,3)<13,0,15,5,0),COLORLIRED;<br/> STICKLINE(IF(V4<=0,V4,1) ANDEMA(V11,3)>90,0,7,10,0),COLORLIBLUE,LINETHICK1;<br/> DRAWTEXT(CC1,15,'主力减仓'),COLORLIBLUE;<br/> AA:=(O+H+L+C)/4;<br/> BB:=MA(AA,3);<br/> CC:=SUM(IF(AA>REF(AA,1),AA*VOL,0),4)/SUM(IF(AA<REF(AA,1),AA*VOL,0),4);<br/> DD:=REF(100-(100/(1+CC)),1);<br/> A1:=HHV(AA,10);<br/> A2:=LLV(AA,30);<br/> A3:=A1-A2;<br/> A4:=EMA((AA-A2)/A3,1)*100;<br/> B1:=HHV(AA,16);<br/> B2:=LLV(AA,90);<br/> B3:=B1-B2;<br/> B4:=EMA((AA-B2)/B3,1)*100;<br/> C1:=HHV(AA,30);<br/> C2:=LLV(AA,240);<br/> C3:=C1-C2;<br/> C4:=EMA((AA-C2)/C3,1)*100;<br/> 中线趋势:B4,COLORMAGENTA,LINETHICK2;<br/> STICKLINE(A4>90 AND B4>70,86,94,6,0),COLORYELLOW;<br/> VARE:=REF(LOW,1)*0.9;<br/> VARF:=LOW*0.9;<br/> VAR10:=(VARF*VOL+VARE*(CAPITAL-VOL))/CAPITAL;<br/> VAR11:=EMA(VAR10,30);<br/> VAR12:=CLOSE-REF(CLOSE,1);<br/> VAR13:=MAX(VAR12,0);<br/> VAR14:=ABS(VAR12);<br/> VAR15:=SMA(VAR13,7,1)/SMA(VAR14,7,1)*100;<br/> VAR16:=SMA(VAR13,13,1)/SMA(VAR14,13,1)*100;<br/> VAR17:=BARSCOUNT(CLOSE);<br/> VAR18:=SMA(MAX(VAR12,0),6,1)/SMA(ABS(VAR12),6,1)*100;<br/> VAR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;<br/> VAR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;<br/> VAR1B:=SMA((SMA(VAR1A,4,1)-50)*2,3,1);<br/> VAR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;<br/> VAR1D:=SMA(VAR1C,4,1);<br/> VAR1E:=SMA(VAR1D,3,1);<br/> VAR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;<br/> VAR20:=VAR18<=25 AND VAR19<-95 AND VAR1F>20 AND VAR1B<-30 ANDVAR1E<30 AND VAR11-CLOSE>=-0.25 AND VAR15<22 AND VAR16<28 ANDVAR17>50;<br/> VAR21:=(HIGH+LOW+CLOSE)/3;<br/> VAR22:=(VAR21-MA(VAR21,14))/(0.015*AVEDEV(VAR21,14));<br/> VAR23:=(VAR21-MA(VAR21,70))/(0.015*AVEDEV(VAR21,70));<br/> VAR24:=IF(VAR22>=150 AND VAR22<200 AND VAR23>=150 ANDVAR23<200,10,0);<br/> VAR25:=IF(VAR22<=-150 AND VAR22>-200 AND VAR23<=-150 ANDVAR23>-200,-10,VAR24);<br/> STICKLINE(VAR20,0,70,5,0),LINETHICK2,COLORMAGENTA;<br/> DRAWTEXT(CROSS(VAR20,0.5) AND COUNT(VAR20=1,10)=1,80,'超级主力建仓!') ,COLORMAGENTA</blockquote><h2>欢迎大家自行尝试! 关于指标大家可以私信找我免费领取</h2> 这里资源很丰富啊 点赞楼主! 很好的内容,感谢分享! 有道理。。。
页:
[1]