-----------------------------------------副图指标----------------------------------------- 拉升力:=(close-llv(low,28))/(hhv(high,30)-llv(low,36))*0.6*close; 拉升力a:=sma(拉升力,6.3,1); 波峰波谷:sma(拉升力a,3,1),colorff00ff; 拉升力b:=3*拉升力a-2.1*波峰波谷; 空方:=3*波峰波谷-1* 拉升力a; 做空:if(空方>拉升力b,拉升力b,空方),linethick2,color00ff00; 做空周期:hhv(做空,21),colorblue,linethick2; 多头:if(做空>=ref(做空,1) ,做空,drawnull),colorred,linethick3; drawicon(做空>=ref(做空,1) and ref(做空,1)<ref(做空,2),做空,23); 空头:if(做空<ref(做空,1),做空,drawnull),colorgreen,linethick3; {drawicon(做空<=ref(做空,1) and ref(做空,1)>ref(做空,2),做空,19);} 短线:(close-ma(close,13))/ma(close,13)*20,linethick0,colorwhite; 中线:(close-ma(close,4))/ma(close,4)*20,linethick0,coloryellow; 红柱:sma(短线,3,1),linethick0,color0000ff; 蓝柱:sma(中线,3,1),colorstick,colorffff00; {红柱} stickline(红柱<ref(红柱,1)and 红柱>0,0,红柱,2,0),color888800; stickline(红柱<ref(红柱,1)and 红柱>0,0,红柱,1.5,0),coloraaaa00; stickline(红柱<ref(红柱,1)and 红柱>0,0,红柱,0.8,0),colordddd00; stickline(红柱<ref(红柱,1)and 红柱>0,0,红柱,0.3,0),colorffff00; stickline(红柱>ref(红柱,1)and 红柱>0,0,红柱,2,0),color000088; stickline(红柱>ref(红柱,1)and 红柱>0,0,红柱,1.5,0),color0000aa; stickline(红柱>ref(红柱,1)and 红柱>0,0,红柱,0.8,0),color0000dd; stickline(红柱>ref(红柱,1)and 红柱>0,0,红柱,0.3,0),color0000ff; stickline(蓝柱<ref(蓝柱,1) and 蓝柱>0,0,蓝柱,2,0),color008800; stickline(蓝柱<ref(蓝柱,1) and 蓝柱>0,0,蓝柱,1,0),color00aa00; stickline(蓝柱<ref(蓝柱,1) and 蓝柱>0,0,蓝柱,0.8,0),color00dd00; stickline(蓝柱<ref(蓝柱,1) and 蓝柱>0,0,蓝柱,0.3,0),color00ff00; {蓝柱} stickline(红柱>ref(红柱,1)and 红柱<0,0,红柱,2,0),color880088; stickline(红柱>ref(红柱,1)and 红柱<0,0,红柱,1.5,0),coloraa00aa; stickline(红柱>ref(红柱,1)and 红柱<0,0,红柱,0.8,0),colordd00dd; stickline(红柱>ref(红柱,1)and 红柱<0,0,红柱,0.3,0),colorff00ff; stickline(红柱<ref(红柱,1)and 红柱<0,0,红柱,2,0),color888800; stickline(红柱<ref(红柱,1)and 红柱<0,0,红柱,1.5,0),coloraaaa00; stickline(红柱<ref(红柱,1)and 红柱<0,0,红柱,0.8,0),colordddd00; stickline(红柱<ref(红柱,1)and 红柱<0,0,红柱,0.3,0),colorffff00; stickline(蓝柱>ref(蓝柱,1)and 蓝柱<0,0,蓝柱,2,0),color009999; stickline(蓝柱>ref(蓝柱,1)and 蓝柱<0,0,蓝柱,1.5,0),color00bbbb; stickline(蓝柱>ref(蓝柱,1)and 蓝柱<0,0,蓝柱,0.8,0),color00dddd; stickline(蓝柱>ref(蓝柱,1)and 蓝柱<0,0,蓝柱,0.3,0),color00ffff; var200:=(close-llv(low,20))/(hhv(high,20)-llv(low,20))*100; var300:=sma(sma(var200,3,1),3,1)/28.57; var400:=ema(var300,5); 操盘:=3*var300-2*var400; a1:=cross(操盘,var300) and var300<2.1 and c>o; stickline(a1,5,0,4,0),color770077; stickline(a1,5,0,3,0),color990099; stickline(a1,5,0,2,0),colorbb00bb; stickline(a1,5,0,1,0),colordd00dd; stickline(a1,5,0,0.3,0),colorff00ff; drawtext(a1,5.2,'全仓'),colorred; -----------------------------------------主图指标----------------------------------------- 参数: n 1 100 5 m 1 100 13 上:ema(c,3),colorblue,linethick1; 中:ema(c,6),colorwhite,linethick1; 下:ema(中,6),color00ff00,linethick1; if(上>中 and 上>ref(上,1), 上,drawnull),linethick2,colorred; if(中>下 and 中>ref(中,1), 中,drawnull),linethick2,colorred; drawband(上,rgb(255,255,0),中,rgb(256,200,0)); qq:= c<中; mm:=上>ref(上,1) and ref(上,1)<ref(上,2) ; 超买:ma(c,10)*if(capital=0,1.04,1.1),pointdot,colorgreen,linethick2; 超卖:ma(c,10)*if(capital=0,0.95,0.9),pointdot,colorred,linethick2; 获利盘%:winner(close)*100,nodraw,colorwhite; 趋势线:ema(((slope(close,21) * 20) + close),42),pointdot,colorff00ff,linethick4; v1:=abs((2*close+high+low)/4-ma(close,20))/ma(close,20); v2:=(1-7/100)*(dma(close,v1)); v3:=(1+7/100)*(dma(close,v1)); v5:=ma((low+high+close)/3,5); ma1:=mema(close,5); {好公式网-最好的股票公式网站 www.goodgongshi.com} ma2:=atan((ma1/ref(ma1,1)-1)*100)*180/3.1416; ma3:=if(ma2>0,ma2,ma2); ma5:=ma(close,n),color888899; ma13:=ma(close,m),colorff00f0,linethick2; var1:=close=hhv(c,4) and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3)) or ref(c,1)=hhv(c,4) and close>=ref(c,2) or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1) or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2); {收盘价=4日内收盘价的最高值 and 昨收>=2日前的收盘价} var2:=close=hhv(c,4) and ref(c,1)=llv(c,4); {收盘价=4日内收盘价的最高值 and 昨收=4日内收盘价的最低值} var3:=close=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3)) or ref(c,1)=llv(c,4) and c<ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)=hhv(c,4) and c<ref(c,1) or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2); {收盘价=4日内收盘价的最低值 and (昨收<2日前的收盘价} var4:=ref(c,1)=llv(c,4) and c>=ref(c,2) or ref(c,2)=llv(c,4) and ref(c,1)<=ref(c,3) and ref(c,2)<ref(c,4) and c>=ref(c,1); {昨收=4日内收盘价的最低值 and 收盘价>=2日前的收盘价} var5:=ref(c,1)=hhv(c,4) and c<ref(c,2) or (ref(c,2)=hhv(c,4) and ref(c,1)>ref(c,3) or ref(c,3)=hhv(c,4) and ref(c,1)>ref(c,2)) and ref(c,2)>=ref(c,4) and c<ref(c,1); {昨收=4日内收盘价的最高值 and 收盘价<2日前的收盘价} var6:=v5>ref(v5,1) and ref(v5,1)<ref(v5,2); {今日v5向上形成拐点} var7:=low<hhv(v5,13) and high>hhv(v5,13) and close>ref(c,1) and close>open; var8:=var7 and count(var6,2); var9:=100*ema(ema(c-ref(c,1),6),6)/ema(ema(abs(c-ref(c,1)),6),6); var10:=ema(ma(c,13),13); var11:=filter((llv(var9,2)=llv(var9,7) and count(var9<0,2) and cross(var9,ma(var9,2)))=1,5); var12:=filter((hhv(var9,2)=hhv(var9,7) and count(var9>50,2) and cross(ma(var9,2),var9))=1,1); var13:=sma(ema((c-ref(c,1))/ref(c,1),5)*100,3,1)*10; var14:=filter(((cross(var13,0) or cross(c,var10)) and var11)=1,3); var15:=ma(c,18)>=ref(ma(c,18),3) and cross(c,ma(c,18)); var16:=var8 and not(ref(var8,1)); rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100; k:=sma(rsv,3,1); d:=sma(k,3,1); j:=3*k-2*d; 金叉:=cross(j,d); 死叉:=cross(d,j); 买1:=(var14 or var15) and var11; 买2:=(var14 or var15) and var4; 买3:=(var14 or var15) and var2; 买4:=(var2 and var11) or (var4 and var11); 买5:=(金叉 and var4) or (金叉 and var2) or (金叉 and var11); {涨停} stickline(close>ref(close,1)*1.0985 and close=high,close,open,4,-1), color00ffff; {跌停} stickline(close<ref(close,1)*0.9015 and close=low,close,open,4,-1), colorgreen; {蓝} stickline(open>=close,close,open,3.3,0),colorff6600; stickline(open>=close,close,open,2.4,0),colorff8800; stickline(open>=close,close,open,1.3,0),colorffaa00; stickline(open>=close,close,open,0.6,0),colorffcc00; {红} stickline(close>open,close,open,3.3,0),color000066; stickline(close>open,close,open,2.4,0),color000099; stickline(close>open,close,open,1.3,0),color0000dd; stickline(close>open,close,open,0.5,0),colorcc66ff; {绿} stickline(var3,open,(open+close)/2,3.3,0),color009900; stickline(var3,open,(open+close)/2,2.4,0),color00bb00; stickline(var3,open,(open+close)/2,1.3,0),color00dd00; stickline(var3,open,(open+close)/2,0.5,0),color00ff00; {灰} stickline(var4 and mm,open,(open+close)/2,3.3,0),color999999; stickline(var4 and mm,open,(open+close)/2,2.2,0),colorbbbbbb; stickline(var4 and mm,open,(open+close)/2,1.3,0),colordddddd; stickline(var4 and mm,open,(open+close)/2,0.5,0),colorffffff; stickline(金叉,open,close,0.5,0),coloryellow; stickline(死叉,open,close,0.5,0),color000066; drawicon(var16,low-0.02,1); drawicon(买1 or 买2 or 买3 or 买4 or 买5 and mm,low-0.05,1); drawicon(死叉 or cross(50,var9) and qq and k>50,high+0.01,2); {好公式网-最好的股票公式网站 www.goodgongshi.com} x1:=(c+l+h)/3; bb5:=atan(ema(x1,7)-ref(ema(x1,7),1))*3.1416*10; ema3:=ema(c,3); drawtext(filter(bb5>1 and ema(x1,7)>ref(ema(x1,7),1),10), low*0.99,'★∠45'),colorffffff; var81:=1; var82:=((((2*close)+high)+low) / 4); 低金叉进:=20,coloryellow,linethick2; 高死叉出:=90,colorgreen,linethick3; var84:=llv(low,5); var85:=hhv(high,4); c1:=(ema((((var82-var84)/(var85-var84))*100),4)*var81),colorff00ff,linethick2; c2:=(ema(((0.667*ref(c1,1))+(0.333*c1)),2)*var81),colorffffff,linethick2; 条件:=cross(c1,c2) and c1<40; 条件0:=cross(c2,c1) and c1>90; tj1:=cross(c1,c2); tj2:=cross(c2,c1); tj3:=cross(c1,c2) and ref(c1,1)<20; tj4:=cross(c2,c1) and ref(c1,1)>80; drawtext(条件0,h*1.02,'s'),colorblue; drawtext(tj3 and mm,l*0.98,'底'),colorff00ff; drawtext(tj4 and qq,h*1.02,' 逃跑'),colorgreen; drawtext(tj4,h*1.02,'逃'),colorgreen; 水平面:=ema(close,89),color3399ff; aaa:=(3*c+h+l+o)/6; 短趋:=(8*aaa+7*ref(aaa,1)+6*ref(aaa,2)+5*ref(aaa,3)+4*ref(aaa,4)+3*ref(aaa,5)+2*ref(aaa,6)+ref(aaa,8))/36; 中趋:=(llv(短趋,2)+llv(短趋,4)+llv(短趋,6))/3; ttj1:=vol=hhv(vol,10) and vol>2*ref(vol,1) and close>短趋; 立桩量:=filter(ttj1,5); ttj2:=if(barslast(立桩量)=1 and close>ref(high,1),1,if(barslast(立桩量)=2 and close>ref(high,2),1,if(barslast(立桩量)=3 and close>ref(high,3),1,0))); 突破:=ttj2=1; ttj3:=if(barslast(立桩量)=1 and close>ref(low,1),1,if(barslast(立桩量)=2 and close>ref(low,2),1,if(barslast(立桩量)=3 and close>ref(low,3),1,0))); 三天法则:=ttj3=1; 成立:=三天法则 and 突破; 条件成立:=filter(成立,3); drawtext(条件成立,l*0.93,'立桩量'),color00ffff; var90:=((((hhv((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12) -ema(dclose,26)),9)))*2),4)<0) and ((((ema(dclose,12)-ema(dclose,26))- (ema((ema(dclose,12)-ema(dclose,26)),9)))*2)>ref((((ema(dclose,12) -ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),1))) and (ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)- ema(dclose,26)),9)))*2),1)<ref((((ema(dclose,12)-ema(dclose,26))- (ema((ema(dclose,12)-ema(dclose,26)),9)))*2),2))) and (ref((((ema(dclose,12) -ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),2) <ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose, 26)),9)))*2),3))); drawtext(var90 and mm,l*0.98,'买'),colorred; drawtext(var90,l*0.98,'←短买'),colorred; drawtext(cross(ma(c,3),ma(c,9)) and c>=ref(c,1) and c>o,l*0.98,'追'),colormagenta; drawtext(ref(c,barslast(ref(cross("macd.dif","macd.dea"),1))+1)>c and ref("macd.dif",barslast(ref(cross("macd.dif","macd.dea"),1))+1) <"macd.dif" and cross("macd.dif","macd.dea") >0,l-0.02,'★m'),colorff00ff;{macd底背离} drawtext(ref(c,barslast(ref(cross("kdj.k","kdj.d"),1))+1)>c and ref("kdj.k",barslast(ref(cross("kdj.k","kdj.d"),1))+1)<"kdj.k" and cross("kdj.k","kdj.d"),l-0.10,'◎k'),colorff00ff;{kdj底背离} drawtext(ref(c,barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1))+1)>c and ref("rsi.rsi1",barslast(ref(cross("rsi.rsi1","rsi.rsi2"),1))+1) <"rsi.rsi1" and cross("rsi.rsi1","rsi.rsi2") >0,l-0.18,'◆r'),colorff00ff;{rsi底背离}; drawtext(ref(c,barslast(ref(cross("macd.dea","macd.dif"),1))+1)<c and ref("macd.dif",barslast(ref(cross("macd.dea","macd.dif"),1))+1) >"macd.dif" and cross("macd.dea","macd.dif") >0,h+0.16,'★m'),colorgreen;{macd顶背离}; drawtext(ref(c,barslast(ref(cross("kdj.d","kdj.k"),1))+1)<c and ref("kdj.k",barslast(ref(cross("kdj.d","kdj.k"),1))+1) >"kdj.k" and cross("kdj.d","kdj.k")>0,h+0.08,'◎k'),colorgreen;{kdj顶背离} drawtext(ref(c,barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1))+1)<c and ref("rsi.rsi1",barslast(ref(cross("rsi.rsi2","rsi.rsi1"),1))+1)>"rsi.rsi1" and cross("rsi.rsi2","rsi.rsi1")>0,h+0.04,'◆r'),colorgreen;{rsi顶背离}; aa05:=ma(c,5); aa30:=ma(c,30); ma05:=ma(c,5); ma10:=ma(c,13); ma30:=ma(c,34); bb05:=atan((ma05/ref(ma05,1)-1)*100)*180/3.1416; bb10:=atan((ma10/ref(ma10,1)-1)*100)*180/3.1416; bb30:=atan((ma30/ref(ma30,1)-1)*100)*180/3.1416; 速度5:=sma(ema((ma05-ref(ma05,1))/ref(ma05,1),3)*100,3,1); 加速度5:=ema((速度5-ref(速度5,1)),3); 五日乖离率:=(c-aa05)/aa05*100; 三拾日乖离率:=(c-ma30)/ma30*100; mr:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and aa05>ref(aa05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<aa30; 买入:=filter(mr,10); drawtext(买入,low*0.98,'←买入'),colorred; {强势狙击:=filter(bb30>30 and bb10>45 and cross(bb05,60),10); drawtext(强势狙击,low*0.98,'←强势狙击'),colorred;} 加仓:=filter(count(cross(bb05,30),5)>=1 and ma05>ref(ma05,1) and 三拾日乖离率>ref(三拾日乖离率,1) and ma10>ref(ma10,1) and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1),10); drawtext(加仓,low*0.98,'←加仓'),colorred;
上一指标公式:买点雷达副图源码/选股无未来指标下载 通达信源码选股
下一指标公式:好牛(通达信、附图、副图、源码)指标下载 通达信贴图
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文波段(源码 通达信 副图 主图 附图)指标下载 通达信贴图源码仅供学习研究。