股票论坛

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

请老师把主图公式出现底字做一个选股公式,谢谢!!

[复制链接]

指标研习组

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

听众
2
跳转到指定楼层
楼主
发表于 2016-1-7 17:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
30爱心果
请老师把主图公式出现底字做一个选股公式:谢谢:
源码为:
M5:MA(CLOSE,5),COLORWHITE;
M10:MA(CLOSE,10),COLORYELLOW;
M20:MA(CLOSE,20),COLORMAGENTA,LINETHICK1;
M30:MA(CLOSE,30),COLORMAGENTA,LINETHICK2;
M516:MA(CLOSE,516),LINETHICK2,,COLORFFFFFF;
M60:MA(CLOSE,60),COLORGREEN;
M120:MA(CLOSE,120),COLORLIGRAY;
M250:MA(CLOSE,250),COLOR0000FF;
DRAWTEXT(ISLASTBAR,M5,'    5'),COLORWHITE;
DRAWTEXT(ISLASTBAR,M10,'   10'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,M30,'    30'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR,M516,'    516'),COLORFFFFFF;
DRAWTEXT(ISLASTBAR,M60,'    60'),COLORGREEN;
DRAWTEXT(ISLASTBAR,M120,'   120'),COLORLIGRAY;
DRAWTEXT(ISLASTBAR,M250,'    250'),COLOR0000FF;
M910:MA(CLOSE,910),LINETHICK2,,COLOR00FFFF;
DRAWTEXT(ISLASTBAR,M516,'    516'),COLORFFFFFF;


T3JK:=REF(HHVBARS(HIGH,5),5)+5;
T4JK:=REF(HIGH,T3JK);
STICKLINE(BARSTATUS=2,T4JK,T4JK,2000,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(BARSTATUS=2,T4JK,'           周'),COLORYELLOW;
DRAWNUMBER(ISLASTBAR,T4JK,T4JK),COLORYELLOW;


T5:=REF(HHVBARS(HIGH,144),15)+15;
T144:REF(HIGH,T5),COLORRED,NODRAW;
STICKLINE(BARSTATUS=2,T144,T144,2000,1),LINETHICK2,COLORRED;
DRAWTEXT(BARSTATUS=2,T144,'                美女'),LINETHICK2,COLORRED;

涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
DRAWTEXT_FIX(1,0.72,0,0,'莸利比例:') , COLOR0080FF ;
DRAWNUMBER_FIX(1,0.79,0,0,CONST(WINNER(C )*100)),COLORYELLOW;
所属地域: DRAWTEXT_FIX(ISLASTBAR ,0.07,0.08,1,DYBLOCK),COLORYELLOW;
所属行业: DRAWTEXT_FIX(ISLASTBAR ,0.08,0.08,0,HYBLOCK),COLORYELLOW;
所属概念: DRAWTEXT_FIX(ISLASTBAR ,0.15,0.08,0, GNBLOCK),COLORYELLOW;
明天攻防: ((H-L)*0.618+L),COLORYELLOW,NODRAW;

P:=10;
AAA1:=REF(HIGH,P)=HHV(HIGH,2*P+1);
BBB1:=FILTER(AAA1,P);
CCC1:=BACKSET(BBB1,P+1);
DDD1:=FILTER(CCC1,P);{高点}
压力:=REF(HIGH,BARSLAST(DDD1)),COLORFF00FF,POINTDOT;
R11:=BACKSET(ISLASTBAR,BARSLAST(DDD1)+1);
S11:=R11>REF(R11,1);
压力线: DRAWLINE(DDD1,HIGH,S11,HIGH,1),COLORWHITE,LINETHICK2;


FF:=1.04;
上中1:IF(H/MAX(C,O)>=FF,(H+MAX(C,O))/2,DRAWNULL),COLORYELLOW,POINTDOT,LINETHICK5;
涨停板:=C/REF(C,1)>=1.099;
涨幅:=C/REF(C,1)<=1.056 AND C>=O;

选股A:=REF(涨停板,3) AND EVERY( 涨幅,2) AND DYNAINFO(4)>0 AND C>REF(C,3)
AND SUM(C>REF(C,1) AND O>REF(C,1) AND C<=O,3)=1;
DRAWTEXT(选股A,L*0.99,'★'),COLORYELLOW,LINETHICK2;


{必杀玩心跳}

N:=10;
T1:=CONST(LLVBARS(LOW,N));
T1HIGH:=CONST(REF(HIGH,T1));
CCVV:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST((CURRBARSCOUNT >(CCVV+T1)) AND (HIGH>T1HIGH)));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST((CURRBARSCOUNT >(CCVV+T2)) AND (HIGH>T2HIGH)));
T3HIGH:=CONST(REF(HIGH,T3));
玩的就是心跳线: DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK3,COLORFF0099;
DRAWTEXT(ISLASTBAR, T3HIGH, '^  ^(玩心跳必杀)^  ^')LINETHICK1,COLORYELLOW;
DRAWTEXT(CROSS(ZIG(3,14),REF(ZIG(3,14),1)),LOW*1.001,'底'),COLORGREEN;
DRAWTEXT(CROSS(REF(ZIG(3,13),1),ZIG(3,13)),HIGH*1,'顶'),COLORRED;

爵★★★

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

听众
5
沙发
发表于 2016-1-7 18:43 | 只看该作者
未来数据慎用
XG:CROSS(ZIG(3,14),REF(ZIG(3,14),1));
回复

使用道具 举报

爵★★★

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

听众
5
板凳
发表于 2016-1-7 18:43 | 只看该作者
未来数据慎用
XG:CROSS(ZIG(3,14),REF(ZIG(3,14),1));
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 04:41 , Processed in 0.137573 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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