指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:支撑与压力指标公式详解 通达信压力
支撑与压力
{ts:350 n:95填写在公式编辑器上面空格里}
da1:=if(ts>totalbarscount,totalbarscount,ts);
da:=if(currbarscount>da1,0,da1);
hi:=refdate(hhv(h,da),date);{最高价}
lo:=refdate(llv(l,da),date);
c1:=if(currbarscount<=da,c,drawnull);
gz:=exp(ln(hi/lo)/15); {对数格值}
lh1:=sum(if(c1>=(hi/gz),v,0),da);
lh2:=sum(if(c1>=(hi/pow(gz,2)) and c1<(hi/gz),v,0),da);
lh3:=sum(if(c1>=(hi/pow(gz,3)) and c1<(hi/pow(gz,2)),v,0),da);
lh4:=sum(if(c1>=(hi/pow(gz,4)) and c1<(hi/pow(gz,3)),v,0),da);
lh5:=sum(if(c1>=(hi/pow(gz,5)) and c1<(hi/pow(gz,4)),v,0),da);
lh6:=sum(if(c1>=(hi/pow(gz,6)) and c1<(hi/pow(gz,5)),v,0),da);
lh7:=sum(if(c1>=(hi/pow(gz,7)) and c1<(hi/pow(gz,6)),v,0),da);
lh8:=sum(if(c1>=(hi/pow(gz,8)) and c1<(hi/pow(gz,7)),v,0),da);
lh9:=sum(if(c1>=(hi/pow(gz,9)) and c1<lo*pow(gz,7),v,0),da);
lh10:=sum(if(c1>=(lo*pow(gz,5)) and c1<lo*pow(gz,6),v,0),da);
lh11:=sum(if(c1>=(lo*pow(gz,4)) and c1<lo*pow(gz,5),v,0),da);
lh12:=sum(if(c1>=(lo*pow(gz,3)) and c1<lo*pow(gz,4),v,0),da);
lh13:=sum(if(c1>=(lo*pow(gz,2)) and c1<lo*pow(gz,3),v,0),da);
lh14:=sum(if(c1>=(lo*gz) and c1<lo*pow(gz,2),v,0),da);
lh15:=sum(if(c1>=lo and c1<lo*gz,v,0),da);
l1:=refdate(hhv(lh1,da),date);
l2:=refdate(hhv(lh2,da),date);
l3:=refdate(hhv(lh3,da),date);
l4:=refdate(hhv(lh4,da),date);
l5:=refdate(hhv(lh5,da),date);
l6:=refdate(hhv(lh6,da),date);
l7:=refdate(hhv(lh7,da),date);
l8:=refdate(hhv(lh8,da),date);
l9:=refdate(hhv(lh9,da),date);
l10:=refdate(hhv(lh10,da),date);
l11:=refdate(hhv(lh11,da),date);
l12:=refdate(hhv(lh12,da),date);
l13:=refdate(hhv(lh13,da),date);
l14:=refdate(hhv(lh14,da),date);
l15:=refdate(hhv(lh15,da),date);
ss:=(l1+l2+l3+l4+l5+l6+l7+l8+l9+l10+l11+l12+l13+l14+l15);
stickline(ceiling(da*l1/ss)*3>=currbarscount ,hi*n/100,hi/gz,5,0)colorgray;
stickline(ceiling(da*l2/ss)*3>=currbarscount ,hi/pow(gz,1)*n/100,hi/pow(gz,2),5,0)colorgray;
stickline(ceiling(da*l3/ss)*3>=currbarscount ,hi/pow(gz,2)*n/100,hi/pow(gz,3),5,0)colorgray;
stickline(ceiling(da*l4/ss)*3>=currbarscount ,hi/pow(gz,3)*n/100,hi/pow(gz,4),5,0)colorgray;
stickline(ceiling(da*l5/ss)*3>=currbarscount ,hi/pow(gz,4)*n/100,hi/pow(gz,5),5,0)colorgray;
stickline(ceiling(da*l6/ss)*3>=currbarscount ,hi/pow(gz,5)*n/100,hi/pow(gz,6),5,0)colorgray;
stickline(ceiling(da*l7/ss)*3>=currbarscount ,hi/pow(gz,6)*n/100,hi/pow(gz,7),5,0)colorgray;
stickline(ceiling(da*l8/ss)*3>=currbarscount ,lo*pow(gz,7),lo*pow(gz,8)*n/100,5,0)colorgray;
stickline(ceiling(da*l9/ss)*3>=currbarscount ,lo*pow(gz,6),lo*pow(gz,7)*n/100,5,0)colorgray;
stickline(ceiling(da*l10/ss)*3>=currbarscount ,lo*pow(gz,5),lo*pow(gz,6)*n/100,5,0)colorgray;
stickline(ceiling(da*l11/ss)*3>=currbarscount ,lo*pow(gz,4),lo*pow(gz,5)*n/100,5,0)colorgray;
stickline(ceiling(da*l12/ss)*3>=currbarscount ,lo*pow(gz,3),lo*pow(gz,4)*n/100,5,0)colorgray;
stickline(ceiling(da*l13/ss)*3>=currbarscount ,lo*pow(gz,2),lo*pow(gz,3)*n/100,5,0)colorgray;
stickline(ceiling(da*l14/ss)*3>=currbarscount ,lo*pow(gz,1),lo*pow(gz,2)*n/100,5,0)colorgray;
stickline(ceiling(da*l15/ss)*3>=currbarscount ,lo,lo*pow(gz,1)*n/100,5,0),colorgray;
drawkline(high,open,low,close);
五:ma(c,5);
>>>使用本站搜索工具可以找到更多“支撑与压力指标公式详解 通达信压力”