通达信自动画线指标
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2013-07-26 08:12:00
公式简介:
上轨:=IF(BARSLAST(HHV(HIGH,3)>REF(HHV(HIGH,3),1))>1,HHV(HHV(HIGH,3),BARSLAST(HHV(HIGH,3)>REF(HHV(HIGH,3),1))),HHV(HIGH,3));
下轨:=IF(BARSLAST(LLV(LOW,3)<REF(LLV(LOW,3),1))>1,LLV(LLV(LOW,3),BARSLAST(LLV(LOW,3)<REF(LLV(LOW,3),1))),LLV(LOW,3));
天:=IF(BARSLAST(HHV(HIGH,25)>REF(HHV(HIGH,25),1))>1,HHV(HHV(HIGH,25),BARSLAST(HHV(HIGH,25)>REF(HHV(HIGH,25),1))),HHV(HIGH,25));
地:=IF(BARSLAST(LLV(LOW,25)<REF(LLV(LOW,25),1))>1,LLV(LLV(LOW,25),BARSLAST(LLV(LOW,25)<REF(LLV(LOW,25),1))),LLV(LOW,25));
STICKLINE(上轨!=REF(上轨,1),上轨,上轨,2.5,1),COLORYELLOW;
STICKLINE(下轨!=REF(下轨,1),下轨,下轨,2.5,1),COLORMAGENTA;
MA(天,3);
MA(地,3);
MA25:MA(CLOSE,25),COLORMAGENTA;
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;
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);
UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
支撑:DRAWLINE(XX,L,VV,L,1),COLORGREEN;
UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
阻力:DRAWLINE(XX2,H,VV2,H,1),COLORRED;
前一低:=REF(L,BARSLAST(VV));
前二低:=REF(L,BARSLAST(XX));
前一高:REF(H,BARSLAST(VV2)),COLORRED,DOTLINE;
前二高:REF(H,BARSLAST(XX2))COLORRED,DOTLINE;
K1:=前一高-REF(支撑,BARSCOUNT(前一高));
K2:=前二高-REF(支撑,BARSCOUNT(前二高));
DRAWTEXT(ISLASTBAR,前一高,' 1')COLORRED;
DRAWTEXT(ISLASTBAR,前二高,' 2')COLORRED;
K3:=BARSCOUNT(前一高)<BARSCOUNT(前二低) AND BARSCOUNT(前一高)>BARSCOUNT(前一低);
K4:=BARSCOUNT(前二高)<BARSCOUNT(前二低) AND BARSCOUNT(前二高)>BARSCOUNT(前一低);
K5:=DRAWLINE(VV2,H,UU2,支撑+K1,1),COLORGREEN,DOTLINE;
K6:=DRAWLINE(XX2,H,WW2,支撑+K2,1),COLORGREEN,DOTLINE;
上通道:IF(K3=1,K5,IF(K4=1,K6,DRAWNULL)),COLORGREEN,DOTLINE;
[url=http://www.goodgupiao.com/gupiaogongshi/29906.html][B]通达信自动画线指标[/B][/url]