捉妖天师 发表于 2023-10-23 14:45:03

通达信精选指标底部抄底系列:疯牛探底、精准抄底(源码分享)

<p data-first-child ><b>大家好,今天跟大家分享抄底系列副图指标</b></p><p ><b>整理了几个有关抄底的指标,话不多说,源码分享在下面,大家自行测试</b></p><p >疯牛探底</p><p >VAR2:=(HIGH+LOW+(CLOSE)*(2))/(4);</p><p >BH:=((EMA((VAR2-LLV(VAR2,15))/(HHV(LOW,15)-LLV(VAR2,15)),2))*(38)),COLOR0000FF,LINESTICK;</p><p >BL:=((((-1))*(EMA((VAR2-LLV(VAR2,15))/(HHV(LOW,15)-LLV(VAR2,15)),2))+0.01)*(38)),COLOR339999,LINESTICK;</p><p >VAR22:=((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10)))*(100);</p><p >VAR33:=EMA(VAR22,10);</p><p >VAR44:=EMA(VAR33,10);</p><p >VAR55:=(3)*(VAR33)-(2)*(VAR44);</p><p >VAR66:=EMA(VAR55,5);</p><p >桥:(EMA(VAR66,1)),COLOR007700,LINETHICK1;</p><p >跨:(REVERSE(桥)),COLORFFFFFF,LINETHICK1;</p><p >{(0),COLORFFFF00,LINETHICK3;}</p><p >趋势:=(5)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27))</p><p >/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1),2,1);</p><p >底部:=5;</p><p >{底:DRAWTEXT((CROSS(趋势,底部)),0,'◥◤'),COLOR00FFFF;}</p><p >DRAWTEXT(CROSS((趋势),底部),15,'◢◣'),COLOR00FFFF;</p><p >{DRAWTEXT(CROSS(趋势,底部),0,'★'),COLORRED;</p><p >DRAWTEXT(CROSS(趋势,底部),20,'●'),COLORGREEN;}</p><p >VARA1:=((CLOSE>=REF(CLOSE,1)) AND (REF(CLOSE,1)>=REF(CLOSE,2)) AND (REF(CLOSE,1)<=REF(CLOSE,3))</p><p >AND (REF(CLOSE,2)<=REF(CLOSE,3)) AND ((REF(CLOSE,4)>REF(CLOSE,2)) OR (REF(CLOSE,4)<=REF(CLOSE,2))</p><p >AND (REF(CLOSE,5)>=REF(CLOSE,3))) OR (CLOSE>=REF(CLOSE,1)) AND (REF(CLOSE,1)<=REF(CLOSE,2))</p><p >AND (CLOSE>=REF(CLOSE,2)) AND ((REF(CLOSE,3)>REF(CLOSE,1)) OR (REF(CLOSE,3)<=REF(CLOSE,1)) AND (REF(CLOSE,4)>=REF(CLOSE,2))));</p><p >VARA2:=LLV(LOW,5);</p><p >VARA3:=HHV(HIGH,5);</p><p >VARA4:=EMA(((CLOSE-VARA2)/(VARA3-VARA2))*(100),1);</p><p >VARA5:=EMA((0.66699999)*(REF(VARA4,1))+(0.333)*(VARA4),2);</p><p >VARA6:=(VARA5<24) AND (OPEN<MA(CLOSE,20));</p><p >VARA1 AND (VARA6),COLORFF0000;</p><p >STICKLINE(VARA1 AND (VARA6),-40,40,10,1),COLOR2894FF;</p><p >VARB2:=((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10)))*(100);</p><p >VARB3:=EMA(VARB2,7);</p><p >VARB4:=EMA(VARB3,10);</p><p >VARB5:=(3)*(VARB3)-(2)*(VARB4);</p><p >VARB6:=EMA(VARB5,5);</p><p >趋势1:=(3)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1))-(2)</p><p >*(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1));</p><p >探底:IF((趋势<=5),58,0),COLORFF00FF;</p><p >桥1:=EMA(VARB6,1);</p><p >美化:=IF(REF((COUNT((桥1<=REF(桥1,1)),5)=5),1) AND (桥1>REF(桥1,1)),10,0);</p><p >STICKLINE((美化),-20,20,15,1),COLORFFFF00;</p><p >MTM1:MA((CLOSE-REF(CLOSE,13))*31,5),LINETHICK1,COLOR7711EE;</p><p >VARF1:=MA(HHV(HIGH,485),17);</p><p >VARF2:=MA(HHV(HIGH,222),17);</p><p >VARF3:=MA(HHV(HIGH,96),17);</p><p >VARF4:=MA(LLV(LOW,485),17);</p><p >VARF5:=MA(LLV(LOW,222),17);</p><p >VARF6:=MA(LLV(LOW,96),17);</p><p >VARF7:=MA((VARF4*0.96+VARF5*0.96+VARF6*0.96+VARF1*0.558+VARF2*0.558+VARF3*0.558)/6,17);</p><p >VARF8:=MA((VARF4*1.25+VARF5*1.23+VARF6*1.2+VARF1*0.55+VARF2*0.55+VARF3*0.65)/6,17);</p><p >VARF9:=MA((VARF4*1.3+VARF5*1.3+VARF6*1.3+VARF1*0.68+VARF2*0.68+VARF3*0.68)/6,17);</p><p >VARFA:=MA((VARF7*3+VARF8*2+VARF9)/6*1.738,17);</p><p >VARFB:=IF(C=C,VARFA,VARFA*DAY);</p><p >VARFC:=LOW;</p><p >VARFD:=REF(LOW,1);</p><p >VARFE:=SMA(ABS(VARFC-VARFD),3,1)/SMA(MAX(VARFC-VARFD,0),3,1)*100;</p><p >VARFF:=MA(IF(CLOSE*1.35<=VARFB,VARFE*10,VARFE/10),3);</p><p >VARF10:=LLV(LOW,30);</p><p >VARF11:=HHV(VARFF,30);</p><p >绝佳买点:IF(C=C,MA(IF(LOW<=VARF10,(VARFF+VARF11*2)/2,0),3),100000000)/(200),COLORRED,LINETHICK2;</p><p >I:=IF(CLOSE<REF(CLOSE,1),0,VOL/CAPITAL);</p><p >骤雨初晴:=ABS(EMA(I,13.3)-18)/WINNER(CLOSE)*IF((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)<-0.04,1,0);</p><p >W:=COST(10)*0;</p><p >DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26),COLORRED;</p><p >DEA:=EMA(DIFF,9),COLORYELLOW;</p><p >MACD:=2*(DIFF-DEA)*231,STICK,COLORRED,LINETHICK1;</p><p >STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0.9,0),COLOR00FFFF;</p><p >STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,0.8,0 ),COLORFFEE44;</p><p >STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1.1,0 ),COLOR0055FF;</p><p >STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1.1,0 ),COLORFF55BB;</p><p >DRAWTEXT(CROSS(绝佳买点,1.20000) ,-32,'疯牛'),COLORYELLOW,LINETHICK2 ;</p><p >DRAWTEXT(CROSS(绝佳买点,4.50000) ,63,'倾家荡产买'),COLOR00FFFF,LINETHICK2;</p><p >{DRAWTEXT(CROSS(绝佳买点,7.00000) ,88,'疯牛3'),COLORCYAN,LINETHICK4;}</p><p >DRAWTEXT(CROSS(绝佳买点,3.60000) ,28,'疯牛2'),COLORFF00FF,LINETHICK4;</p><p >{DRAWTEXT(CROSS(绝佳买点,2.40000) ,-55,'疯牛1'),COLORFFFFCC,LINETHICK3 ; };</p><p >精准抄底</p><p >Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;</p><p >Q3:=SMA(Q2, 9, 1);</p><p >Q4:=SMA(Q3, 3, 1);</p><p >短期趋势:3*Q3-2*Q4,COLORWHITE,LINETHICK1;</p><p >中期趋势:EMA(Q3, 3),COLORRED,LINETHICK1;</p><p >DRAWTEXT(CROSS(中期趋势, 短期趋势) AND REF(短期趋势,1)>80, REF(短期趋势,3), '▼逢高派发'), COLOR00FF00,LINETHICK5;</p><p >▲逢低关注: DRAWTEXT(REF(CROSS(中期趋势,短期趋势),82) AND 中期趋势>1.3*短期趋势,短期趋势,'▲逢低关注'), COLOR00FFFF, LINETHICK1;</p><p >▲抄底: DRAWTEXT(REF(CROSS(短期趋势,中期趋势),1) AND 短期趋势>1.3*中期趋势,中期趋势,'▲抄底'),COLORBLUE,LINETHICK1;</p><p class="ztext-empty-paragraph"><br/></p><p ><b>①:公式代码复制过来难免造成部分格式错误。如出现公式导入错误,请及时私信留言笔者领取nt6文件可直接导入!如果对于指标感兴趣或者有疑问的可以与我一起交流学习!指标源码导入就可以使用。</b></p><p ><b>②:创作不易,希望大家对于我的文章能够关注和转发,后期也会给大家分享更多好用的指标以及其他股票知识的!</b></p>

精品网址徽 发表于 2024-4-3 15:17:00

路过,学习下
页: [1]
查看完整版本: 通达信精选指标底部抄底系列:疯牛探底、精准抄底(源码分享)