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;
{ _通达信股票指标公式}
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;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)