有没有大神帮解决下,这个指标是哪里编辑错了吗
k:"kdj.k",linethick,COLORWHITE;d:"kdj.d",linethick0,COLORYELLOW;
r1:"rsi.rsi1",linethick0,ColorC080FF;
r2:"rsi.rsi2",linethick0,ColorFF8080;
r3:"rsi.rsi3",linethick0,Color87F8F4;
f:"macd.diff",linethick0,Color72C072;
a:"macd.dea",linethick0,ColorE98210;
m:"macd.macd",linethick0,COLORWHITE;
{以下界说叠加区间(在这里是可见K线的范围)}
q:=SYSPARAM(3)-SYSPARAM(2);
p:=SYSPARAM(3);
{以下盘算叠加比和叠加平移量}
{1、叠加字段高度}
kh:=hhv(h,q);
kL:=LLv(L,q);
dh:=hhv(max(k,d),q);
dL:=LLv(min(k,d),q);
mh:=hhv(max(f,a),q);
mL:=LLv(max(f,a),q);
rh:=hhv(max(max(r1,r2),r3),q);
rL:=LLv(min(min(r1,r2),r3),q);
{2、叠加比}
bd:=(kh-kL)/(dh-dL)/3;
bm:=(kh-kL)/(mh-mL)/3;
br:=(kh-kL)/(rh-rL)/3;
{3、叠加平移量}
wk:=(kh-kL)/3;
wd:=(kh+kL-(dh+dL)*bd)/2-wk;
wm:=(kh+kL-(mh+mL)*bm)/2;
wr:=(kh+kL-(rh+rL)*br)/2+wk;
{以下画叠加线}
PARTLINE(1,k*bd+wd),COLORWHITE;
PARTLINE(1,d*bd+wd)COLORYELLOW;
PARTLINE(1,r1*br+wr),ColorC080FF;
PARTLINE(1,r2*br+wr),ColorFF8080;
PARTLINE(1,r3*br+wr),Color87F8F4;
PARTLINE(1,f*bm+wm),Color72C072;
PARTLINE(1,a*bm+wm),ColorE98210;
STICKLINE(m>0,m*bm+wm,wm,0.1,0),POINTDOT,COLORMAGENTA;
STICKLINE(m
页:
[1]