对每一交易日求:
偏移值=(收盘价-最低价)-(最高价-收盘价)
振幅 =最高价-最低价
用偏移值除以振幅,再乘以成交量,得一值。
将该值从上市第一天起开始累加,得ad值。 sum(((close-low)-(h
igh-close))/(high-low)*vol,0);
pt := ref(high,1)-ref(low,1);
cdp : (high + low + close)/3;
zero : 0;
al:=(c+l+h)/3;
ao:=sma(al,5,1)-sma(al,13,1);
bbd:(ao-sma(ao, 3,1))*100;
bbda:sma(bbd,5,2);
var1:=bbd;
var2:=bbda;;
var11:=if(date<1091230 and date>900101,1,0);
bbd1:=if(bbd>=ref(bbd,1)*var11,bbd,drawnull);
bbd2:=if(bbd<ref(bbd,1)*var11,bbd,drawnull);
stickline(bbd1,0,bbd,3,0);
stickline(bbd1,0,bbd,1.5,0);
stickline(bbd1,0,bbd,1,0);
stickline(bbd1,0,bbd,0.5,0);
stickline(bbd2,0,bbd,3,0);
stickline(bbd2,0,bbd,1.5,0);
stickline(bbd2,0,bbd,1,0);
stickline(bbd2,0,bbd,0.5,0);
{sv1:=barslast(ref(cross(var1,var2),1));
sv1a:=ref(close,sv1+1)>close and var1>ref(var1,sv1+1) and
cross(var1,var2);
bbd:if(sv1a,var2,drawnull);
drawtext(sv1a,var2,'');
sv2:=barslast(ref(cross(var2,var1),1));
sv2a:=ref(close,sv2+1)<close and ref(var1,sv2+1)>var1 and cross(var2,var1);
bbd:if(sv2a,var2,drawnull);}
drawicon(((((llv(bbd,4) > 0) and (bbd < ref(bbd,1)))
and (ref(bbd,1) > ref(bbd,2))) and (ref(bbd,2) > ref(bbd,3)))
,bbd,2);
drawicon(((((hhv(bbd,4) < 0) and (bbd > ref(bbd,1)))
and (ref(bbd,1) < ref(bbd,2))) and (ref(bbd,2) <
ref(bbd,3))),bbd,1);
a=(zdmr[-1]+bdmr[-1]);
b=(zdmc[-1]+bdmc[-1]);
stickline(大单净额>0,0,大单净额,10,0);
stickline(大单净额<0,0,大单净额,10,0);
bbd:sum(大单净额,3);
bbd:sum(大单净额,5);
bbd:sum(大单净额,10);
a=(zdmr[-1]+bdmr[-1]);
b=(zdmc[-1]+bdmc[-1]);
a1=sum(a,-1);
b1=-sum(b,-1);
n:=22;jj:=(high+low+close)/3;
qj0:=vol/if(high=low,4,high-low);
qj1:=if(capital=0,qj0*(jj-min(close,open)),qj0*if(high=low,1,(min(open,close)-low)));
qj2:=if(capital=0,qj0*(min(open,close)-low),qj0*if(high=low,1,(jj-min(close,open))));
qj3:=if(capital=0,qj0*(high-max(open,close)),qj0*if(high=low,1,(high-max(open,close))));
qj4:=if(capital=0,qj0*(max(close,open)-jj),qj0*if(high=low,1,(max(close,open)-jj)));
ddy:((qj2+qj4)-(qj1+qj3))/if(capital=0,1000000,10000),color00dd00,linethick;
dy:=ma(ddy,5)*n;
stickline(ddy<0,0,ddy,3,0),colorff8800;
stickline(ddy<0,0,ddy,2.5,0),colorffaa00;
stickline(ddy<0,0,ddy,1.5,0),colorffcc00;
stickline(ddy<0,0,ddy,1,0),colorffee00;
stickline(ddy>0,0,ddy,3,0),color880088;
stickline(ddy>0,0,ddy,2.5,0),coloraa00aa;
stickline(ddy>0,0,ddy,1.5,0),colorcc00cc;
stickline(ddy>0,0,ddy,1,0),coloree00ee;
ddy1:sma(dy,3,1),colorffffff;
ddy2:sma(ddy1,3,1),color00ffff;
ddy3:ema(ddy2,5),colorff00ff;;
jj:=(high+low+close)/3;qj0:=vol/if(high=low,4,high-low);
qj1:=if(capital=0,qj0*(jj-min(close,open)),qj0*if(high=low,1,(min(open,close)-low)));
qj2:=if(capital=0,qj0*(min(open,close)-low),qj0*if(high=low,1,(jj-min(close,open))));
qj3:=if(capital=0,qj0*(high-max(open,close)),qj0*if(high=low,1,(high-max(open,close))));
qj4:=if(capital=0,qj0*(max(close,open)-jj),qj0*if(high=low,1,(max(close,open)-jj)));
qj3:=qj1+qj2;qj4:=qj2+qj3;dd:=(qj3-qj4)/(qj3+qj4)*100;
ddz:dd*17,linethick1;
ddz1:dd*13,linethick1;
drawband(ddz1,rgb(0,24,224),ddz,rgb(255,0,0));aa:=vol/((high-low)*2-abs(close-open));
var1:=ema(vol/ag,21)*13;
var2:=100-100/(1+var1);
主力能量: var2/2;
zero : 0;
al:=(c+l+h)/3;
ao:=sma(al,5,1)-sma(al,13,1);
bbd:(ao-sma(ao, 3,1))*100,colorffccff,nodraw;
bbda:sma(bbd,5,2),colorred,linethick0;
rsv1:=bbd;
rsv2:=bbda;;
var11:=if(date<1091230 and date>900101,1,0);
bbd1:=if(bbd>=ref(bbd,1)*var11,bbd,drawnull);
bbd2:=if(bbd<ref(bbd,1)*var11,bbd,drawnull);
stickline(bbd1,0,bbd,3,0),color000088;
stickline(bbd1,0,bbd,1.5,0),color0000aa;
stickline(bbd1,0,bbd,1,0),color0000cc;
stickline(bbd1,0,bbd,0.5,0),color0000ff;
stickline(bbd2,0,bbd,3,0),color888800;
stickline(bbd2,0,bbd,1.5,0),coloraaaa00;
stickline(bbd2,0,bbd,1,0),colorcccc00;
stickline(bbd2,0,bbd,0.5,0),colorffff00;
{sv1:=barslast(ref(cross(rsv1,rsv2),1));
sv1a:=ref(close,sv1+1)>close and rsv1>ref(rsv1,sv1+1) and
cross(rsv1,rsv2);
上涨bbd:if(sv1a,rsv2,drawnull),colorred;
drawtext(sv1a,rsv2,'─b底背'),color0033ff;
sv2:=barslast(ref(cross(rsv2,rsv1),1));
sv2a:=ref(close,sv2+1)<close and ref(rsv1,sv2+1)>rsv1 and cross(rsv2,rsv1);
下跌bbd:if(sv2a,rsv2,drawnull),colorffff00;}
drawicon(((((llv(bbd,4) > 0) and (bbd < ref(bbd,1)))
and (ref(bbd,1) > ref(bbd,2))) and (ref(bbd,2) > ref(bbd,3)))
,bbd,2);
drawicon(((((hhv(bbd,4) < 0) and (bbd > ref(bbd,1)))
and (ref(bbd,1) < ref(bbd,2))) and (ref(bbd,2) <
ref(bbd,3))),bbd,1);
a=(zdmr[-1]+bdmr[-1]);
b=(zdmc[-1]+bdmc[-1]);
stickline(大单净额>0,0,大单净额,10,0),color0000ff;
stickline(大单净额<0,0,大单净额,10,0),color00ff00;
n:=22;jj:=(high+low+close)/3;
qj0:=vol/if(high=low,4,high-low);
qj1:=if(capital=0,qj0*(jj-min(close,open)),qj0*if(high=low,1,(min(open,close)-low)));
qj2:=if(capital=0,qj0*(min(open,close)-low),qj0*if(high=low,1,(jj-min(close,open))));
qj3:=if(capital=0,qj0*(high-max(open,close)),qj0*if(high=low,1,(high-max(open,close))));
qj4:=if(capital=0,qj0*(max(close,open)-jj),qj0*if(high=low,1,(max(close,open)-jj)));
ddy:((qj2+qj4)-(qj1+qj3))/if(capital=0,1000000,10000),color00dd00,linethick;
dy:=ma(ddy,5)*n;
stickline(ddy<0,0,ddy,3,0),colorff8800;
stickline(ddy<0,0,ddy,2.5,0),colorffaa00;
stickline(ddy<0,0,ddy,1.5,0),colorffcc00;
stickline(ddy<0,0,ddy,1,0),colorffee00;
stickline(ddy>0,0,ddy,3,0),color880088;
stickline(ddy>0,0,ddy,2.5,0),coloraa00aa;
stickline(ddy>0,0,ddy,1.5,0),colorcc00cc;
stickline(ddy>0,0,ddy,1,0),coloree00ee;
ddy1:sma(dy,3,1),colorffffff;
ddy2:sma(ddy1,3,1),color00ffff;
ddy3:ema(ddy2,5),colorff00ff;;
jj:=(high+low+close)/3;qj0:=vol/if(high=low,4,high-low);
qj1:=if(capital=0,qj0*(jj-min(close,open)),qj0*if(high=low,1,(min(open,close)-low)));
qj2:=if(capital=0,qj0*(min(open,close)-low),qj0*if(high=low,1,(jj-min(close,open))));
qj3:=if(capital=0,qj0*(high-max(open,close)),qj0*if(high=low,1,(high-max(open,close))));
qj4:=if(capital=0,qj0*(max(close,open)-jj),qj0*if(high=low,1,(max(close,open)-jj)));
qj5:=qj1+qj2;qj6:=qj3+qj4;dd:=(qj5-qj6)/(qj5+qj6)*100;
ddz:dd*17,linethick1;
ddz1:dd*13,linethick1;
drawband(ddz1,rgb(0,24,224),ddz,rgb(255,0,0));aa:=vol/((high-low)*2-abs(close-open));
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文路指标公式详解 同花顺仅供学习研究。