智能五日箱体主图指标 (源码)

2012-04-11 08:11:00来源:本站整理浏览:281

通达信智能五日箱体主图指标公式股票软件源码如下:

MA60:=MA(CLOSE,60)COLORMAGENTA;
MA120:=MA(CLOSE,120)COLORLIRED;
DRAWBAND(MA(CLOSE,60),RGB(96,50,96),MA(CLOSE,120),RGB(15,96,96));
STICKLINE(OPEN<=REF(LOW,5)AND REF(LOW,WEEKDAY)<REF(LOW,5),REF(LOW,5),REF(LOW,WEEKDAY),20,1),COLORCYAN;
{www.gpxiazai.com 股票软件下载网_通达信股票指标公式}
STICKLINE(OPEN>=REF(HIGH,5)AND REF(HIGH,WEEKDAY)>REF(HIGH,5),REF(HIGH,5),REF(HIGH,WEEKDAY),20,01),COLORYELLOW;
{阳K线}
STICKLINE(CLOSE>=OPEN,C,O,4.7,0),COLOR000033;
STICKLINE(CLOSE>=OPEN,C,O,3.9,0),COLOR000055;
STICKLINE(CLOSE>=OPEN,C,O,3,0),COLOR000077;
STICKLINE(CLOSE>=OPEN,C,O,2.1,0),COLOR000099;
STICKLINE(CLOSE>=OPEN,C,O,1,0),COLOR0000DD;
{阳线上下影}
STICKLINE(CLOSE>=OPEN,L,H,0,0), COLORRED;
{阴K线}
STICKLINE(CLOSE<OPEN,C,O,4.7,0),COLOR003300;
STICKLINE(CLOSE<OPEN,C,O,3.9,0),COLOR005500;
STICKLINE(CLOSE<OPEN,C,O,3,0),COLOR007700;
STICKLINE(CLOSE<OPEN,C,O,2.1,0),COLOR009900;
STICKLINE(CLOSE<OPEN,C,O,1,0),COLOR00DD00;
{阴线上下影}
STICKLINE(CLOSE<OPEN,L,H,0,0), COLOR00EC00;
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1); B1:=FILTER(A1,3); C1:=BACKSET(B1,3+1); D1:=FILTER(C1,3);{高点}
A2:=REF(LOW,3)=LLV(LOW,2*3+1); B2:=FILTER(A2,3); C2:=BACKSET(B2,3+1); D2:=FILTER(C2,3);{低点}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2; E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
L1:=(D2 AND NOT(D1 AND E1<E2)); H2:=D1 AND NOT(D2 AND E1>=E2);
X1:=REF(BARSLAST(H1),1)+1; F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);{过滤后低点}
L2:=LD OR ISLASTBAR OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1; F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);{过滤后高点}
DRAWLINE(LD,L,HD,H,0),COLORWHITE,LINETHICK1,DOTLINE;
DRAWLINE(HD,H,LD,L,0),COLORWHITE,LINETHICK1,DOTLINE;
J1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HD),BARSLAST(LD))+1); J2:=J1>REF(J1,1);
DRAWLINE(J2,IF(HD,H,L),ISLASTBAR,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),COLORWHITE,LINETHICK1,DOTLINE;

通达信智能五日箱体主图指标公式

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式