通达信公式末日王者主图附有实效图指标
{=====================彩色k线=========================}
aaaa2:=strcat('沪深总下跌家数:',con2str(dynainfo(61),0));
aaaa1:=strcat('沪深总上涨家数:',con2str(dynainfo(60),0));
drawtext_fix(islastbar,0.5,0.15,0,aaaa2),colorgreen;
drawtext_fix(islastbar,0.5,0.1,0,aaaa1),colorred;
{填充背景}
drawgbk(c>0, rgb(1,1,1),rgb(1,1,1),0,'0',0);
drawgbk(c>0,rgb(0,0,0),rgb(00,0,0),0,'em',0);
stickline(c>o,c,o,3,0 ),color000055;
stickline(c>o,c,o,2.6,0 ),color000077;
stickline(c>o,c,o,2.1,0 ),color000099;
stickline(c>o,c,o,1.5,0 ),color0000bb;
stickline(c>o,c,o,0.9,0 ),color0000dd;
stickline(c>o,c,o,0.1,0 ),color0000ff;
stickline(c>o,h,l,0,0),colorred;
stickline(c<o,c,o,3,0),color646400;
stickline(c<o,c,o,2.6,0),color848400;
stickline(c<o,c,o,2.1,0),color9f9f00;
stickline(c<o,c,o,1.5,0),colorb0b000;
stickline(c<o,c,o,0.9,0),colorc4c400;
stickline(c<o,c,o,0.1,0),colordbdb00;
stickline(c<o,h,l,0,0),colordddd00;
stickline(c=o,c,o,3,0 ),colorwhite;
stickline(c=o,h,l,0,0),colorwhite;
{预测当天最低价公式}
n:=27;
pp:=0.03;
drawtext_fix(1,0.50,5,0,'马杰优化黑马指标'),color00ffff;
a1:=ref(o,1);
a2:=abs((ref(c,1)-a1)/a1);
a3:=abs((ref(h,1)-a1)/a1);
a4:=abs((ref(l,1)-a1)/a1);
bb1:=abs((a2+a3+a4)/3);
bb2:=o*bb1;
预测低一:=o-bb2;
预测高一:=o+bb2;
今日保护价:(ref(c,2)+ref(c,1)+o)/3 ,color4080ff,nodraw;
开盘价1:=open;{好公式网-最好的股票公式网站 www.goodgongshi.com}
开盘价2:=ref(open,1);
最高价1:=high;
最高价2:=ref(high,1);
最低价1:=low;
最低价2:=ref(low,1);
收盘价1:=close;
收盘价2:=ref(close,1);
aa1:=最高价2;
bb:=最低价2;
cc:=开盘价2;
dd:=收盘价2;
ee:=(aa1+bb+cc+2*dd)/5;
aaa:=ee+(aa1-bb);
bbb:=2*ee-bb;
ccc:=2*ee-aa1;
ddd:=ee-(aa1-bb);
上升突破价:=aaa;
上升阻力价:=bbb;
下跌支撑价:=ccc;
下跌反转价:=ddd;
eee:=(ee+上升突破价+上升阻力价+下跌支撑价+下跌反转价)/5;
心理价:=eee;
fff:=(eee+开盘价1)/2;
ggg:=(预测低一+fff)/2;
预测低二:=ggg;
{预测今日最高价公式}
预测高二:=ma(ref(high,1)/ref(close,2),n)*ref(close,1);
drawtext_fix(1,0.04,0.15,0,'预测低一:'),coloryellow;
drawnumber_fix(1,0.10,0.15,0,const(预测低一)),coloryellow;
drawtext_fix(1,0.15,0.15,0,'元'),coloryellow,linethick1;
drawtext_fix(1,0.04,0.20,0,'预测高一:'),colorffffff;
drawnumber_fix(1,0.10,0.20,0,const(预测高一)),colorffffff;
drawtext_fix(1,0.15,0.20,0,'元'),colorffffff,linethick1;
drawtext_fix(1,0.18,0.15,0,'预测低二:'),coloryellow;
drawnumber_fix(1,0.24,0.15,0,const(预测低二)),coloryellow;
drawtext_fix(1,0.29,0.15,0,'元'),coloryellow,linethick1;
drawtext_fix(1,0.18,0.20,0,'预测高二:'),colorffffff;
drawnumber_fix(1,0.24,0.20,0,const(预测高二)),colorffffff;
drawtext_fix(1,0.29,0.20,0,'元'),colorffffff,linethick1;
买回价:=预测低二*1.015;
卖出价:=买回价*(1+pp);
drawtext_fix(1,0.04,0.10,0,'卖出价:'),color8080ff,linethick1;
drawnumber_fix(1,0.10,0.10,0,const(卖出价)),color8080ff;
drawtext_fix(1,0.15,0.10,0,'元'),color8080ff,linethick1;
drawtext_fix(1,0.18,0.10,0,'买回价:'),color8080ff,linethick1;
drawnumber_fix(1,0.24,0.10,0,const(买回价)),color8080ff;
drawtext_fix(1,0.29,0.10,0,'元'),color8080ff,linethick1;
drawtext_fix(1,0.01,0.02,0,'★ =============================== ★'),colorred;
drawtext_fix(1,0.12,0.05,0,'t+0 操 作'),colorffffff;
drawtext_fix(1,0.01,0.08,0,'操 '),color0000ff;
drawtext_fix(1,0.01,0.12,0,'盘 '),color0000ff;
drawtext_fix(1,0.01,0.16,0,'铁'),color0000ff;
drawtext_fix(1,0.01,0.20,0,'律'),color0000ff;
drawtext_fix(1,0.32,0.08,0,'坚 '),color0000ff;
drawtext_fix(1,0.32,0.12,0,'决 '),color0000ff;
drawtext_fix(1,0.32,0.16,0,'执'),color0000ff;
drawtext_fix(1,0.32,0.20,0,'行'),color0000ff;
drawtext_fix(1,0.01,0.24,0,'★ =============================== ★'),colorred;
b1:=ma(c,1);
b2:=sma(sma(sma(b1,2,1),2,1),2,1);
sma2:=ma(b2,3);
牛线:if(b2>sma2,b2,drawnull),colorred,linethick2;
x熊线:if(b2<sma2,b2,drawnull),colorgreen,linethick2;
末日底线:if(llv(ma(b2,8),3)<b2,llv(ma(b2,8),3),b2);
末日顶线:hhv(ma(b2,1),13),coloryellow;
var1:=(2*close+high+low)/4;
var2:=ma(var1,7);
var3:=var2-ma(var1,7/2)<0;
var4:=var2-ma(var1,7/2)>0;
var5:=barslast(var3);
var6:=0-barslast(var4);
var7:=if(var3<=0,var5,var6);
stickline(末日顶线>b2 and b2>sma2,末日顶线,b2,0,1),colorgray;
stickline(末日顶线>sma2 and b2<sma2,末日顶线,sma2,0,1),colorgreen;
var11:=(close*2+high+low)/4;
var21:=ema(var11,13)-ema(var11,34);
var31:=ema(var21,5);
{stickline((c>=o),open,low,0,0),color0726ca;
stickline((c>=o),close,high,0,0),color0726ca;
stickline((c<o),close,low,0,0),colorde9100;
stickline((c<o),open,high,0,0),colorde9100;
stickline((c<o),close,open,4,0),colorff5b00;
stickline((c<o),close,open,3.4,0),colorff6c00;
stickline((c<o),close,open,2.8,0),colorff7b00;
stickline((c<o),close,open,2.2,0),colorff9c00;
stickline((c<o),close,open,1.6,0),colorffbe00;
stickline((c<o),close,open,1,0),colorffcc00;
stickline((c<o),close,open,0.3,0),colorffff00;
stickline((c>o),close,open,4,0),color070084;
stickline((c>o),close,open,3.4,0),color0000a3;
stickline((c>o),close,open,2.8,0),color0000b7;
stickline((c>o),close,open,2.2,0),color0000cd;
stickline((c>o),close,open,1.6,0),color0000e9;
stickline((c>o),close,open,1,0),color0754e9;
stickline((c>o),close,open,0.5,0),color076ef3;
stickline((c>o),close,open,0.2,0),color077bf3;}
var2a:=((close > ref(close,1)) and (close > ref(close,2)));
var3a:=((ref(var2a,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
var4a:=((ref(var3a,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
var5a:=((ref(var4a,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
var6a:=((ref(var5a,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
var7a:=((ref(var6a,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
var8a:=((ref(var7a,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
var9a:=((ref(var8a,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
varaa:=((ref(var9a,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
varba:=((ref(varaa,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
varca:=((ref(varba,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
varda:=((ref(varca,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
vareaa:=((close < ref(close,1)) and (close < ref(close,2)));
varfa:=((ref(vareaa,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
var10a:=((ref(varfa,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
var11a:=((ref(var10a,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
var12a:=((ref(var11a,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
var13a:=((ref(var12a,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
var14a:=((ref(var13a,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
var15a:=((ref(var14a,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
var16a:=((ref(var15a,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
var17a:=((ref(var16a,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
var18a:=((ref(var17a,1) and (close <= ref(close,1))) and (close >= ref(close,2)));
var19a:=((ref(var18a,1) and (close >= ref(close,1))) and (close <= ref(close,2)));
var1a:=(ref((((((((((((vareaa or varfa) or var10a) or var11a) or var12a) or
var13a) or var14a) or var15a) or var16a) or var17a) or var18a) or var19a),1) andvar2a);
{stickline(var1a,o,o+(c-o)/3,4,0),color1029ff;
stickline(var1a,o,o+(c-o)/3,3.4,0),color1040ff;
stickline(var1a,o,o+(c-o)/3,2.8,0),color1083ff;
stickline(var1a,o,o+(c-o)/3,2.2,0),color10abff;
stickline(var1a,o,o+(c-o)/3,1.6,0),color10d0ff;
stickline(var1a,o,o+(c-o)/3,1,0),color10ffff;
stickline(var1a,o,o+(c-o)/3,0.3,0),color00ffff;}
aa:=(ref((((((((((((var2a or var3a) or var4a) or var5a) or var6a) or var7a) or
var8a) or var9a)or varaa) or varba) or varca) or varda),1) and vareaa);
{stickline(aa,o,o+(c-o)/3,4.3,0),color009900;
stickline(aa,o,o+(c-o)/3,3.2,0),color00aa00;
stickline(aa,o,o+(c-o)/3,2.4,0),color00bb00;
stickline(aa,o,o+(c-o)/3,1.7,0),color00cc00;
stickline(aa,o,o+(c-o)/3,1.1,0),color00dd00;
stickline(aa,o,o+(c-o)/3,0.5,0),color00ee00;
stickline(aa,o,o+(c-o)/3,0.2,0),color00ff00;}
a13:=ema(close,55);
a14:=ma(close,75);
a15:=ema(a14,3);
a16:=ema(a15,3);
a17:=(high + low) / 5;
a18:=(ma(a17,4)) - (ma(a17,34));
a19:=cross(a18,0);
a20:=cross(0,a18);
a21:=barslast(a19);
a22:=barslast(a20);
a23:=ref(a19,1);
a24:=ref(a20,1);
a25:=barslast(a23);
a26:=barslast(a24);
a27:=if((a25 < a26),(ref((hhv(high,2)),a25)),(ref((llv(low,2)),a26)));
a28:=(((ref(close,1)) <= (ref(a27,1))) and (close > a27)) and (a21 < a22);
a29:=(((ref(close,1)) >= (ref(a27,1))) and (close < a27)) and (a22 < a21);
a30:=a28 and ((count(a28,a21)) = 1);
a31:=a29 and ((count(a29,a22)) = 1);
a32:=a30 and ((ref(barslast(a31),1)) < (ref(barslast(a30),1)));
a33:=a31 and ((ref(barslast(a31),1)) > (ref(barslast(a30),1)));
drawtext(a32,sma2*0.99,'←末日抓妖'),coloryellow;
ac:=amount/(vol);
yy:=ma(ac,13);
lll:=(c-yy)/yy*100;
midc := ma(close,22);
upperc:= midc + 2*std(c,22);
lowerc:= midc - 2*std(c,22);
bba:=(c-lowerc)/(upperc-lowerc);
lifengcyc:=(ref(lll,1)<-15 and ref(bba,1)<0 and lll>ref(lll,1));
{stickline(lifengcyc,low*0.93,low*0.95,6,0)colorred;
stickline(lifengcyc>0,c,o,4,0),colorred;
stickline(lifengcyc>0,c,o,3.4,0),color1029ff;
stickline(lifengcyc>0,c,o,2.8,0),color1040ff;
stickline(lifengcyc>0,c,o,2.2,0),color1083ff;
stickline(lifengcyc>0,c,o,1.6,0),color10abff;
stickline(lifengcyc>0,c,o,1,0),color10d0ff;
stickline(lifengcyc>0,c,o,0.3,0),color10ffff;}
bs:=b2>ref(b2,1) and ref(b2<ref(b2,1),1);
drawicon(bs,l*0.98,1);
{bx:=b2<ref(b2,1) and ref(b2>ref(b2,1),1);
drawicon(bx,h*1.02,2);}
{}
hj_1:=8;
hj_2:=ref(high,10)=hhv(high,2*11);
hj_3:=backset(hj_2,10+1);
hj_4:=filter(hj_3,10) and high=hhv(high,11);
卖出:drawicon(hj_4,high*1.02,12);
hj_5:=ref(low,10)=llv(low,2*11);
hj_6:=backset(hj_5,11);
hj_7:=filter(hj_6,10) and low=llv(low,11);
买入:drawicon(hj_7,low*0.98,11);
hj_8:=hhv(high,60);
hj_9:=const(hj_8);
hj_10:=llv(low,60);
hj_11:=const(hj_10);
hj_12:=(close+high+low+open)/4;
hj_13:=low+(hj_12-low)+(close-low);
hj_14:=low+(close-hj_12);
hj_15:=low>ref(high,1);
hj_16:=high<ref(low,1);
hj_17:=low>ref(high,barslast(hj_15)+1);
hj_18:=low<=ref(high,barslast(hj_15)+1);
hj_19:=high<ref(low,barslast(hj_16)+1);
hj_20:=high>=ref(low,barslast(hj_16)+1);
hj_21:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*100;
hj_22:=sma(hj_21,3,1);
hj_23:=sma(hj_22,3,1);
hj_24:=3*hj_22-2*hj_23;
hj_25:=(close-llv(low,55))/(hhv(high,55)-llv(low,55))*100;
hj_26:=sma(hj_25,3,1);
hj_27:=sma(hj_26,3,1);
hj_28:=3*hj_26-2*hj_27;
hj_29:=if(cross(hj_28,hj_24),high,ref(high,barslast(cross(hj_28,hj_24))));
hj_30:=llv(high,30);
hj_31:=ref(high,hj_1)=hhv(high,2*hj_1+1);
hj_32:=ref(low,hj_1)=llv(low,2*hj_1+1);
hj_33:=backset(hj_31,hj_1+1);
hj_34:=backset(hj_32,hj_1+1);
hj_35:=filter(hj_33,hj_1) and high=hhv(high,hj_1+1);
hj_36:=filter(hj_34,hj_1) and low=llv(low,hj_1+1);
hj_37:=barslast(hj_35);
hj_38:=barslast(hj_36);
hj_39:=if(hj_35,currbarscount,0);
hj_40:=if(hj_36,currbarscount,0);
hj_41:=if(hj_37,ref(hj_39,hj_37),hj_39);
hj_42:=if(hj_38,ref(hj_40,hj_38),hj_40);
hj_43:=const(hj_41);
hj_44:=const(hj_42);
hj_45:=const(ref(high,hj_43-1));
hj_46:=hj_45;
hj_47:=const(ref(low,hj_44-1));
hj_48:=ref(hj_41,hj_37+1);
hj_49:=ref(hj_42,hj_38+1);
hj_50:=const(hj_48);
hj_51:=const(hj_49);
hj_52:=const(ref(high,hj_48-1));
hj_53:=hj_52;
hj_54:=const(ref(low,hj_49-1));
hj_55:=backset(islastbar,hj_43);
hj_56:=backset(islastbar,hj_44);
hj_57:=backset(islastbar,hj_48);
hj_58:=backset(islastbar,hj_49);
hj_59:=if(hj_47<=hj_54,hj_56,hj_58);
hj_60:=sum(hj_55,0);
hj_61:=sum(hj_59,0);
hj_62:=ref(hj_13,1);
hj_63:=ref(hj_14,1);
hj_64:=if(islastbar,hj_29,drawnull);
hj_65:=if(islastbar,hj_30,drawnull);
高点压力:=drawline(currbarscount=hj_50,high,currbarscount=hj_43,high,1),coloryellow,linethick2;
低点支撑:=drawline(currbarscount=hj_51,low,currbarscount=hj_44,low,1),coloryellow,linethick2;
hj_66:=const(max(max(max(hj_9,高点压力),hj_46),hj_53));
hj_67:=const(min(min(min(hj_11,hj_54),hj_47),低点支撑));
hj_68:=(高点压力+低点支撑)/2;
hj_69:=const((高点压力+低点支撑)/2);
hj_70:=if(hj_51<hj_50,hj_51,hj_50);
hj_71:=drawline(currbarscount=hj_70,hj_68,islastbar,hj_69,1);
hj_72:=intpart(3*hj_1/5);
hj_73:=ref(high,hj_72)=hhv(high,2*hj_72+1);
hj_74:=backset(hj_73,hj_72+1);
hj_75:=filter(hj_74,hj_72) and high=hhv(high,hj_72+1);
hj_76:=barslast(hj_75);
hj_77:=if(hj_75,currbarscount,0);
hj_78:=if(hj_76,ref(hj_77,hj_76),hj_77);
hj_79:=const(hj_78);
hj_80:=ref(hj_78,hj_76+1);
hj_81:=const(hj_80);
高点压力m:=drawline(currbarscount=hj_81,high,currbarscount=hj_79,high,1),colorred;
hj_82:=ref(low,hj_72)=llv(low,2*hj_72+1);
hj_83:=backset(hj_82,hj_72+1);
hj_84:=filter(hj_83,hj_72) and low=llv(low,hj_72+1);
hj_85:=barslast(hj_84);
hj_86:=if(hj_84,currbarscount,0);
hj_87:=if(hj_85,ref(hj_86,hj_85),hj_86);
hj_88:=const(hj_87);
hj_89:=ref(hj_87,hj_85+1);
hj_90:=const(hj_89);
低点支撑m:=drawline(currbarscount=hj_90,low,currbarscount=hj_88,low,1),colorred;
stickline(hj_57,hj_53,hj_53,2.5,1),colorwhite;
stickline(hj_55,hj_46,hj_46,2.3,1),coloryellow;
stickline(hj_58,hj_54,hj_54,0.5,1),colormagenta;
stickline(hj_56,hj_47,hj_47,0.5,1),colorcyan;
stickline(islastbar,hj_64,hj_64,120,0),colorwhite,linethick3;
stickline(islastbar,hj_65,hj_65,100,0),colormagenta,linethick3;
hj_91:=ma(ema(winner(close),3),40);
hj_92:=hj_91>ref(hj_91,4);
hj_93:=vol*5/sum(ref(vol,1),5)>1;
hj_94:=vol/capital*100>3;
hj_95:=ema(ema(close,9),9);
hj_96:=(hj_95-ref(hj_95,1))/ref(hj_95,1);
hj_97:=100*winner(close*0.95);
hj_98:=hj_92 and hj_93 and hj_94;
hj_99:=hj_98;
drawicon(cross(close,hj_53) and hj_99,low-0.2,5);
drawicon(cross(close,hj_46) and hj_99,low-0.8,5);
drawicon(cross(close,hj_54) and hj_99,low-0.6,5);
retnum:=tdxdll8(3,c,o,h);
taishan:=mod(intpart(retnum), 10)-8;
nian:=2000+intpart(retnum/320);
yue:=mod(intpart(fracpart(retnum)*100), 13);
ri:=intpart((mod(retnum, 320))/10);
lsoft:=intpart(fracpart(retnum)*100/13);
上一指标公式:通达信公式全能换手副图附实测帖图指标下载
下一指标公式:突破下线可建仓主图附有截图没有未来指标下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文通达信公式末日王者主图附有实效图指标下载仅供学习研究。