股票论坛

标题: 请老师帮忙,在这个主图指标两线金叉时出现圆点处,给出选股的公式,谢谢 [打印本页]

作者: 亦然    时间: 2015-11-17 08:29
标题: 请老师帮忙,在这个主图指标两线金叉时出现圆点处,给出选股的公式,谢谢
主图源码:
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
NX:  (20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;
MX:MA(NX,8),COLORGREEN;
XG2:=CROSS(NX,MX);

JJ1:=(2*C+(C+H+L+O)/4+O)/4;
R:=(2*L+3*JJ1)/5;R1:=(2*H+3*JJ1)/5;
KX:=(R+R1)/2;
CC:=ABS(R-EMA(KX,13))/EMA(KX,13);
ZZX:=DMA(KX,CC),COLORRED DOTLINE;
CBJX: (1+13/100)*ZZX, DOTLINE;

A4:=MA(C,20);
A5:=(C>MA(C,5));   
A6:=(MA(C,5)>MA(C,10));   
A7:=(C>MA(C,10));A8:=(MA(C,5)>MA(C,20));   
A9:=(C>MA(C,20));A10:=REF(A4,1);   
A11:=(A4>A10);
AVX:=(((((IF(A5,10,(0-10))+IF(A6,10,(0-10)))+IF(A7,10,(0-10)))+
IF(A8,10,(0-10)))+IF(A9,10,(0-10)))+IF(A11,10,(0-10)));
SC:=REF(AVX,1)<=0 AND AVX>0;
A1:=AVX>10 AND AVX>=REF(AVX,1) AND AVX>=REF(AVX,2);
A2:=AVX=60;
A3:=SC OR A1 OR A2 ;
Q1:EMA(C,14),NODRAW;
Q1X: (Q1-REF(Q1,1))/REF(Q1,1)*100,NODRAW;
出击:=IF(A3>0,REF(EMA(C,14),BARSLAST(CROSS(Q1X,0))+1),DRAWNULL)COLORRED,LINETHICK4;
STICKLINE(A3,O,C,2.0,0),COLORMAGENTA;
STICKLINE(A2,O,C,1.0,0),COLORYELLOW;
CX:=BARSLAST(NOT(A3));
CX1:=BARSLAST(NOT(A2));

DRAWNUMBER(A2,出击*0.98,CX1),COLORYELLOW;

V1:=DMA((((H+L)+(C*2))/4),0.9);
HY1:=REF(EMA(V1,3),1);
DK:=(MA((C-HY1)*28,2))*0.1;
HS:=V*100/CAPITAL;
ZL:=MA(HS,4);
DH:=MA(HS,9);
ZH:=MA(HS,17);
SH:=MA(HS,34);
JL:=(ZL+DH+ZH+SH)/4;
ZLNL:=(ZL-JL);
AA2:=ZLNL>=0 AND ZLNL>=REF(ZLNL,1);
DRAWICON(AA2,L*0.97,27);
DRAWICON(XG2,出击*0.98,23);


作者: 早春二月    时间: 2015-11-17 11:46
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
NX:=  (20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
MX:=MA(NX,8);
CROSS(NX,MX);
作者: 亦然    时间: 2015-11-17 12:55
感谢早春二月老师出手相助,祝您投资顺利,全家安康!
作者: 亦然    时间: 2015-11-17 13:04
感谢早春二月老师出手相助,祝您投资顺利,全家安康!




欢迎光临 股票论坛 (http://100000w.com/) Powered by Discuz! X3.2