指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:江恩划线五合一懒人主图公式 飞狐懒人五合一指标 源码
江恩划线五合一懒人主图
input:n(10,1,88);
v1:=islastbar;
v2:=ref(h,n)=hhv(h,2*n+1);
v3:=filter(v2,n);
v4:=backset(v3,n+1);
v5:=filter(v4,n);
v6:=v5 or v1;
v7:=ref(l,n)=llv(l,2*n+1);
v8:=filter(v7,n);
v9:=backset(v8,n+1);
va:=filter(v9,n);
vb:=va and not(v5);
vc:=backset(v6,ref(barslast(vb),1)+1);
vd:=vc>ref(vc,1);
ve:=backset(vd,2);
vf:=ve>ref(ve,1);
v10:=backset(vf and count(v6,ref(barslast(vb),1)+2)=0,ref(barslast(vb),1)+2);
v11:=v10>ref(v10,1);
v12:=backset(v11 and count(v6,ref(barslast(vb),1)+2)=0,ref(barslast(vb),1)+2);
v13:=v12>ref(v12,1);
v14:=if(v6,count(vb,ref(barslast(v6),1)+1),0);
v15:=if(v14=1 and v6,barslast(vf),0);
v16:=if(v6 and ref(l,barslast(vf))>=ref(l,barslast(v11)),barslast(v11),barslast(vf));
v17:=if(v14=2 and v6,v16,0);
v18:=if(v14>=3 and v6,if(v6 and ref(l,v16)>=ref(l,barslast(v13)),barslast(v13),v16),0);
v19:=v15+v17+v18;
v1a:=backset(v6,v19);
v1b:=v1a>ref(v1a,1);
v1c:=backset(v1b,2);
v1d:=v1c>ref(v1c,1);
v1e:=v1d or v1;
v1f:=backset(v1e,ref(barslast(v6),1)+1);
v20:=v1f>ref(v1f,1);
v21:=backset(v20,2);
v22:=v21>ref(v21,1);
v23:=backset(v22 and count(v1e,ref(barslast(v6),1)+2)=0,ref(barslast(v6),1)+2);
v24:=v23>ref(v23,1);
v25:=backset(v24 and count(v1e,ref(barslast(v6),1)+2)=0,ref(barslast(v6),1)+2);
v26:=v25>ref(v25,1);
v27:=if(v1e,count(v5,ref(barslast(v1e),1)+1),0);
v28:=if(v27=1 and v1e,barslast(v22),0);
v29:=if(v1e and ref(h,barslast(v22))<=ref(h,barslast(v24)),barslast(v24),barslast(v22));
v2a:=if(v27=2 and v1e,v29,0);
v2b:=if(v27>=3 and v1e,if(v1e and ref(h,v29)<=ref(h,barslast(v26)),barslast(v26),v29),0);
v2c:=v28+v2a+v2b;
v2d:=backset(v1e,v2c);
v2e:=v2d>ref(v2d,1);
v2f:=backset(v2e,2);
v30:=v2f>ref(v2f,1);
drawline(v1d,l,v30,h,0);
drawline(v30,h,v1d,l,0);
v31:=backset(v1,barslast(v1d)+1);
v32:=v31>ref(v31,1);
v33:=backset(v1,barslast(v30)+1);
v34:=v33>ref(v33,1);
v35:=if(barslast(v32)<barslast(v34),v32,v34);
v36:=if(barslast(v32)<barslast(v34),l,h);
drawline(v35,v36,v1,c,0);
v37:=backset(v1,barslast(v1d)+1);
v38:=v37>ref(v37,1);
v39:=backset(v38,ref(barslast(v1d),1)+2);
v3a:=v39>ref(v39,1);
drawline(v3a,l,v38,l,1);
v3b:=backset(v1,barslast(v30)+1);
v3c:=v3b>ref(v3b,1);
v3d:=backset(v3c,ref(barslast(v30),1)+2);
v3e:=v3d>ref(v3d,1);
drawline(v3e,h,v3c,h,1);
前一低: ref(l,barslast(v38)),colorccff99,linethick2;
前二低: ref(l,barslast(v3a)),colormagenta,linethick2;
前一高: ref(h,barslast(v3c)),colorccff99,linethick2;
前二高: ref(h,barslast(v3e)),colormagenta,linethick2;
{平常常用的支撑压力线}
rsv:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:=3*k-2*d;
rsv12:=(close-llv(low,34))/(hhv(high,34)-llv(low,34))*100;
k12:=sma(rsv12,3,1);
d12:=sma(k12,3,1);
j12:=3*k12-2*d12;
rsv24:=(close-llv(low,55))/(hhv(high,55)-llv(low,55))*100;
k24:=sma(rsv24,3,1);
d24:=sma(k24,3,1);
j24:=3*k24-2*d24;
压力位:if(cross(j24,j),h,ref(h,barslast(cross(j24,j)))),colorred,linethick2;
支撑位:if(cross(j,j24),l,ref(l,barslast(cross(j,j24)))),color77aaff,,linethick2;
{超短压力线}
stickline(close<open and ref(close,1)>ref(open,1),ref(close,1),ref(close,1),20,0),colorffffff;
{支撑压力}
a1:=backset(ref(h,2)=hhv(h,5),3);
a2:=backset(ref(l,2)=llv(l,5),3);
a3:=cross(a1,0.9);
a4:=cross(a2,0.9);
上沿:ref(h,barslast(a3)),pointdot,colorff8918;
stickline(c,ref(h,barslast(a3)),ref(h,barslast(a3)),5,1),colorff8918;
下沿:ref(l,barslast(a4)),pointdot,colormagenta;
stickline(c,ref(l,barslast(a4)),ref(l,barslast(a4)),5,1),colormagenta;
{今日收盘价向后划线}
stickline(c<>0 and islastbar=1,c,c,1000,1);
m20:ma(close,20);
>>>使用本站搜索工具可以找到更多“江恩划线五合一懒人主图公式 飞狐懒人五合一指标 源码”