主题 512
精华 0
阅读权限 120
注册时间 2015-11-3
在线时间 0 小时
最后登录 2017-1-4
美元 3
爱心果 7146
贡献 0
积分 8821
指标研习组
听众 2
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;
我来回答