股票论坛

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

请老师改为“布衣牵牛”的选股,谢谢!

[复制链接]

指标研习组

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

听众
5
跳转到指定楼层
楼主
发表于 2016-4-19 16:55 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
30爱心果
要求:同时符合六条趋势线同时向上时出现的笑脸标志选股。,
XA_1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
XA_2:=(21*XA_1+20*REF(XA_1,1)+19*REF(XA_1,2)+18*REF(XA_1,3)+17*REF(XA_1,4)+16*REF(XA_1,5)+15*REF(XA_1,6)+14*REF(XA_1,7)+13*REF(XA_1,8)+12*REF(XA_1,9)+11*REF(XA_1,10)+10*REF(XA_1,11)+9*REF(XA_1,12)+8*REF(XA_1,13)+7*REF(XA_1,14)+6*REF(XA_1,15)+5*REF(XA_1,16)+4*REF(XA_1,17)+3*REF(XA_1,18)+2*REF(XA_1,19)+REF(XA_1,21))/231;
XA_3:=(3*XA_1+2*REF(XA_1,1)+REF(XA_1,2))/6;
DC1:EMA(XA_3,4),COLORLIMAGENTA;
DC2:EMA(DC1,3),COLORRED;
DC3:EMA(DC1,7),COLORRED;
XA_4:=BACKSET(DC1<REF(DC1,1),2);
IF(XA_4,DC1,DRAWNULL),COLORGREEN;
XA_5:=BACKSET(DC2<REF(DC2,1),2);
IF(XA_5,DC2,DRAWNULL),COLORGREEN;
XA_6:=BACKSET(DC3<REF(DC3,1),2);
IF(XA_6,DC3,DRAWNULL),COLORGREEN;
DC4:EMA(XA_2,6),COLORYELLOW;
DC5:EMA(XA_2,16),COLORYELLOW;
DC6:EMA(XA_2,34),COLORYELLOW;
XA_7:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
XA_8:=SMA(XA_7,3,1);
XA_9:=SMA(XA_8,3,1);
XA_10:=3*XA_8-2*XA_9;
XA_11:=XA_9>REF(XA_9,1);
XA_12:=DC4>DC6 AND DC5>DC6;
XA_13:=CLOSE>DC4 AND CLOSE/DC4<1.1;
XA_14:=DC1>DC2 AND DC2>DC3;
XA_15:=XA_11 AND XA_12 AND XA_13;
XA_16:=XA_15 AND COUNT(XA_15,10)=1 AND COUNT(XA_14,10)<5;
DRAWTEXT(XA_16,LOW*0.98,46),COLORWHITE;
XA_17:=EMA(CLOSE,12)-EMA(CLOSE,26);
XA_18:=EMA(XA_17,9);
XA_19:=2*(XA_17-XA_18);
XA_20:=CROSS(XA_19,0);
XA_21:=CROSS(CLOSE,DC1) AND CROSS(CLOSE,DC2) AND CROSS(CLOSE,DC3) AND BARSLAST(XA_20)<=5 AND CLOSE<DC4;
DRAWTEXT(XA_21,LOW*0.98,47),COLORMAGENTA;
XA_22:=EMA(XA_2,12);
XA_23:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
XA_24:=XA_22+2*STD(CLOSE,20);
XA_25:=XA_22-2*STD(CLOSE,20);
XA_26:=EMA(XA_24,3);
XA_27:=EMA(XA_25,3);
XA_28:=XA_26/REF(XA_26,1)>1.0035;
XA_29:=XA_22>REF(XA_22,1);
XA_30:=XA_27<REF(XA_27,1);
XA_31:=LOW/XA_26<1.01 AND CLOSE/XA_26>0.99 AND (OPEN+LOW)/2.1<XA_26;
XA_32:=CLOSE>OPEN AND (HIGH-CLOSE+(OPEN-LOW))/(CLOSE-OPEN)<1.2 AND HIGH/CLOSE<1.035;
XA_33:=100*(XA_26-XA_27)/XA_22;
XA_34:=XA_33<15 AND LLV(XA_33,8)<10;
XA_35:=XA_28 AND XA_29 AND XA_31 AND XA_32 AND XA_34;
XA_36:=COUNT(XA_35,20);
XA_37:=XA_35 AND XA_36=1 AND COUNT(XA_28,10)<10 AND HIGH/HHV(HIGH,5)>0.98;
DRAWTEXT(XA_37,LOW*0.99,45),COLORCYAN;
DRAWICON(CROSS(DC1,DC2),LOW*0.99,5);
DRAWICON(XA_16,LOW*0.97,9);
DRAWICON(XA_37,LOW,2),COLORCYAN;

最佳答案

查看完整内容

