股票论坛

 找回密码
 免费注册
搜索
热搜: 活动 交友 discuz
查看: 2659|回复: 1
打印 上一主题 下一主题

请帮修改个公式,感谢!!

[复制链接]

巡抚

Rank: 5Rank: 5

听众
9
跳转到指定楼层
楼主
发表于 2016-5-16 17:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
30爱心果
望高手帮我把以下的公式,改为大智慧的公式:
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),COLORwhite;
DEA  : EMA(DIFF,9),COLORYELLOW;
MACD : 2*(DIFF-DEA),colorSTICK;

STICKLINE((MACD > 0),0,MACD,2,0),COLORCC0033;
STICKLINE((MACD > 0),0,MACD*0.9,2,0),COLOREE0033;
STICKLINE((MACD > 0),0,MACD*0.8,2,0),COLORFF1133;
STICKLINE((MACD > 0),0,MACD*0.7,2,0),COLORFF3333;
STICKLINE((MACD > 0),0,MACD*0.6,2,0),COLORFF5533;
STICKLINE((MACD > 0),0,MACD*0.5,2,0),COLORFF7733;
STICKLINE((MACD > 0),0,MACD*0.4,2,0),COLORFF9933;
STICKLINE((MACD > 0),0,MACD*0.3,2,0),COLORFFBB33;
STICKLINE((MACD > 0),0,MACD*0.2,2,0),COLORFFDD33;
STICKLINE((MACD > 0),0,MACD*0.1,2,0),COLORFFFF33;
STICKLINE((MACD < 0),0,MACD,2,0),COLOR0000CC;
STICKLINE((MACD < 0),0,MACD*0.9,2,0),COLOR0000EE;
STICKLINE((MACD < 0),0,MACD*0.8,2,0),COLOR0011FF;
STICKLINE((MACD < 0),0,MACD*0.7,2,0),COLOR0033FF;
STICKLINE((MACD < 0),0,MACD*0.6,2,0),COLOR0055FF;
STICKLINE((MACD < 0),0,MACD*0.5,2,0),COLOR0077FF;
STICKLINE((MACD < 0),0,MACD*0.4,2,0),COLOR0099FF;
STICKLINE((MACD < 0),0,MACD*0.3,2,0),COLOR00BBFF;
STICKLINE((MACD < 0),0,MACD*0.2,2,0),COLOR00DDFF;
STICKLINE((MACD < 0),0,MACD*0.1,2,0),COLOR00FFFF;

强度:IF(DIFF>=DEA,DIFF,DRAWNULL),COLORRED;
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;

JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;

A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
底背: DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORLIRED,LINETHICK3;
DRAWTEXT(底背离,DIFF,'底背'),COLOR0000FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
顶背: DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORBLUE,LINETHICK3;
DRAWTEXT(顶背离,DIFF,'顶背'),COLORGREEN;
0;

指标研习组

Rank: 11Rank: 11Rank: 11Rank: 11

听众
1
沙发
发表于 2016-5-17 21:28 | 只看该作者
这句
强度:IF(DIFF>=DEA,DIFF,DRAWNULL),COLORRED;

partline(diff,DIFF>=DEA),COLORRED;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|站点首页|手机版|小黑屋|帮助中心|桂ICP备14001964号

GMT+8, 2024-11-17 23:51 , Processed in 0.156211 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表