以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (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=171602) |
-- 作者:lgxyp -- 发布时间:2019/8/12 17:04:26 -- 请老师改为金字塔可用 VAR1:=REF(MA(C,27),9); 开:=O-VAR1; 高:=H-VAR1; 低:=L-VAR1; 收:=C-VAR1; AA:=EMA((0.8*收+0.5*开+0.3*高+0.3*低)/(0.8+0.5+0.6),9); 游资动向:EMA(AA,3),colorFF0000,LINETHICK2; PARTLINE(游资动向>MA(游资动向,2),游资动向),LINETHICK2; BB:=EMA((0.8*收+0.5*开+0.3*高+0.3*低)/(0.8+0.5+0.6),18); 市场趋势:EMA(BB,18),LINETHICK1,COLORFF00FF,LINETHICK2; PARTLINE(市场趋势<REF(市场趋势,1),市场趋势),COLOR808000,LINETHICK2; 牛熊分界:0,POINTDOT,LINETHICK1,COLOR00FFFF; MID:=MA(C,18); UPPER:=MID+2*STD(C,18); LOWER:=MID-2*STD(C,18); V1AA:=(C-LOWER)/(UPPER-LOWER)*10; V2AA:=V1AA-EMA(V1AA,5); K1:=SUM(LLV(V2AA,4),4)/4; V3AA:=EMA(V2AA,64)*10; V4AA:=EMA(0.4*V2AA*(-1),3); V5AA:=-1*EMA(V2AA,39)*10; A:=V3AA>10; B:=V2AA>V4AA; D:=V5AA>10; E:=V3AA<=10 OR V2AA<=V4AA OR V5AA<=10; ZCHANGE:=IF(收>REF(C,1),收-REF(收,1),0); FCHANGE:=IF(收<REF(C,1),收-REF(收,1),0); ZCF:=IF(收>REF(收,1),ZCHANGE+REF(ZCHANGE,1),0); FCF:=IF(收<REF(收,1),FCHANGE+REF(FCHANGE,1),0); ZTCF:=SUM(ZCHANGE,27)-SUM(FCF,27)*(-1); FTCF:=SUM(FCHANGE,27)*(-1)-SUM(ZCF,27); 资金值:=EMA(收,2); STICKLINE(资金值>=牛熊分界 AND 资金值>=开,收,开,6,0),colorFF; STICKLINE(资金值>=牛熊分界 AND 资金值>=开,高,低,0,0),colorFF; STICKLINE(资金值>=牛熊分界 AND 资金值<开,收,开,6,0),colorFF; STICKLINE(资金值>=牛熊分界 AND 资金值<开,开,高,0,0),colorFF; STICKLINE(资金值>=牛熊分界 AND 资金值<开,收,低,0,0),colorFF; VERTLINE(REF(资金值>=牛熊分界,1)&& CROSSDOWN(游资动向>MA(游资动向,2),0.4),COLORRED); VERTLINE(REF(资金值<牛熊分界,1)&&资金值>=牛熊分界&& CROSS(游资动向>MA(游资动向,2),0.4),COLORCYAN); REF(资金值>=牛熊分界,1)&& CROSSDOWN(游资动向>MA(游资动向,2),0.4)||REF(资金值<牛熊分界,1)&&资金值>=牛熊分界&& CROSS(游资动向>MA(游资动向,2),0.4),SOUND(\'A\'); STICKLINE(资金值<牛熊分界 AND 资金值>开,收,开,6,0),colorBF00BF; STICKLINE(资金值<牛熊分界 AND 资金值<=开,收,开,6,0),colorBF00BF; STICKLINE(资金值<牛熊分界 AND 资金值<=开,高,低,0,0),colorBF00BF; STICKLINE(资金值<牛熊分界 AND 资金值>开,收,高,0,0),colorBF00BF; STICKLINE(资金值<牛熊分界 AND 资金值>开,开,低,0,0),colorBF00BF; STICKLINE(资金值<游资动向 AND 资金值>开,收,开,6,0),colorFF4D4D; VERTLINE(REF(资金值<=牛熊分界,1)&& CROSSDOWN(游资动向<MA(游资动向,2),0.4),COLORRED); VERTLINE(REF(资金值<牛熊分界,1)&&资金值<=牛熊分界&& CROSS(游资动向<MA(游资动向,2),0.4),COLORCYAN); REF(资金值<=牛熊分界,1)&& CROSSDOWN(游资动向<MA(游资动向,2),0.4)||REF(资金值<牛熊分界,1)&&资金值<=牛熊分界&& CROSS(游资动向<MA(游资动向,2),0.4),SOUND(\'A\'); STICKLINE(资金值<游资动向 AND 资金值<=开,收,开,6,0),colorFF4D4D; STICKLINE(资金值<游资动向 AND 资金值<=开,高,低,0,0),colorFF4D4D; STICKLINE(资金值<游资动向 AND 资金值>开,收,高,0,0),colorFF4D4D; STICKLINE(资金值<游资动向 AND 资金值>开,开,低,0,0),colorFF4D4D; STICKLINE(收>开 AND ZTCF>0 AND FTCF<0,开,收,6,0),colorBF00; STICKLINE(收>开 AND ZTCF>0 AND FTCF<0,高,低,0.5,0),colorBF00; STICKLINE(收<=开 AND ZTCF>0 AND FTCF<0,开,收,6,1),colorBF00; STICKLINE(收<=开 AND ZTCF>0 AND FTCF<0,收,低,0.5,0),colorBF00; STICKLINE(收<=开 AND ZTCF>0 AND FTCF<0,高,开,0.5,0),colorBF00; 突破A1:=CROSS(收,牛熊分界); STICKLINE(突破A1,高,低,0,0),LINETHICK2,colorB0B0; STICKLINE(突破A1,开,收,8,0),LINETHICK2,colorB0B0; DRAWTEXT(FILTER(突破A1>0,18),低*0.99,\'关注\'),colorFFFF;
|
-- 作者:FireScript -- 发布时间:2019/8/12 17:18:10 -- 所有用到CROSSDOWN的地方把2个参数位置调换下即可。并且把函数替换成cross 比如这个: CROSSDOWN(游资动向>MA(游资动向,2),0.4) 改成: CROSS(0.4,游资动向>MA(游资动向,2))
|
-- 作者:lgxyp -- 发布时间:2019/8/12 17:28:13 -- SOUND这函数说未定义,我需要这个声音预警。 |
-- 作者:FireScript -- 发布时间:2019/8/12 17:35:05 -- 用这个函数: PLAYSOUND
|
-- 作者:lgxyp -- 发布时间:2019/8/12 18:07:47 -- VERTLINE(REF(资金值>=牛熊分界,1)&& CROSSDOWN(游资动向>MA(游资动向,2),0.4),COLORRED); VERTLINE(REF(资金值<牛熊分界,1)&& CROSS(游资动向>MA(游资动向,2),0.4),COLORCYAN); REF(资金值>=牛熊分界,1)&& CROSSDOWN(游资动向>MA(游资动向,2),0.4)||REF(资金值<牛熊分界,1)&& CROSS(游资动向>MA(游资动向,2),0.4),SOUND(\'A\'); 就这几句请老师修改一下要金字塔上可用,需要声音预警。
|
-- 作者:FireScript -- 发布时间:2019/8/13 10:30:47 -- 2楼已经提供了解决办法了,你等效替换下即可。 |