{======================================================}
范围高a:=refdate(hhv(h,120),date)*1.05;
范围低a:=refdate(llv(l,120),date)*0.95;
ma5:ma(close,5),linethick2,colorred;
ma24:=ma(c,24),colorgreen,linethick2;
ma72:=ma(c,72),colorred,linethick2;
ma200:=if((ma(c,200)<=范围高a and ma(c,200)>=范围低a) or c>=ma(c,200),ma(c,200),drawnull),colorblue,linethick2;
{=======================仪表盘=========================}
主升浪:=islastbar and ma5>ma24 and ma24>ma72 and ma72>if(ma200=drawnull,0,ma200);
主浪回调:=islastbar and ma24>ma5 and ma5>ma72 and ma72>if(ma200=drawnull,0,ma200);
主浪深调:=islastbar and ma24>ma72 and ma72>ma5 and ma5>if(ma200=drawnull,0,ma200);
初升浪:=islastbar and if(ma200=drawnull,300,ma200)>max(ma24,ma72) and ma5>ma24 and ma24>ma72;
底部反弹:=islastbar and if(ma200=drawnull,300,ma200)>ma72 and ma72>ma24 and ma5>ma24;
探底阶段:=islastbar and if(ma200=drawnull,300,ma200)>ma72 and ma72>ma24 and ma24>ma5;
观望:=islastbar and if(ma200=drawnull,ma24>ma72 and c<ma72,ma72>ma200 and c<ma200);
有牛:=islastbar and if(ma200=drawnull,ma24<ma72 and c>=ma72,ma72<ma200 and c>=ma200);
放弃:=islastbar and if(ma200=drawnull,ma24<ma72 and c<ma72,ma72<ma200 and c<ma200);
drawgbk(显示仪表盘1=1 and 主升浪=0 and 主浪回调=0 and 主浪深调=0 and 初升浪=0 and 底部反弹=0 and 探底阶段=0 and 观望=0 and 有牛=0 and 放弃=0,0,0,0,'观望',0)color00bf00;
drawgbk(显示仪表盘1=1 and 主升浪,0,0,0,'主升浪',0)colorff00ff;
drawgbk(显示仪表盘1=1 and 主浪回调,0,0,0,'主浪回调',0)colorff8080;
drawgbk(显示仪表盘1=1 and 主浪深调,0,0,0,'主浪深调',0)color009500;
drawgbk(显示仪表盘1=1 and 初升浪,0,0,0,'初升浪',0)color00ffff;
drawgbk(显示仪表盘1=1 and 底部反弹,0,0,0,'底部反弹',0)colorffff00;
drawgbk(显示仪表盘1=1 and 探底阶段,0,0,0,'探底阶段',0);
drawgbk(显示仪表盘1=1 and 观望,0,0,0,'观望',0)colorffff00;
drawgbk(显示仪表盘1=1 and 有牛,0,0,0,'有牛',0)color00ffff;
drawgbk(显示仪表盘1=1 and 放弃,0,0,0,'放弃',0)color00bf00;
as:=(c*3+o+h+l)/6;
xj:=(as+0.618*ref(as,1)+0.382*ref(as,2)+0.236*ref(as,3)+0.146*ref(as,4))/2.382;
{回调认同}
hlx:=ema(hhv(xj,3),15);
llx:=ema(llv(xj,3),15);
ch:=cross(xj,hlx);cl:=cross(llx,xj);
chh:=barslast(ch);cll:=barslast(cl);
yf1:=(chh<cll or ch) and not(cl);
yf2:=(chh>cll or cl) and not(ch);
tf:=if(yf1,llx,hlx);
tfb:=(hlx+llx)/2;
xjk:=sma(ema(xj,3),3,1);
zwsh:=(hhv(xj,2)+hhv(xj,3)+hhv(xj,4)+hhv(xj,5))/4;
sh:=ema(zwsh,21);
zwsl:=(llv(xj,2)+llv(xj,3)+llv(xj,4)+llv(xj,5))/4;
sl:=ema(zwsl,21);
sch:=cross(xj,sh);scl:=cross(sl,xj);
shh:=barslast(sch);sll:=barslast(scl);
sf1:=(shh<sll or sch) and not(scl);
sf2:=(shh>sll or scl) and not(sch);
tfs:=if(sf1,sl,sh);
tfbs:=(sl+sh)/2;
{k线}
kx1:=(close>=open) and xj>=tfs;
kx2:=(close<open) and xj>=tfs;
kx3:=(close>=open) and xj<tfs;
kx4:=(close<open) and xj<tfs;
kx5:=((xj>=tfs and xj<tf)or (xj<tfs and xj>=tf)) and close>=open;
kx6:=((xj>=tfs and xj<tf)or (xj<tfs and xj>=tf)) and close<open;
{---------------------【右侧直效-图解模板】---------------------}
{回调认同}
drawband(tfb,rgb(125,50,50),tfs,rgb(169,169,169));
drawband(tfb,rgb(185,50,50),tf,rgb(00,100,50));
均价:=(high+low+open+close)/4;
分水岭: ma(3*均价-2*sma(均价,2,1),12),colorred,linethick2;
p:=1;
a01:=(c-llv(low,3))/(hhv(high,3)-llv(low,3));
a11:=sma(a01,2,1);
a21:=sma(a11,2,1);
a31:=3*a11-2*a21 ;
a41:=2*a31-0.5;
乾坤线:c*(1-(a41-a21)/15),,colorff00ff,linethick1;
a:=(l+h)/2;
股价重心:ma(a,5),colorffffff,nodraw;
var2:=(h+l+o+2*c)/5;
chh低吸线:=ema(slope(var2,21)*20+var2,55);
bb:=llv(h,1);
逃顶线:forcast(forcast(bb,15),15), ,color00ff00,linethick2;
抄底线:=forcast(forcast(bb,25),25), colorred,linethick2;
chh低吸线2:=if(slope(逃顶线,2)>0,chh低吸线,c),colorwhite;
做多趋势:=if(均价>分水岭,均价,分水岭),coloryellow;
支撑: reverse(做多趋势)+2*分水岭,coloryellow,linethick2;
空仓:if(close<sar(4,2,10),sar(4,2,10),drawnull),circledot,color889999 ;
多仓:if(close>sar(4,2,10),sar(4,2,10),drawnull),circledot,colorred ;
varr1:=close>ref(close,1) and close>ref(close,2);
varr2:=ref(varr1,1) and close<=ref(close,1) and close>=ref(close,2);
varr3:=ref(varr2,1) and close>=ref(close,1) and close<=ref(close,2);
var4:=ref(varr3,1) and close<=ref(close,1) and close>=ref(close,2);
var5:=ref(var4,1) and close>=ref(close,1) and close<=ref(close,2);
var6:=ref(var5,1) and close<=ref(close,1) and close>=ref(close,2);
var7:=ref(var6,1) and close>=ref(close,1) and close<=ref(close,2);
var8:=ref(var7,1) and close<=ref(close,1) and close>=ref(close,2);
var9:=ref(var8,1) and close>=ref(close,1) and close<=ref(close,2);
vara:=ref(var9,1) and close<=ref(close,1) and close>=ref(close,2);
varb:=ref(vara,1) and close>=ref(close,1) and close<=ref(close,2);
varc:=ref(varb,1) and close<=ref(close,1) and close>=ref(close,2);
vard:=close<ref(close,1) and close<ref(close,2);
vare:=ref(vard,1) and close>=ref(close,1) and close<=ref(close,2);
varf:=ref(vare,1) and close<=ref(close,1) and close>=ref(close,2);
var10:=ref(varf,1) and close>=ref(close,1) and close<=ref(close,2);
var11:=ref(var10,1) and close<=ref(close,1) and close>=ref(close,2);
var12:=ref(var11,1) and close>=ref(close,1) and close<=ref(close,2);
var13:=ref(var12,1) and close<=ref(close,1) and close>=ref(close,2);
var14:=ref(var13,1) and close>=ref(close,1) and close<=ref(close,2);
var15:=ref(var14,1) and close<=ref(close,1) and close>=ref(close,2);
var16:=ref(var15,1) and close>=ref(close,1) and close<=ref(close,2);
var17:=ref(var16,1) and close<=ref(close,1) and close>=ref(close,2);
var18:=ref(var17,1) and close>=ref(close,1) and close<=ref(close,2);
var19:=ref(vard or vare or varf or var10 or var11 or var12 or var13 or
var14 or var15 or var16 or var17 or var18,1) and varr1;
stickline(var19,l*0.989,l*0.98,2,0),colorred;
var1a:=ref(varr1 or varr2 or varr3 or var4 or var5 or var6 or var7 or
var8 or var9 or vara or varb or varc,1) and vard;
stickline(var1a,h*1.01,h,2,0),,colorffffff{98fd};
vaqr1:=(100 - ((90 * (hhv(high,21) - close)) / (hhv(high,21) - llv(low,21))));vaqr2:=(100 - ((90 * (hhv(high,21) - close)) / (hhv(high,21) - llv(low,21))));vaqr3:=(100 - ma(((100 * (hhv(high,6) - close)) / (hhv(high,6) - llv(low,6))),34));
drawicon(cross(vaqr2,ma(vaqr3,6)),(low * 0.998),1);
drawicon(cross(ma(vaqr3,6),vaqr1),(high * 1.013),2);
drawtext(cross(vaqr2,ma(vaqr3,6)),(low * 0.984),'↖买 '),color4440ff;
drawtext(cross(ma(vaqr3,6),vaqr1),(high * 1.02),'卖 '),colorffff34;
{ }
drawkline(h,o,l,c);
ff:=ema(close,3);
ma15:=ema(close,21);
drawtext(cross(ff,ma15),(low * 0.99),'建仓'),coloryellow;
if(分水岭<ref(分水岭,1), 分水岭,drawnull),linethick2,,color00ff00;
drawrectrel(0,500,147,999.4,if(120,rgb(10,0,0),0));
超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;
testskip(not(超b or 大b or 中b or 小b or 超s or 大s or 中s or 小s)!=0);
大宗进:=(超b)+(大b),nodraw;
大宗出:=(超s)+(大s),nodraw;
非大宗进:=(中b)+(小b),nodraw;
非大宗出:=(中s)+(小s),nodraw;
大宗进限制:=if((超b+大b)=0,0,大宗进);
大宗出限制:=if((超s+大s)=0,0,大宗出);
非大宗进限制:=if(中b+小b=0,0,非大宗进);
非大宗出限制:=if(中s+小s=0,0,非大宗出);
主力净流入:=(超b+大b)-(超s+大s),colorred,nodraw;
散户净流入:=(中b+小b)-(中s+小s),colorred,nodraw;
主力强势:=大宗进>大宗出*3;
净流入:=((超b+大b+中b+小b)-(超s+大s+中s+小s));
连续流入:every(净流入>0,2),nodraw,colorffffff;
涨停:dynainfo(3)*1.1,colorred,nodraw;
跌停:dynainfo(3)*0.9,colorgreen,nodraw;
{dde显示}
ddx:=(largeintrdvol-largeouttrdvol)*1000/finance(7);
ddy:=if(tradenum>0,(tradeoutnum-tradeinnum)*100/tradenum,0);
ddz:=if(tradenum>0,(largetrdinnum-largetrdoutnum)/tradenum*100,0);
drawrectrel(150,500,192,540,if(const(ddx)>0,rgb(255,0,0),rgb(0,50,0)));
drawrectrel(150,545,192,585,if(const(ddy)>0,rgb(255,0,0),rgb(0,50,0)));
drawrectrel(150,590,192,630,if(const(ddz)>0,rgb(255,0,0),rgb(0,50,0)));
drawtext_fix(1,0.153,0.500,0,strcat('ddx:',con2str(ddx,1))),coloryellow,colorwhite;
drawtext_fix(1,0.153,0.548,0,strcat('ddy:',con2str(ddy,1))),coloryellow,colorwhite;
drawtext_fix(1,0.153,0.596,0,strcat('ddz:',con2str(ddz,1))),coloryellow,colorwhite;
大单流入:=(超b+大b)/(超b+大b+超s+大s)*100,nodraw;
大单流入限制:=if((超b+大b+超s+大s)=0,0,大单流入);
大单流出比:=(超s+大s)/(超b+大b+超s+大s)*100,nodraw;
大单流出限制:=if((超b+大b+超s+大s)=0,0,大单流出比);
总流入比:=(超b+大b+中b+小b)/(超b+大b+中b+小b+超s+大s+中s+小s)*100,nodraw;
总流出比:=(超s+大s+中s+小s)/(超b+大b+中b+小b+超s+大s+中s+小s)*100,nodraw;
成交总量:=(超b+大b+中b+小b+超s+大s+中s+小s),nodraw;
机构参与度:=(超b+超s+大b+大s)/成交总量*100,coloryellow,nodraw;
大单强度:=(超b+大b-超s-大s)/成交总量*100,coloryellow,nodraw;
大单强度限制:=if(大单强度=0,-100,大单强度);
大单强度比:=if(大单强度>=0,(大单强度限制+100)/2,100-abs((大单强度限制-100)/2)),nodraw;
超单强度:=(超b-超s)/(超b+超s)*100,coloryellow,nodraw;
超单强度限制:=if(超单强度=0,-100,超单强度);
超单强度比:=if(超单强度>0,(超单强度限制+100)/2,if(超单强度<0,100-abs((超单强度限制-100)/2),0)),nodraw;
dazhiv:=const(max(abs(大宗进),max(abs(大宗出),max(abs(非大宗进),abs(非大宗出))))),nodraw;
drawrectrel(0,const(930-(abs(大宗进)*250/dazhiv)),35,950,if(const(大宗进>0),rgb(255,0,0),rgb(23,125,255)));
drawrectrel(37,const(930-(abs(大宗出)*250/dazhiv)),72,950,if(const(大宗出>0),rgb(23,125,255),rgb(255,0,0)));
drawrectrel(75,const(930-(abs(非大宗进)*250/dazhiv)),110,950,if(const(非大宗进>0),rgb(255,0,0),rgb(23,125,255)));
drawrectrel(112,const(930-(abs(非大宗出)*250/dazhiv)),147,950,if(const(非大宗出>0),rgb(23,125,255),rgb(255,0,0)));
drawrectrel(150,const(940-(abs(净流入)*250/dazhiv))-20,190,950,if(const(净流入>0),rgb(200,0,0),rgb(0,125,50)));
drawtext_fix(currbarscount=1,0.0001,0.9,0,strcat('',con2str(大宗进/1,0))),coloryellow;
drawtext_fix(currbarscount=1,0.036,0.9,0,strcat('',con2str(大宗出/1,0))),coloryellow;
drawtext_fix(currbarscount=1,0.074,0.9,0,strcat('',con2str(非大宗进/1,0))),coloryellow;
drawtext_fix(currbarscount=1,0.111,0.9,0,strcat('',con2str(非大宗出/1,0))),coloryellow;
drawtext_fix(currbarscount=1,0.150,0.9,0,strcat('',con2str(净流入/1,0))),coloryellow;
drawtext_fix(1,0.000,0.99,0,strcat(strcat('主力 ',con2str(主力净流入,0)),'万')),colormagenta;
drawtext_fix(1,0.078,0.99,0,strcat(strcat('散户 ',con2str(散户净流入,0)),'万')),colorcyan;
drawtext_fix(currbarscount=1,0.145,0.99,0,'净流入:(万)'),coloryellow;
主力买力度:=largeintrdvol*1000/vol;{ }
主力卖力度:=largeouttrdvol*1000/vol;
aad:=const(max(abs(主力买力度),abs(主力卖力度)))*4,nodraw;
drawrectrel(0,515,const(abs(主力买力度)*560/aad),568,if(const(主力买力度)>0,rgb(255,0,0),rgb(0,50,0)));
drawrectrel(0,570,const(abs(主力卖力度)*560/aad),623,if(const(主力卖力度)>0,rgb(0,50,0),rgb(255,0,0)));
drawtext_fix(1,0,0.524,0,strcat('主买力度:',con2str(主力买力度,0))),coloryellow;
drawtext_fix(1,0,0.576,0,strcat('主卖力度:',con2str(主力卖力度,0))),coloryellow;
上一指标公式:底买 通达信
下一指标公式:拉升资金指标详解 通达信拉升
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文魔法乾坤 通达信乾坤仅供学习研究。