股票论坛

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

老师,请帮忙做个大小波段选股,谢谢!!

[复制链接]

指标研习组

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

听众
2
跳转到指定楼层
楼主
发表于 2016-5-29 17:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
30爱心果
源码
买:=IF("KDJ.J"(27,3,3)<0,10,0);
条件:=CROSS(9.9,买);
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,5);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
MA1:=MA(VAR4,2);
AA:STICKLINE(VAR4>MA1,VAR4,MA1,3,1),COLORRED;
AAA:IF(VAR4>MA1,VAR4,MA1),COLORRED;
BBB:=STICKLINE(VAR4>MA1 AND REF(VAR4,1)<30,VAR4,MA1,3,1),COLORRED;
STICKLINE(VAR4<=MA1,VAR4,MA1,3,1),COLORFFCC66;
DRAWICON(CROSS(9.9,买),VAR4-12,5);
STICKLINE(CROSS(9.9,买),VAR4+5,MA1-4,3,1),COLORYELLOW;
XXX:=STICKLINE(BBB,VAR4+5,MA1-4,3,1),COLORYELLOW;
STICKLINE(FILTER(XXX ,5) ,VAR4+5,MA1-4,3,1),COLORYELLOW;
{V0:0,COLOR00FF00;}
V20:20,COLOR00FF00;
V50:50,COLOR00FF00;
V80:80,COLOR00FF00;
{V100:100,COLOR00FF00;}
卖:=IF("KDJ.J"(27,3,3)>100,90,100);
DRAWICON(CROSS(卖,99.9),VAR4+12,6);
CCC:=VAR4>MA1 AND REF(VAR4,1)>70;
STICKLINE(CROSS(卖,99.9),VAR4,MA1-9,3,1),COLORGREEN;
YYY:=STICKLINE(CCC,VAR4+5,MA1-4,3,1),COLORGREEN;
STICKLINE(FILTER(YYY ,5) ,VAR4+5,MA1-4,3,1),COLORGREEN;
DRAWTEXT(FILTER(BBB,5),VAR4-8,'买'),COLORRED;
DRAWTEXT(FILTER(CCC,5),VAR4+8,'卖'),COLORGREEN;



要求     出现买做个选股和由兰方块转成红色方块也要选出。谢谢

最佳答案

查看完整内容

VAR1:=(2*CLOSE+HIGH+LOW)/4; VAR2:=LLV(LOW,5); VAR3:=HHV(HIGH,5); VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5); MA1:=MA(VAR4,2); AA:=VAR4>MA1 AND REF(VAR4,1)

指标研习组

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

听众
1
沙发
发表于 2016-5-29 17:06 | 只看该作者
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,5);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
MA1:=MA(VAR4,2);
AA:=VAR4>MA1 AND REF(VAR4,1)<30;
FILTER(AA,5)OR CROSS(VAR4,MA1);
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 09:26 , Processed in 0.153003 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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