指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:主图指标详解 通达信通达信
zgd:=hhv(h,50);
zgd2:=const(zgd)*1.05;
zdd:=llv(l,50);
zdd2:=const(zdd)*0.95;
drawband(zgd2,rgb(100,100,100),zdd2,rgb(00,00,00));
gj:=(c+h+l+o)/4;
明日阻力:l+(gj-l)+(c-l);
明日支撑:l+(c-gj);
今日阻力:ref(明日阻力 , 1),nodraw;
今日支撑:ref(明日支撑 , 1),nodraw;
下档线:=(((close - llv(low,13)) / (hhv(high,13) - llv(low,13))) * 100);
rrrsv:=sma(下档线,3,1);
kkk:=sma(rrrsv,3,1);
ddddd:=((3 * rrrsv) - (2 * kkk));
jj12:=(((close - llv(low,55)) / (hhv(high,55) - llv(low,55))) * 100);
rsv24:=sma(jj12,3,1);
k24:=sma(rsv24,3,1);
d24:=((3 * rsv24) - (2 * k24));
压力2:=if(cross(d24,ddddd),high,ref(high,barslast(cross(d24,ddddd)))),colorffffff;
压力位:if(islastbar,压力2,drawnull),nodraw;
底部:=llv(high,30),color00ff00;
底部位:if(islastbar,底部,drawnull),nodraw;
aa:=ref(h,n)=hhv(h,2*n+1);
qy:=backset(aa,n+1);
cc:=filter(qy,n) and h=hhv(h,n+1);
ddd:barslast(cc),nodraw;
gdts:if(cc,currbarscount,0),nodraw;
dingbuts:if(ddd,ref(gdts,ddd),gdts),nodraw;
gdcs1:const(dingbuts),nodraw;
gdcs13:=const(ref(high,gdcs1-1));
dingbuts1:ref(dingbuts,ddd+1),nodraw;
gdcs2:=const(dingbuts1);
gdcs23:=const(ref(high,dingbuts1-1));
xg1:=backset(islastbar,gdcs1);
xg2:=backset(islastbar,dingbuts1);
高点压力:=drawline(currbarscount=gdcs2,h,currbarscount=gdcs1,h,1) ,colorblue,linethick1;
aa1:=ref(l,n)=llv(l,2*n+1);
qy1:=backset(aa1,n+1);
cc1:=filter(qy1,n) and l=llv(l,n+1);
dd1:=barslast(cc1);
ddts:=if(cc1,currbarscount,0);
ddts1:=if(dd1,ref(ddts,dd1),ddts);
ddcs1:=const(ddts1);
ddcs13:=const(ref(l,ddcs1-1));
ddts2:=ref(ddts1,dd1+1);
ddcs2:=const(ddts2);
ddcs23:=const(ref(l,ddts2-1));
xd1:=backset(islastbar,ddcs1);
xd2:=backset(islastbar,ddts2);
低点支撑:=drawline(currbarscount=ddcs2,l,currbarscount=ddcs1,l,1),colorblue,linethick1;
drawband(高点压力,rgb(00,00,100),低点支撑,rgb(00,00,00));
zgstar:=(高点压力+低点支撑)/2;
zgend:=const((高点压力+低点支撑)/2);
starday:=if(ddcs2<gdcs2,ddcs2,gdcs2);
中轨:drawline(currbarscount=starday,zgstar,islastbar,zgend,1),color555555,linethick1;
m:=intpart(3*n/5);
aaa:=ref(h,m)=hhv(h,2*m+1);
qyy:=backset(aaa,m+1);
ccc:=filter(qyy,m) and h=hhv(h,m+1);
dddd:=barslast(ccc),nodraw;
gdtss:=if(ccc,currbarscount,0),nodraw;
dingbutss:=if(dddd,ref(gdtss,dddd),gdtss),nodraw;
gdcs11:=const(dingbutss),nodraw;
dingbuts11:ref(dingbutss,dddd+1),nodraw;
gdcs22:=const(dingbuts11);
高点压力m:drawline(currbarscount=gdcs22,h,currbarscount=gdcs11,h,1),colorred,linethick1;
aa11:=ref(l,m)=llv(l,2*m+1);
qy11:=backset(aa11,m+1);
cc11:=filter(qy11,m) and l=llv(l,m+1);
dd11:=barslast(cc11);
ddtss:=if(cc11,currbarscount,0);
ddts11:=if(dd11,ref(ddtss,dd11),ddtss);
ddcs11:=const(ddts11);
ddts22:=ref(ddts11,dd11+1);
ddcs22:=const(ddts22);
低点支撑m:drawline(currbarscount=ddcs22,l,currbarscount=ddcs11,l,1) colorred,linethick1;
stickline(xg2,gdcs23,gdcs23,0.5,1),colorwhite,linethick3;
stickline(xg1,gdcs13,gdcs13,0.5,1),coloryellow,linethick3;
stickline(xd2,ddcs23,ddcs23,0.5,1),colormagenta,linethick3;
stickline(xd1,ddcs13,ddcs13,0.5,1),colorcyan,linethick3;
stickline(islastbar and c>=今日阻力,今日阻力,今日阻力,10,1),linethick2,color0000ff;
stickline(islastbar and c<今日阻力,今日阻力,今日阻力,10,1),linethick2,color00ff00;
stickline(islastbar and c>=今日支撑,今日支撑,今日支撑,10,1),linethick2,colorff00ff;
stickline(islastbar and c<今日支撑,今日支撑,今日支撑,10,1),linethick2,colorff8800;
stickline(islastbar ,压力位,压力位,120,0),linethick4,colorffffff;
stickline(islastbar ,底部位,底部位,100,0),linethick4,color00ff00;
ma1:ma(close,5);
ma2:ma(close,10);
ma3:ma(close,20);
ma4:ma(close,60);
drawkline(h,o,l,c);
>>>使用本站搜索工具可以找到更多“主图指标详解 通达信通达信”