macd顶底背离dif线背离共振副图金叉选股 股票指标炒股软件公式
27
2024 / 11 / 20
2022-12-16 21:01:03 通达信指标网
{自动画三角形}
A1:=REF(HIGH,3)=HHV(HIGH,2*3+1);
B1:=FILTER(A1,3);
C1:=BACKSET(A1,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;
H2:=D1 AND NOT(D2 AND E1>=E2);
L1:=D2 AND NOT(D1 AND E1=E2);
X1:=REF(BARSLAST(H1),1)+1;
AA:=LLVBARS(IF(L1,LOW,10000),X1);
BB:=IF(AA,AA,X1);
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,BB);
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);
UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
底:REF(L,BARSLAST(VV)),COLORRED,LINETHICK2;
顶:REF(H,BARSLAST(VV2)),COLORGREEN,LINETHICK2;
STICKLINE(VV,顶,底,0.1,0),COLORFF6633,LINETHICK3;
DRAWLINE(VV2,H,VV,L,0),COLORFF6633,LINETHICK3;
DRAWLINE(VV2,H,VV,顶,0),COLORFF6633,LINETHICK3;
STICKLINE(VV2 ,顶,底,0.1,0),COLORRED,LINETHICK3;
DRAWLINE(VV,L,VV2,H,0),COLORRED,LINETHICK3;
DRAWLINE(VV,L,VV2,底,0),COLORRED,LINETHICK3;
原文链接:https://www.tdxzb.com/?id=864
本文版权:如无特别标注,本站文章均为原创。