自用主图,变红可以关注,买入结合副图,变绿卖出,喜欢的朋友看看,源码奉献。
{参考决策主图} {参考决策主图} avx:=(((((if(c>ma(c,5),10,(0-10))+if(ma(c,5)>ma(c,10),10,(0-10)))+if(c>ma(c,10),10,(0-10)))+if(ma(c,5)>ma(c,20),10,(0-10)))+if((c>ma(c,20)),10,(0-10)))+if(ma(c,20)>ref(ma(c,20),1),10,(0-10))); dslx:=(c/indexc); dslx1:=ma(dslx,5); tjts1:=barstatus=2 and c<200; tjts2:=barstatus=2 and c>200; v1:=ma(v,3); v2:=ma(v,8); k2:=hhv(h*0.99,barslast(barstatus=1)); drawtext_fix(tjts1 and ((cross(avx,1) and (v1>=v2)) and (dslx>=dslx1)),0.5,0,0,'量能稳定,有走强迹象,根据指数线性关系布局分批介入. '),colorred,linethick1; drawtext_fix(tjts1 and ((cross(avx,1) and (v1<v2)) and (dslx>=dslx1)),0.5,0,0,'走势趋强,量能不足,根据指数线性关系布局分批买入. '),colorred,linethick1; drawtext_fix(tjts1 and ((cross(avx,1) and (v1>v2)) and (dslx<dslx1)),0.5,0,0,'量价配合良好,没有明显走强,根据指数线性关系考虑进入与否. '),coloryellow,linethick1; drawtext_fix(tjts1 and ((cross(avx,1) and (v1<=v2)) and (dslx<dslx1)),0.5,0,0,'形态尚可,量能不足,未完全走强,根据指数线性关系考虑是否进入. '),colorgreen,linethick1; drawtext_fix(tjts1 and ((cross(1,avx) and (v1>=v2)) and (dslx>=dslx1)),0.5,0,0,'形态变坏,减持或者卖出观望. '),colorgreen,linethick2; drawtext_fix(tjts1 and ((cross(1,avx) and (v1<v2)) and (dslx>=dslx1)),0.5,0,0,'明显缩量走势,根据指数线性关系减持或清仓,等待机会. '),colorwhite,linethick1; drawtext_fix(tjts1 and ((cross(1,avx) and (v1>=v2)) and (dslx<dslx1)),0.5,0,0,'走势偏弱,谨慎操作. '),colorgreen,linethick1; drawtext_fix(tjts1 and ((cross(1,avx) and (v1<v2)) and (dslx<dslx1)),0.5,0,0,'缩量下跌,走势偏弱,离场观望. '),colorgreen,linethick1; drawtext_fix(tjts1 and ((((avx>=1) and (ref(avx,1)>0)) and (v1>=v2)) and (dslx>=dslx1)),0.5,0,0,'强势明显,量能充足,注意前期平台和指数影响. '),colorred,linethick1; drawtext_fix(tjts1 and ((((avx>=1) and (ref(avx,1)>0)) and (v1<v2)) and (dslx>=dslx1)),0.5,0,0,'强势依然,量能转弱,高抛低吸做好布局. '),colorcyan,linethick2; drawtext_fix(tjts1 and ((((avx>=1) and (ref(avx,1)>0)) and (v1>=v2)) and (dslx<dslx1)),0.5,0,0,'具备上涨潜力,根据线性关系操作. '),colorcyan,linethick2; drawtext_fix(tjts1 and ((((avx>=1) and (ref(avx,1)>0)) and (v1<v2)) and (dslx<dslx1)),0.5,0,0,'走势趋弱,量能不足,减持筹码. '),colorcyan,linethick2; drawtext_fix(tjts1 and ((((avx<1) and (ref(avx,1)<0)) and (v1>=v2)) and (dslx>=dslx1)),0.5,0,0,'形态不佳,注意量能变化,跟踪分析确认. '),linethick2; drawtext_fix(tjts1 and ((((avx<1) and (ref(avx,1)<0)) and (v1<v2)) and (dslx>=dslx1)),0.5,0,0,'走势虽弱,关注线性关系和量能变化,确认业绩、题材. '),coloryellow,linethick2; drawtext_fix(tjts1 and ((((avx<1) and (ref(avx,1)<0)) and (v1>=v2)) and (dslx<dslx1)),0.5,0,0,'有走强迹象,上涨压力大,根据大盘情况操作. '),coloryellow,linethick2; drawtext_fix(tjts1 and ((((avx<1) and (ref(avx,1)<0)) and (v1<v2)) and (dslx<dslx1)),0.5,0,0,'走势太弱,整理后关注量能和信号提示. '),linethick2,coloryellow; drawtext_fix(tjts2 and (cross(avx,1) and (v1>=v2)),0.5,0,0,'量能稳定,有明显走强迹象,可以考虑布局. '),colorwhite,linethick2; drawtext_fix(tjts2 and (cross(avx,1) and (v1>=v2)),0.5,0,0,'如前期经过一轮下跌,此时为最佳买点,但前期有过一段涨幅则介入需谨慎. '),colorwhite,linethick2; drawtext_fix(tjts2 and (cross(avx,1) and (v1<v2)),0.5,0,0,'虽然走势趋强,量能还显不足,根据线性关系操作. '),colorwhite,linethick2; drawtext_fix(tjts2 and (cross(avx,1) and (v1<v2)),0.5,0,0,' 可以谨慎布局,控制仓位,一旦量能放大可以重仓买入. '),colorwhite,linethick2; drawtext_fix(tjts2 and (cross(1,avx) and (v1>=v2)),0.5,0,0,'大盘形态走坏,减仓或者抛光. '),colorgreen,linethick2; drawtext_fix(tjts2 and (cross(1,avx) and (v1<v2)),0.5,0,0,'弱势缩量调整,清仓观望,寻找可布局股票. '),colorwhite,linethick2; drawtext_fix(tjts2 and (((avx>=1) and (ref(avx,1)>0)) and (v1>=v2)),0.5,0,0,'走势良好,量能稳定,可以继续持有强势股. '),colorwhite,linethick2; drawtext_fix(tjts2 and (((avx>=1) and (ref(avx,1)>0)) and (v1<v2)),0.5,0,0,'形态良好,量能稍显不足,线性关系顶部背离,随时准备清仓. '),colorwhite,linethick2; drawtext_fix(tjts2 and (((avx<1) and (ref(avx,1)<0)) and (v1>=v2)),0.5,0,0,'趋势不明,注意量能和线性关系变化,减少操作. '),linethick2,colorwhite; drawtext_fix(tjts2 and (((avx<1) and (ref(avx,1)<0)) and (v1<v2)),0.5,0,0,'趋势向下,量能萎缩,关注线性关系变化,减少操作. '),linethick2,colorwhite; rsv:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*100; k1:=sma(rsv,3,1); d1:=sma(k1,3,1); 高1:=hhv(h,150); 低1:=llv(l,150); qr:=(h+l+2*c)/4; 强弱分界线:=ema(qr,55),colorffff00; tfxxs:=intpart(k1)+intpart(d1); tgl:=(tfxxs-ref(tfxxs,1)); drawtext_fix(islastbar and tgl>=0 and tgl>ref(tgl,1),0.99,0.01,1,'资金状况:流入加快'),color0202ff; drawtext_fix(islastbar and tgl>=0 and tgl<=ref(tgl,1),0.99,0.01,1,'资金状况:流入减慢'),color1876e9; drawtext_fix(islastbar and tgl<0 and tgl>ref(tgl,1),0.99,0.01,1,'资金状况:流出减慢'),color13b79a; drawtext_fix(islastbar and tgl<0 and tgl<=ref(tgl,1),0.99,0.01,1,'资金状况:流出加快'),color00ca00; var1e:=ref((low+open+close+high)/4,1); var2e:=sma(abs(low-var1e),13,1)/sma(max(low-var1e,0),10,1); var3e:=ema(var2e,10); var4e:=llv(low,33); var5e:=ema(if(low<=var4e,var3e,0),3); var21e:=sma(abs(high-var1e),13,1)/sma(min(high-var1e,0),10,1); var31e:=ema(var21e,10); var41e:=hhv(high,33); var51e:=ema(if(high>=var41e,var31e,0),3); drawtext_fix(islastbar and var51e<ref(var51e,1),0.99,0.08,1,'主力正在拉高'),color0202ff; drawtext_fix(islastbar and var5e>ref(var5e,1),0.99,0.15,1,'典型吸筹行为'),color1876e9; drawtext_fix(islastbar and var5e<ref(var5e,1),0.99,0.15,1,'典型洗盘行为'),colorc08000; drawtext_fix(islastbar and var5e=ref(var5e,1),0.99,0.15,1,'无特殊行为'),colorc0c0c0; drawtext_fix(islastbar and var51e>ref(var51e,1),0.99,0.08,1,'主力正在出货'),color00ca00; drawtext_fix(islastbar and var51e=ref(var51e,1),0.99,0.08,1,'主力无大动作'),colorc0c0c0; {拉升潜力} var78:=c/expma(c,5); a1:=cost(1.91); a2:=cost(3.82); a3:=cost(5); a4:=cost(6.18); a5:=cost(8.09); costt:=(a1+a2+a3+a4+a5)/5; costt1:=c/costt; vard1:=(2*indexc+indexh+indexl)/4; vard2:=llv(indexl,21); vard3:=hhv(indexh,8); miji:=ema((vard1-vard2)/(vard3-vard2)*100,9); miji1:=miji-var78; miji2:=miji1-ref(miji1,1); miji3:=miji-ref(miji,1); dapan:=costt1-(miji3+0.618*miji2)/16.18; drawtext_fix(islastbar and dapan<costt1,0.99,0.8,1,'受大盘拉动'),color0202ff; drawtext_fix(islastbar and dapan>=costt1,0.99,0.8,1,'受大盘压制'),color00ca00; x1e:=(finance(11)-finance(15))/finance(10)*1.2; x2e:=(finance(31)+finance(17))/finance(10)*1.4; x3e:=finance(23)/finance(10)*3.3; x4e:=finance(19)/finance(15)*0.6; x5e:=finance(20)/finance(15)*0.999; yaogu:=x1e+x2e+x3e+x4e+x5e; xjf:=con2str(finance(25)/finance(15),3); yzz:=con2str((finance(19)-finance(22)-finance(27))/finance(19),2); drawtext_fix(yaogu<=0,0.99,0.99,1,'拉升潜力:难于登天'),color00ff00; drawtext_fix(yaogu>0 and yaogu<=1.2,0.99,0.99,1,'拉升潜力:难度较大'),color3a8b5c; drawtext_fix(yaogu>1.2 and yaogu<=2.6,0.99,0.99,1,'拉升潜力:尚可一试'),color4747b8; drawtext_fix(yaogu>2.6 and yaogu<=5.8,0.99,0.99,1,'拉升潜力:较为容易'),color2424db; drawtext_fix(yaogu>5.8,0.99,0.99,1,'拉升潜力:轻而易举'),color0000ff; drawtext_fix(xjf>=1618,0.99,0.86,1,'过于保守'),color4747b8; drawtext_fix(xjf>=618 and xjf<1618,0.99,0.86,1,'保守求稳'),color4747b8; drawtext_fix(xjf>=100 and xjf<618,0.99,0.86,1,'收支平衡'),,color0000ff; drawtext_fix(xjf<100,0.99,0.86,1,'负债过多'),color00ff00; drawtext_fix(yzz<85,0.99,0.86,1,'资产质地差'),color00ff00; 快线:=ema(c,7)-ema(c,21),linethick2,colorred; 慢线:=ma(快线,4),colorgreen,linethick2; 数值:=ema((0.668*ref(快线,1)+0.333*快线),1),colorstick; x1:=v/sum(v,13); x2:=dma(c,x1); x3:=(c-x2)/x2*40; l2:=ma(amount/(100*v),13); cys13:= (c-l2)/l2*100; 做多:=if(快线>=数值,快线,数值); 做空:=if(数值-快线,数值,快线); 强庄:stickline(cys13>5,l-0.22,l-0.35,2,0),colorcyan; aaa:=(3*c+h+l+o)/6; var1:(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,linethick2,colorred; var2:=(hhv(var1,2)+hhv(var1,4)+hhv(var1,8))/0; var3:=(llv(var1,2)+llv(var1,4)+llv(var1,8))/3; var4:=(hhv(var2,2)+hhv(var2,4)+hhv(var2,8))/0; var5:(llv(var3,2)+llv(var3,4)+llv(var3,8))/3,colorred; var6:=(llv(var1,2)+llv(var1,4)+llv(var1,8))/3; {drawband(var1,rgb(155,50,50),var6,rgb(250,250,0));} if((var1 <= ref(var1,1)),var1,drawnull),colorgreen,linethick3; if((var1 >= ref(var1,1)),var1,drawnull),colorred,linethick3; stickline(var4>var1,var4,var1,0,0),colorblue; drawkline(h,o,l,c); drawtext(ref(var5,1)=ref(var1,1) and var5<var1,l*0.99,'↖买入'),coloryellow; drawtext(ref(var6,1)=ref(var1,1) and var6<var1,l*0.98,'↖加仓'),coloryellow; cc:=((high+low+close)/3-ema((high+low+close)/3,5))/(0.015*avedev((high+low+close)/3,5)); stickline(cc>=0,low,high,0.0,0),colorred; stickline(cc>=0,close,open,3,1),colorred; stickline(cc<0,low,high,0.0,0),colorgreen; stickline(cc<0,close,open,3,1),colorgreen; 月di:="macd.dif#month"; 月de:="macd.dea#month"; 周di:="macd.dif#week"; 周de:="macd.dea#week"; 日di:="macd.dif"; 日de:="macd.dea"; 日金叉:=cross(日di,日de); 周金叉:=cross(周di,周de); 月金叉:=cross(月di,月de); 日穿0:=cross(日di,0); 周穿0:=cross(周di,0); 月穿0:=cross(月di,0); drawtext(日穿0,low-0.48,'↖日穿0'),colorcyan; drawtext(周穿0,l*0.94,'↖周穿0'),colorcyan; drawtext(月穿0,l*0.99,'↖月穿0'),colorcyan; drawtext(日金叉,low-0.3,'↖日金叉'),colorcyan; drawtext(周金叉,l*0.92,'↖周金叉'),colorcyan; drawtext(月金叉,l*0.90,'↖月金叉'),colorcyan; {穿三线} ma2:=ema(c,2); ma05:=ema(c,5); ma010:=ema(c,10); ma020:=ema(c,20); ma030:=ema(c,30); yc0x:=ma05>=ref(ma05,1); h01:=max(max(ma05,ma010),ma020); l01:=min(min(ma05,ma010),ma020); 一穿三线:=h01<c and o<l01 and yc0x and ma2>ref(ma2,1); stickline(一穿三线,o,c,0.3,0),coloryellow; drawtext(一穿三线,l-0.62, '←穿三线'),colorgreen; {资金净流入监控} 总额:=amount; 买a:=if(o=c and (c-ref(c,1))/ref(c,1)*100>9.8,amount,amount/((h-l)*2-abs(o-c))*(c-l)); 买%:=买a/amount*100; 流入:=amount*买%/10000000000; 流出:=amount/100000000-流入; 净流:=(流入-流出); 总额3:=sum(amount,3); 流入3:=sum(流入,3); 流出3:=sum(流出,3); 净流3:=sum(流入-流出,3); 总额5:=sum(amount,5); 流入5:=sum(流入,5); 流出5:=sum(流出,5); 净流5:=sum(流入-流出,5); 总额10:=sum(amount,10); 流入10:=sum(流入,10); 流出10:=sum(流出,10); 净流10:=sum(流入-流出,10); 画:=const(findhigh(总额10,0,190,1)); drawtext_fix(1,0,0.37,0,'净流(亿):'),colormagenta,linethick1; drawtext_fix(1,0,0.45,0,'1日'),colormagenta,linethick1; drawtext_fix(1,0,0.55,0,'3日'),colormagenta,linethick1; drawtext_fix(1,0,0.65,0,'5日'),colormagenta,linethick1; drawtext_fix(1,0,0.75,0,'10日'),colormagenta,linethick1; drawnumber_fix(1,0.05,0.45,0,const((净流))),coloryellow; drawnumber_fix(1,0.05,0.55,0,const((净流3))),coloryellow; drawnumber_fix(1,0.05,0.65,0,const((净流5))),coloryellow; drawnumber_fix(1,0.05,0.75,0,const((净流10))),coloryellow;
上一指标公式:拐点趋势 通达信拐点
下一指标公式:资金K线副图 通达信资金
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文自用主图--红色 主图 通达信自用仅供学习研究。