以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (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=169323) |
-- 作者:非海 -- 发布时间:2019/4/12 16:11:12 -- [求助]请老师改为金字塔源码,谢谢 80,COLOR996699; 20,COLORGREEN; 10,COLORCC6633,LINETHICK2; 90,COLOR9966FF,LINETHICK2; { 50,COLORRED; FILLRGN(1,20,80),color222222; FILLRGN(1,90,100),color000068; FILLRGN(1,79,90),color663366; FILLRGN(1,10,20),color666600; FILLRGN(1, 0,10),color663300; } A:=简单移动平均(-100*(最高值(最高价,34)-收盘价)/(最高值(最高价,34)-最低值(最低价,34)),19),COLORRED; B:=-100*(最高值(最高价,14)-收盘价)/(最高值(最高价,14)-最低值(最低价,14)); d:=指数平滑移动平均(-100*(最高值(最高价,34)-收盘价)/(最高值(最高价,34)-最低值(最低价,34)),4),linethick2; 长期线:A+100,color9900FF; 短期线:B+100,color888888; 中期线:d+100,COLORBROWN,linethick2; {见顶:(长期线>85 or ref(长期线,1)>85 ) and (cross(中期线,短期线) or cross(ref(中期线,1),ref(短期线,1)) )and cross(长期线,短期线); } 见顶:(向前引用(中期线,1)>85 and 向前引用(短期线,1)>85 and 向前引用(长期线,1)>65) and 交叉函数(长期线,短期线) ; 顶部区域:(中期线<向前引用(中期线,1) and 向前引用(中期线,1)>80) and (向前引用(短期线,1)>95 or 向前引用(短期线,2)>95 ) and 长期线>60 and 短期线<83.5 and 短期线<中期线 and 短期线<长期线+4; 顶部:=信号过滤(顶部区域,4); {DRAWICON( 见顶, 108, 2 );} 底部区域:(长期线<12 and 中期线<8 and (短期线<7.2 or 向前引用(短期线,1)<5) and (中期线>向前引用(中期线,1) or 短期线>向前引用(短期线,1))) or (长期线<8 and 中期线<7 and 短期线<15 and 短期线>向前引用(短期线,1)) or (长期线<10 and 中期线<7 and 短期线<1) ; 画柱线( {见顶 or} 顶部,99,103,20,1 ),colorred,linethick2; 画柱线( 底部区域,-4,0,22,0 ),colorgreen; 低位金叉:长期线<15 and 向前引用(长期线,1)<15 and 中期线<18 and 短期线>向前引用(短期线,1) and 交叉函数(短期线,长期线) and 短期线>中期线 and (向前引用(短期线,1)<5 or 向前引用(短期线,2)<5 ) and (中期线>=长期线 or 向前引用( 短期线,1)<1 ); 画柱线( 低位金叉,0,5,11,0 ),colorred; |
-- 作者:FireScript -- 发布时间:2019/4/12 17:11:48 -- 我先尝试理清下上面的逻辑,可能需要点时间,请关注本帖回复。 |
-- 作者:非海 -- 发布时间:2019/4/18 10:08:27 -- 顶一下 |