以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (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=174125) |
-- 作者:zygq -- 发布时间:2020/2/2 11:59:02 -- 通达信指标改为金字塔指标 请老师将通达信指标改为金字塔指标,谢谢 B:=C<REF(C,4);
N:=CURRBARSCOUNT; B1:=(N=6 AND REFXV(COUNT(B,6),5)=6) OR (N=7 AND REFXV(COUNT(B,7),6)=7) OR (N=8 AND REFXV(COUNT(B,8),7)=8) OR (N>=9 AND REFXV(COUNT(B,9),8)=9); DRAWNUMBER(B1 AND REF(B,1)=0,L,1),COLORMAGENTA; B2:=(N=5 AND REFXV(COUNT(B,6),4)=6) OR (N=6 AND REFXV(COUNT(B,7),5)=7) OR (N=7 AND REFXV(COUNT(B,8),6)=8) OR (N>=8 AND REFXV(COUNT(B,9),7)=9); DRAWNUMBER(B2 AND REF(B,2)=0,L,2),COLORMAGENTA; B8:=(N=1 AND COUNT(B,8)=8) OR (N>=2 AND REFXV(COUNT(B,9),1)=9); DRAWNUMBER(B8 AND REF(B,8)=0,L,8),COLORMAGENTA; B9:=(N>=1 AND COUNT(B,9)=9); DRAWNUMBER(B9 AND REF(B,9)=0,L,9),COLORYELLOW; S:=C>REF(C,4); S1:=(N=6 AND REFXV(COUNT(S,6),5)=6) OR (N=7 AND REFXV(COUNT(S,7),6)=7) OR (N=8 AND REFXV(COUNT(S,8),7)=8) OR (N>=9 AND REFXV(COUNT(S,9),8)=9); DRAWNUMBER(S1 AND REF(S,1)=0,H,1),COLORMAGENTA,DRAWABOVE; S2:=(N=5 AND REFXV(COUNT(S,6),4)=6) OR (N=6 AND REFXV(COUNT(S,7),5)=7) OR (N=7 AND REFXV(COUNT(S,8),6)=8) OR (N>=8 AND REFXV(COUNT(S,9),7)=9); DRAWNUMBER(S2 AND REF(S,2)=0,H,2),COLORMAGENTA,DRAWABOVE; S8:=(N=1 AND COUNT(S,8)=8) OR (N>=2 AND REFXV(COUNT(S,9),1)=9); DRAWNUMBER(S8 AND REF(S,8)=0,H,8),COLORMAGENTA,DRAWABOVE; S9:=(N>=1 AND COUNT(S,9)=9); DRAWNUMBER(S9 AND REF(S,9)=0,H,9),COLORGREEN,DRAWABOVE; |
-- 作者:admin -- 发布时间:2020/2/2 13:32:12 -- B:=C<REF(C,4); N:=DATACOUNT; B1:=(N=6 AND REFX(COUNT(B,6),5)=6) OR (N=7 AND REFX(COUNT(B,7),6)=7) OR (N=8 AND REFX(COUNT(B,8),7)=8) OR (N>=9 AND REFX(COUNT(B,9),8)=9); DRAWNUMBER(B1 AND REF(B,1)=0,L,1,7),COLORMAGENTA; B2:=(N=5 AND REFX(COUNT(B,6),4)=6) OR (N=6 AND REFX(COUNT(B,7),5)=7) OR (N=7 AND REFX(COUNT(B,8),6)=8) OR (N>=8 AND REFX(COUNT(B,9),7)=9); DRAWNUMBER(B2 AND REF(B,2)=0,L,2,7),COLORMAGENTA; B8:=(N=1 AND COUNT(B,8)=8) OR (N>=2 AND REFX(COUNT(B,9),1)=9); DRAWNUMBER(B8 AND REF(B,8)=0,L,8,7),COLORMAGENTA; B9:=(N>=1 AND COUNT(B,9)=9); DRAWNUMBER(B9 AND REF(B,9)=0,L,9,7),COLORYELLOW; S:=C>REF(C,4); S1:=(N=6 AND REFX(COUNT(S,6),5)=6) OR (N=7 AND REFX(COUNT(S,7),6)=7) OR (N=8 AND REFX(COUNT(S,8),7)=8) OR (N>=9 AND REFX(COUNT(S,9),8)=9); DRAWNUMBER(S1 AND REF(S,1)=0,H,1,7),COLORMAGENTA; S2:=(N=5 AND REFX(COUNT(S,6),4)=6) OR (N=6 AND REFX(COUNT(S,7),5)=7) OR (N=7 AND REFX(COUNT(S,8),6)=8) OR (N>=8 AND REFX(COUNT(S,9),7)=9); DRAWNUMBER(S2 AND REF(S,2)=0,H,2,7),COLORMAGENTA; S8:=(N=1 AND COUNT(S,8)=8) OR (N>=2 AND REFX(COUNT(S,9),1)=9); DRAWNUMBER(S8 AND REF(S,8)=0,H,8,7),COLORMAGENTA; S9:=(N>=1 AND COUNT(S,9)=9); DRAWNUMBER(S9 AND REF(S,9)=0,H,9,7),COLORGREEN; |
-- 作者:zygq -- 发布时间:2020/2/3 11:46:02 -- 老师,按装你修改的指标后,公式测评,出现函数 “REFXV”未定义,请帮助解决,谢谢 |
-- 作者:wenarm -- 发布时间:2020/2/3 11:53:44 -- 修改后的代码里没有REFXV。建议你自己查下自己的代码内容 |
-- 作者:zygq -- 发布时间:2020/2/3 14:37:54 -- 谢谢老师!!!! |