股票论坛

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

请老师帮助做一个选股!!

[复制链接]

指标研习F2

Rank: 8Rank: 8

听众
2
跳转到指定楼层
楼主
发表于 2015-8-7 10:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
20爱心果
请老师帮助做一个选股公式源码如下:
DRAWBAND(MA(CLOSE,5),RGB(200,80,80),MA(CLOSE,10),RGB(0,0,115));
MA5:MA(C,5);
MA10:MA(C,10);
MA20:MA(C,20);
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.8,0),COLOR000088;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.6,0),COLOR000099;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.4,0),COLOR0000AA;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.2,0),COLOR0000BB;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,2.0,0),COLOR0000CC;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1.8,0),COLOR0000DD;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1.5,0),COLOR0000EE;
STICKLINE((VAR2>VAR3),CLOSE,OPEN,1,0),COLOR0000FF;
STICKLINE((VAR2>VAR3),LOW,HIGH,0.0,0),COLOR0000FF;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.8,0),COLOR888800;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.6,0),COLOR999900;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.4,0),COLORAAAA00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2,2),COLORBBBB00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,2.0,0),COLORCCCC00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,1.8,0),COLORDDDD00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,1.5,0),COLOREEEE00;
STICKLINE((VAR3>VAR2),CLOSE,OPEN,1,0),COLORFFFF00;
STICKLINE((VAR3>VAR2),LOW,HIGH,0.0,0),COLORFFFF00;
STICKLINE((OPEN>CLOSE),CLOSE,OPEN,0,0),COLORFFFF00;
STICKLINE((OPEN<CLOSE),CLOSE,OPEN,0,0),COLORRED;
C4:=CROSS(VAR2,VAR3);
C5:=CROSS(VAR3,VAR2);
DRAWICON(C4,LOW-0.3,11);
买进价:=((C-REF(MA(C,6),1))/6+MA(C,6))*1.004;  
买进条件:=CROSS(C,买进价) AND 买进价>REF(买进价,1);   
STICKLINE(买进条件,O,C,0.5,0),COLORFF0080;  
加码价:=((C-REF(MA(C,21),1))/21+MA(C,21))*1.004;  
加码条件:=CROSS(C,加码价) AND 加码价>REF(加码价,1);      
STICKLINE(加码条件,O,C,1.5,0),COLORFF0080;
短线强势区:=CROSS("KDJ".J,80) AND "MACD.DIF">"MACD.DEA" AND MA(C,5)>MA(C,30);
DRAWTEXT("KDJ.J"-REF("KDJ.J",1)>30  AND C/REF(C,1)>1.043 AND "MACD.MACD">0 AND "MACD.DEA">0,L*0.98,'*爆'),COLORYELLOW;

最佳答案

查看完整内容

VAR1:=(CLOSE+HIGH+LOW)/3; VAR2:=EMA(VAR1,10); VAR3:=REF(VAR2,1); C4:CROSS(VAR2,VAR3);

刺使

Rank: 6Rank: 6

听众
3
沙发
发表于 2015-8-7 10:52 | 只看该作者
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
C4:CROSS(VAR2,VAR3);
回复

使用道具 举报

爵府★★★●

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

听众
5

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

板凳
发表于 2016-11-1 10:06 | 只看该作者
学习
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 02:26 , Processed in 0.140865 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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