股票论坛

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

请老师同学帮忙把起爆指标改写选股公式 ,谢谢!!

[复制链接]

指标研习组

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

听众
3
跳转到指定楼层
楼主
发表于 2016-8-8 11:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
30爱心果
源码如下:DIF:EMA(CLOSE,9)-EMA(CLOSE,150),NODRAW;
DEA:EMA(DIF,12),NODRAW;
MACD:2*(DIF-DEA),COLORSTICK;

DIK:4*DIF-3*DEA,COLORYELLOW;
DED:=EMA(DIK,1),COLORGREEN;
IF(C>DED,DED,DRAWNULL),COLORRED,LINETHICK3;
IF(DED<=REF(DED,1),DED,DRAWNULL),COLORGREEN,LINETHICK3;

启动点:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)
AND REF(MACD ,2)<REF(MACD ,3)
AND REF(MACD ,3)<REF(MACD ,4);
STICKLINE(启动点,8,MACD,2,0),COLORMAGENTA;

分界线:0,COLORFF00FF;
DRAWICON(启动点,20,11);

STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB;

STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR40FF00;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR40FF00;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR40FF00;

STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR000055;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR000099;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR0000BB;

STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.8,0),COLOR40FF00;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1.1,0),COLOR40FF00;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR40FF00;

最佳答案

查看完整内容

{启动点预警} DIF:=EMA(CLOSE,9)-EMA(CLOSE,150),NODRAW; DEA:=EMA(DIF,12),NODRAW; MACD:=2*(DIF-DEA),COLORSTICK; DIK:=4*DIF-3*DEA,COLORYELLOW; DED:=EMA(DIK,1),COLORGREEN; 启动点:MACDREF(MACD ,1) AND REF(MACD ,1)

爵★★★

Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21Rank: 21

听众
2

爵★★★爵★★★爵★★★

沙发
发表于 2016-8-8 11:24 | 只看该作者
{启动点预警}


DIF:=EMA(CLOSE,9)-EMA(CLOSE,150),NODRAW;
DEA:=EMA(DIF,12),NODRAW;
MACD:=2*(DIF-DEA),COLORSTICK;
DIK:=4*DIF-3*DEA,COLORYELLOW;
DED:=EMA(DIK,1),COLORGREEN;
启动点:MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2) AND REF(MACD ,2)<REF(MACD ,3) AND REF(MACD ,3)<REF(MACD ,4);




回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 09:46 , Processed in 0.152429 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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