看主买卖(中买、主力、中卖)
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2011-08-02 07:53:00
公式简介:
【大智慧】看主买卖(中买、主力、中卖)-指标公式源码
{缺省:
N1 6 1 100 1
N2 12 1 100 1
N3 26 1 100 1}
MA5:=MA(CLOSE,5);
MA10:=MA(CLOSE,10);
MA20:=MA(CLOSE,20);
MA60:=MA(CLOSE,60);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);
ZX:=100*EMA(EMA(MTM,N2),N2)/EMA(EMA(ABS(MTM),N2),N2);
CX:=100*EMA(EMA(MTM,N3),N3)/EMA(EMA(ABS(MTM),N3),N3);
DXGD:=LLV(DX,2)=LLV(DX,5) AND CROSS(DX,MA(DX,2));
ZXGD:=LLV(ZX,2)=LLV(ZX,5) AND CROSS(ZX,MA(ZX,2)) AND DX>ZX;
中买:IF(ZXGD AND BETWEEN(DX,0,50) AND BETWEEN(CX,0,50),1,0),COLOR00FFFF,POINTDOT;
DTPL:=DX>ZX AND ZX>CX AND CX>0;
QSXS:=DX>REF(DX,1) AND ZX>REF(ZX,1);
TSJC:=CROSS(DX,CX) AND CROSS(ZX,CX);
优选:IF(CROSS(DTPL,0.8) AND (TSJC OR COUNT(QSXS,3)=3) AND CX<40,1,0),COLOR0000FF,POINTDOT;
中卖:IF(CROSS(CX,ZX) AND DX<ZX,1,0),colorff9900;
买:IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0),COLORRED;
卖:IF(HHV(DX,2)=HHV(DX,7) AND COUNT(DX>50,2) AND CROSS(MA(DX,2),DX),1,0),COLOR00FF00;
STICKLINE(DX>0,0,DX,3,0),COLOR00FF00;
STICKLINE(ZX>0,0,ZX,3,0),COLOR00FFFF;
STICKLINE(CX>0,0,CX,3,0),COLORFF00FF;
DRAWTEXT(中买,low-0.03,'★'),COLOR00FFFF,ALIGN1;
DRAWTEXT(中卖,high*1.025,'●'),COLORFF9900,ALIGN1;
DRAWTEXT(filter(买=1,5),low-0.03,'买'),COLORRED,ALIGN1;
DRAWTEXT(filter(卖=1,5),high*1.025,'卖'),COLOR00FF00,ALIGN1;
DRAWICON(优选,low-0.03,1),ALIGN1;
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:SMA(RSV,3,1),COLORFFFFFF,PRECIS0;
D:SMA(K,3,1),COLOR00FFFF,PRECIS0;
J:=3*K-2*D;
超跌:IF(J<0,10,0),COLORFFFF00,PRECIS0;
BDDD:=LLV(J,2)=LLV(J,8);
重启:IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0),COLORwhite,PRECIS0;
[url=http://www.goodgupiao.com/gupiaogongshi/14934.html][B]看主买卖(中买、主力、中卖)[/B][/url]