XA_1:=(3*CLOSE+LOW+OPEN+HIGH)/6; XA_2:=(21*XA_1+20*REF(XA_1,1)+19*REF(XA_1,2)+18*REF(XA_1,3)+17*REF(XA_1,4)+16*REF(XA_1,5)+15*REF(XA_1,6)+14*REF(XA_1,7)+13*REF(XA_1,8)+12*REF(XA_1,9)+11*REF(XA_1,10)+10*REF(XA_1,11)+9*REF(XA_1,12)+8*REF(XA_1,13)+7*REF(XA_1,14)+6*REF(XA_1,15)+5*REF(XA_1,16)+4*REF(XA_1,17)+3*REF(XA_1,18)+2*REF(XA_1,19)+REF(XA_1,21))/231; XA_3:=(3*XA_1+2*REF(XA_1,1)+REF(XA_1,2))/6; ...

爵★★★

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

听众
5
沙发
发表于 2016-4-19 16:55 | 只看该作者
XA_1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
XA_2:=(21*XA_1+20*REF(XA_1,1)+19*REF(XA_1,2)+18*REF(XA_1,3)+17*REF(XA_1,4)+16*REF(XA_1,5)+15*REF(XA_1,6)+14*REF(XA_1,7)+13*REF(XA_1,8)+12*REF(XA_1,9)+11*REF(XA_1,10)+10*REF(XA_1,11)+9*REF(XA_1,12)+8*REF(XA_1,13)+7*REF(XA_1,14)+6*REF(XA_1,15)+5*REF(XA_1,16)+4*REF(XA_1,17)+3*REF(XA_1,18)+2*REF(XA_1,19)+REF(XA_1,21))/231;
XA_3:=(3*XA_1+2*REF(XA_1,1)+REF(XA_1,2))/6;
DC1:=EMA(XA_3,4),COLORLIMAGENTA;
DC2:=EMA(DC1,3),COLORRED;
DC3:=EMA(DC1,7),COLORRED;
XA_4:=BACKSET(DC1<REF(DC1,1),2);

XA_5:=BACKSET(DC2<REF(DC2,1),2);

XA_6:=BACKSET(DC3<REF(DC3,1),2);

DC4:=EMA(XA_2,6),COLORYELLOW;
DC5:=EMA(XA_2,16),COLORYELLOW;
DC6:=EMA(XA_2,34),COLORYELLOW;
XA_7:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
XA_8:=SMA(XA_7,3,1);
XA_9:=SMA(XA_8,3,1);
XA_10:=3*XA_8-2*XA_9;
XA_11:=XA_9>REF(XA_9,1);
XA_12:=DC4>DC6 AND DC5>DC6;
XA_13:=CLOSE>DC4 AND CLOSE/DC4<1.1;
XA_14:=DC1>DC2 AND DC2>DC3;
XA_15:=XA_11 AND XA_12 AND XA_13;
XA_16:=XA_15 AND COUNT(XA_15,10)=1 AND COUNT(XA_14,10)<5;

XA_17:=EMA(CLOSE,12)-EMA(CLOSE,26);
XA_18:=EMA(XA_17,9);
XA_19:=2*(XA_17-XA_18);
XA_20:=CROSS(XA_19,0);
XA_21:=CROSS(CLOSE,DC1) AND CROSS(CLOSE,DC2) AND CROSS(CLOSE,DC3) AND BARSLAST(XA_20)<=5 AND CLOSE<DC4;

XA_22:=EMA(XA_2,12);
XA_23:=100*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1);
XA_24:=XA_22+2*STD(CLOSE,20);
XA_25:=XA_22-2*STD(CLOSE,20);
XA_26:=EMA(XA_24,3);
XA_27:=EMA(XA_25,3);
XA_28:=XA_26/REF(XA_26,1)>1.0035;
XA_29:=XA_22>REF(XA_22,1);
XA_30:=XA_27<REF(XA_27,1);
XA_31:=LOW/XA_26<1.01 AND CLOSE/XA_26>0.99 AND (OPEN+LOW)/2.1<XA_26;
XA_32:=CLOSE>OPEN AND (HIGH-CLOSE+(OPEN-LOW))/(CLOSE-OPEN)<1.2 AND HIGH/CLOSE<1.035;
XA_33:=100*(XA_26-XA_27)/XA_22;
XA_34:=XA_33<15 AND LLV(XA_33,8)<10;
XA_35:=XA_28 AND XA_29 AND XA_31 AND XA_32 AND XA_34;
XA_36:=COUNT(XA_35,20);
XA_37:=XA_35 AND XA_36=1 AND COUNT(XA_28,10)<10 AND HIGH/HHV(HIGH,5)>0.98;
DC01:=DC1>REF(DC1,3);
DC02:=DC2>REF(DC2,3);
DC03:=DC3>REF(DC3,3);
DC04:=DC4>REF(DC4,3);
DC05:=DC5>REF(DC5,3);
DC06:=DC6>REF(DC6,3);

XG: CROSS(DC1,DC2) AND DC01 AND DC02 AND DC03 AND DC04 AND DC05 AND DC06;
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-28 05:47 , Processed in 0.129814 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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