以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://222.73.7.161/bbs/index.asp) -- 公式模型编写问题提交 (http://222.73.7.161/bbs/list.asp?boardid=4) ---- [求助]自编公式不能显示 (http://222.73.7.161/bbs/dispbbs.asp?boardid=4&id=1069) |
-- 作者:zdjie312 -- 发布时间:2010/3/11 9:31:31 -- [求助]自编公式不能显示 这个公式不能显示,提示未包含趋势线名称,但飞狐可以通过,请求解决,谢谢 a0:=BARSCOUNT(c); a3:=SYSPARAM(3); a2:=SYSPARAM(2); a4:=SYSPARAM(4); a5:=SYSPARAM(5); nn0:=a3-a2; nn:=a0-a2; hh1:=(a4-a5)/8; hh2:=hh1/4; ll1:=llv(l,nn0);ll2:=ll1[a3]; y0:=a0>=a2;vv0:=if(y0=1 and SYSPARAM(1)>=a0,v,0); c1:=if(BETWEEN(c,a4-0*hh1,a4-1*hh1),vv0,0); c2:=if(BETWEEN(c,a4-1*hh1,a4-2*hh1),vv0,0); c3:=if(BETWEEN(c,a4-2*hh1,a4-3*hh1),vv0,0); c4:=if(BETWEEN(c,a4-3*hh1,a4-4*hh1),vv0,0); c5:=if(BETWEEN(c,a4-4*hh1,a4-5*hh1),vv0,0); c6:=if(BETWEEN(c,a4-5*hh1,a4-6*hh1),vv0,0); c7:=if(BETWEEN(c,a4-6*hh1,a4-7*hh1),vv0,0); c8:=if(BETWEEN(c,a4-7*hh1,a4-8*hh1),vv0,0); c9:=if(BETWEEN(c,a4-8*hh1,a4-9*hh1),vv0,0); c10:=if(BETWEEN(c,a4-9*hh1,a4-10*hh1),vv0,0); v1:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c1,nn0),0),2)),LINETHICK; v2:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c2,nn0),0),2)); v3:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c3,nn0),0),2)); v4:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c4,nn0),0),2)); v5:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c5,nn0),0),2)); v6:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c6,nn0),0),2)); v7:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c7,nn0),0),2)); v8:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c8,nn0),0),2)); v9:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c9,nn0),0),2)); v10:=STRTONUM(NUMTOSTR(if(ISLASTBAR,sum(c10,nn0),0),2)); av0:=max(v1,max(v2,max(v3,max(v4,max(v5,max(v6,max(v7,max(v8,max(v9,v10))))))))); x1:=v1/av0>=nn/nn0 and nn>=0; x3:=v3/av0>=nn/nn0 and nn>=0; x5:=v5/av0>=nn/nn0 and nn>=0; x7:=v7/av0>=nn/nn0 and nn>=0; FILLRGN(v1/av0>=nn/nn0 and nn>=0,a4-0*hh1,a4-1*hh1+hh1*0.72),color666666;//+0.07 FILLRGN(v2/av0>=nn/nn0 and nn>=0,a4-1*hh1,a4-2*hh1+hh1*0.5),color666666; FILLRGN(v3/av0>=nn/nn0 and nn>=0,a4-2*hh1,a4-3*hh1+hh1*0.5),color666666; FILLRGN(v4/av0>=nn/nn0 and nn>=0,a4-3*hh1,a4-4*hh1+hh1*0.5),color666666; FILLRGN(v5/av0>=nn/nn0 and nn>=0,a4-4*hh1,a4-5*hh1+hh1*0.5),color666666; FILLRGN(v6/av0>=nn/nn0 and nn>=0,a4-5*hh1,a4-6*hh1+hh1*0.5),color666666; FILLRGN(v7/av0>=nn/nn0 and nn>=0,a4-6*hh1,a4-7*hh1+hh1*0.5),color666666; FILLRGN(v8/av0>=nn/nn0 and nn>=0,a4-7*hh1,a4-8*hh1+hh1*0.5),color666666; |
-- 作者:admin -- 发布时间:2010/3/11 9:39:32 -- SYSPARAM(1)函数金字塔暂不支持 |
-- 作者:zdjie312 -- 发布时间:2010/3/11 10:14:14 -- 有类似的指标可以替代吗? |