股票论坛

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

请老师把短底公式做个选股,谢谢

[复制链接]

指标研习组

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

听众
5
跳转到指定楼层
楼主
发表于 2015-12-1 16:34 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
30爱心果
源码:

VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
持币区域:VAR1,COLORFEDCBA;
持股区域:IF(VAR1>0,VAR1,0),COLORRED;
短顶:VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),COLORGREEN;
大顶:VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),COLOR00FF00; VAR2:=HHV(VAR1>20,10);  
危险: VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20));  
注意止损:VAR2 AND FILTER(VAR1< REF(VAR1,1),6)  AND CROSS(MA(CLOSE,5),MA(CLOSE,2));
短底:VAR1<-9 AND VAR1> REF(VAR1,1),COLORRED;
大底:VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),COLORYELLOW;
买入准备:VAR1<-9 AND VAR1>REF(VAR1,1),COLORWHITE;
DRAWTEXT(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+2,'短顶'),COLOR00FF00;
DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),VAR1+5,'大顶'),COLORFFFF00;
DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),VAR1+10,'危险'),COLOR00FFFF;
DRAWTEXT(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),VAR1+6,'注意止损'),COLORFF00FF; DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),VAR1-2,'短底'),COLOR0000FF; DRAWTEXT(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),VAR1-5,'大底'); DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),1,'买入准备');  
DRAWTEXT_FIX(C>O,1,1,0,'交易模型'),COLORRED;

最佳答案

查看完整内容

VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3; 持币区域:=VAR1,COLORFEDCBA; 持股区域:=IF(VAR1>0,VAR1,0),COLORRED; 短顶:=VAR1>9 AND FILTER(VAR120 AND FILTER(VAR120,10); 危险:= VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)); 注意止损:=VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CL ...

爵★★★

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

听众
5
沙发
发表于 2015-12-1 16:34 | 只看该作者

VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;
持币区域:=VAR1,COLORFEDCBA;
持股区域:=IF(VAR1>0,VAR1,0),COLORRED;
短顶:=VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),COLORGREEN;
大顶:=VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),COLOR00FF00; VAR2:=HHV(VAR1>20,10);  
危险:= VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20));  
注意止损:=VAR2 AND FILTER(VAR1< REF(VAR1,1),6)  AND CROSS(MA(CLOSE,5),MA(CLOSE,2));
短底:VAR1<-9 AND VAR1> REF(VAR1,1),COLORRED;
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-28 00:58 , Processed in 0.138645 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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