通达信版本king级别macd指标
{king级别macd}
dif:ema(close,7) - ema(close,19),colorgreen;
dea:ema(dif,9);
macd:(dif-dea)*2,colorstick,color0000ff;
var3:=hhv(high,60);
var4:=llv(low,30);
var5:=(close-ma(close,32))/ma(close,32)*100;
var6:=(var3+var4+var5)/3;
var7:=ema(var6,5);
k:=ema(var7,5)*2, colorff00ff;
d:=ema(k,5), colorwhite;
j:=k*3-d*2, coloryellow;
enterlong:=cross(k,d);
exitlong:=cross(d,k);
b:=(drawicon((zig(3,5)>ref(zig(3,5),1)) and (ref(zig(3,5),1)<=ref(zig(3,5),2))
and (ref(zig(3,5),2)<=ref(zig(3,5),3)),l*0.98,1))*d*2/3;
q:=(drawicon((zig(3,5)<ref(zig(3,5),1)) and (ref(zig(3,5),1)>=ref(zig(3,5),2))
and (ref(zig(3,5),2)>=ref(zig(3,5),3)),h*1.01,2))*d*2/3;
notext强:if(dif>ma(dif,2),dif,drawnull),colorred;
超b:=l2_amo(0,2)/10000.0;
大b:=l2_amo(1,2)/10000.0;
中b:=l2_amo(2,2)/10000.0;
小b:=l2_amo(3,2)/10000.0;
超s:=-l2_amo(0,3)/10000.0;
大s:=-l2_amo(1,3)/10000.0;
中s:=-l2_amo(2,3)/10000.0;
小s:=-l2_amo(3,3)/10000.0;
资金净流入万:(超b+大b+中b+小b)+(超s+大s+中s+小s),nodraw,colorwhite;
买进:b,stick,linethick2,coloryellow;
卖出:q,stick,linethick2,colorgreen;
涨家数:indexadv,color0080ff,nodraw;
跌家数:indexdec,colorgreen,nodraw;
tj1:=(c+0.01-ref(c,1))/ref(c,1)*100;
tj2:=(c-0.01-ref(c,1))/ref(c,1)*100;
tj3:=(c-ref(c,1))/ref(c,1)*100;
q1:=if(tj1>10.05,1,0);
q2:=if(tj2<9.95 and tj3>=9.95,1,0);
涨停板:if(q1 or q2,0.5,0),colorff00ff;
tt:=240/fromopen;
比:=tt;
促进指数mfl:=(high-low)*1000000/(vol*比),colorred;
ay2:=ema(close,12)-ema(close,26);
az2:=ema(ay2,9);
lt2:=(ay2-az2);
l211:=if(lt2,llv(l,21),drawnull),color217158,circledot;
{好公式网-最好的股票公式网站 www.goodgongshi.com}
zgd:=hhv(h,80)*0.99;
zgd2:=const(zgd);
zdd:=llv(l211,80);
zdd2:=const(zdd);
yya4:=ma(close,20);
yya5:=(close > ma(close,5));
yya6:=(ma(close,5) > ma(close,10));
yya7:=(close > ma(close,10));
yya8:=(ma(close,5) > ma(close,20));
yya9:=(close > ma(close,20));
yya10:=ref(yya4,1);
yya11:=(yya4 > yya10);
yyavx:=(((((if(yya5,10,(0 - 10)) + if(yya6,10,(0 - 10))) + if(yya7,10,(0 - 10))) + if(yya8,10,(0 - 10))) + if(yya9,10,(0 - 10))) + if(yya11,10,(0 - 10)));
dslx:=(close / indexc);
dslx1:=ma(dslx,5);
dslx2:=ma(dslx,10);
yyv1:=ma(vol,5);
yyv2:=ma(vol,10);
j1:=const(if( yyavx > 0,200,100));
j2:=const(if( yyavx > 0,00,100));
j3:=const(if( yyavx > 0,100,100));
zgd3:=zgd2;
zdd3:=zdd2;
zgd4:=zgd2;
情况1:=const(if(((cross(yyavx,1) and (yyv1 >= yyv2)) and (dslx >= dslx1)),1,0)),nodraw;
情况2:=const(if(((cross(yyavx,1) and (yyv1 < yyv2)) and (dslx >= dslx1)),1,0));
情况3:=const(if(((cross(yyavx,1) and (yyv1 > yyv2)) and (dslx < dslx1)),1,0));
情况4:=const(if(((cross(yyavx,1) and (yyv1 <= yyv2)) and (dslx < dslx1)),1,0));
情况5:=const(if(((cross(1,yyavx) and (yyv1 >= yyv2)) and (dslx >= dslx1)),1,0));
情况6:=const(if(((cross(1,yyavx) and (yyv1 < yyv2)) and (dslx >= dslx1)),1,0));
情况7:=const(if(((cross(1,yyavx) and (yyv1 >= yyv2)) and (dslx < dslx1)),1,0));
情况8:=const(if(((cross(1,yyavx) and (yyv1 < yyv2)) and (dslx < dslx1)),1,0));
情况9:=const(if(((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 >= yyv2)) and (dslx >= dslx1)),1,0));
情况10:=const(if(((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 < yyv2)) and (dslx >= dslx1)),1,0));
情况11:=const(if(((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 >= yyv2)) and (dslx < dslx1)),1,0)),nodraw;
情况12:=const(if(((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 < yyv2)) and (dslx < dslx1)),1,0));
情况13:=const(if(((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 >= yyv2)) and (dslx >= dslx1)),1,0));
情况14:=const(if(((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 < yyv2)) and (dslx >= dslx1)),1,0));
情况15:=const(if(((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 >= yyv2)) and (dslx < dslx1)),1,0));
情况16:=const(if(((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 < yyv2)) and (dslx < dslx1)),1,0));
大盘1:=const(if((cross(yyavx,1) and (yyv1 >= yyv2)),1,0));
大盘2:=const(if((cross(yyavx,1) and (yyv1 < yyv2)),1,0));
大盘3:=const(if((cross(1,yyavx) and (yyv1 >= yyv2)),1,0));
大盘4:=const(if((cross(1,yyavx) and (yyv1 < yyv2)),1,0));
大盘5:=const(if((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 >= yyv2)),1,0));
大盘6:=const(if((((yyavx >= 1) and (ref(yyavx,1) > 0)) and (yyv1 < yyv2)),1,0));
大盘7:=const(if((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 >= yyv2)),1,0));
大盘8:=const(if((((yyavx < 1) and (ref(yyavx,1) < 0)) and (yyv1 < yyv2)),1,0));
mfi:=(high-low)*1000000/(vol*比);
ts1:=if(情况1=1,0.7+0.06,0.7);
ts2:=if(情况2=1,ts1+0.06,ts1);
ts3:=if(情况3=1,ts2+0.06,ts2);
ts4:=if(情况4=1,ts3+0.06,ts3);
ts5:=if(情况5=1,ts4+0.06,ts4);
ts6:=if(情况6=1,ts5+0.06,ts5);
ts7:=if(情况7=1,ts6+0.06,ts6);
ts8:=if(情况8=1,ts7+0.06,ts7);
ts9:=if(情况9=1,ts8+0.06,ts8);
ts10:=if(情况10=1,ts9+0.06,ts9);
ts11:=if(情况11=1,ts10+0.06,ts10);
ts12:=if(情况12=1,ts11+0.06,ts11);
ts13:=if(情况13=1,ts12+0.06,ts12);
ts14:=if(情况14=1,ts13+0.06,ts13);
ts15:=if(情况15=1,ts14+0.06,ts14);
ts16:=if(情况16=1,ts15+0.06,ts15);
ts17:=if(大盘1=1,ts16+0.06,ts16);
ts18:=if(大盘2=1,ts17+0.06,ts17);
ts19:=if(大盘3=1,ts18+0.06,ts18);
ts20:=if(大盘4=1,ts19+0.06,ts19);
ts21:=if(大盘5=1,ts20+0.06,ts20);
ts22:=if(大盘6=1,ts21+0.06,ts21);
ts23:=if(大盘7=1,ts22+0.06,ts22);
ts24:=if(大盘8=1,ts23+0.06,ts23);
drawtext_fix(情况1=1 ,0,0.00,0,'量能理想,明显走强,中线参与,仓位在2/3左右'),colorcyan;
drawtext_fix(情况2=1 ,0,0.00,0,'走势趋强量能不足,短线进场,仓位在1/2左右'),colorcyan;
drawtext_fix(情况3=1 ,0,0.00,0,'量价良好,并没有明显走强,短线进场,仓位1/2左右。'),colorcyan;
drawtext_fix(情况4=1 ,0,0.00,0,'形态尚可,量能不足,未完全走强,短线参与,仓位1/3左右。'),colorcyan;
drawtext_fix(情况5=1 ,0,0.00,0,'形态变坏,走势尚可,重仓减大半,清仓者观望。'),colorcyan;
drawtext_fix(情况6=1 ,0,0.00,0,'随大盘一起下跌,明显缩量走势,考虑大盘风险,减持或清仓。'),colorcyan;
drawtext_fix(情况7=1 ,0,0.00,0,'该股放量下跌,走势明显偏弱,离场观望。'),colorcyan;
drawtext_fix(情况8=1 ,0,0.00,0,'该股缩量下跌,走势偏弱,离场观望。'),colorcyan;
drawtext_fix(情况9=1 ,0,0.00,0,'该股形态良好,强势明显,量能充足,可以继续持有。'),colorcyan;
drawtext_fix(情况10=1,0,0.00,0,'该股上行趋势不变,强势依然,但量能开始转弱,注意风险'),colorcyan;
drawtext_fix(情况11=1,0,0.00,0,'该股仍然具备上涨潜力,但股性偏弱,可考虑减仓。'),colorcyan;
drawtext_fix(情况12=1,0,0.00,0,'该股走势趋弱,量能不足,减持大部分筹码'),colorcyan;
drawtext_fix(情况13=1,0,0.00,0,'该股形态不佳,注意成交量的变化,但目前不适合参与。'),colorcyan;
drawtext_fix(情况14=1,0,0.00,0,'该股趋势不明,股价偏弱,注意量能变化,目前不宜参与。'),colorcyan;
drawtext_fix(情况15=1,0,0.00,0,'有走强迹象,但量能不足,趋势不明,不适合操作'),colorcyan;
drawtext_fix(情况16=1,0,0.00,0,'该股走势太弱,没有参与价值。'),colorcyan;
drawtext_fix(大盘1,0,0.28,0,'总势量能理想,2/3仓位, 前一轮下跌,是否最佳买点,否则谨慎介入。'),colorcyan;
drawtext_fix(大盘2,0,0.28,0,'总势趋强,量能不足,若前一轮下跌,短线进场1/2,量能放大加仓。'),colorcyan;
drawtext_fix(大盘3,0,0.28,0,'总势形态走坏,重仓者可以减去大部分仓位。'),colorcyan;
drawtext_fix(大盘4,0,0.28,0,'总势缩量调整,注意风险,短线清仓观望。'),colorcyan;
drawtext_fix(大盘5,0,0.28,0,'总势走势良好,量能理想,可以继续持有强势股。'),colorcyan;
drawtext_fix(大盘6,0,0.28,0,'总势形态良好,但量能稍显不足,随时准备减仓'),colorcyan;
drawtext_fix(大盘7,0,0.28,0,'总势趋势不明,注意成交量变化,目前不适宜进场。'),colorcyan;
drawtext_fix(大盘8,0,0.28,0,'总势趋势向下,量能萎缩,不适合进场。'),colorcyan;
上一指标公式:容维创富变色MACD指标下载
下一指标公式:周易预测股票波段顶底指标下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文通达信版本KING级别MACD指标下载仅供学习研究。