DRAWLINE(D1,OBV,S11,OBV,1),COLORLIRED,LINETHICK2;
A2:=REF(OBV,P)=LLV(OBV,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);{低點(diǎn)1}
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1); U11:=T11》REF(T11,1);
DRAWLINE(D2,OBV,U11,OBV,1),COLORLIGREEN,LINETHICK2;
Q1:=INTPART(3*8/18);
A12:=REF(OBV,Q1)=HHV(OBV,2*Q1+1);
B12:=FILTER(A12,Q1);
C12:=BACKSET(B12,Q1+1);
D12:=FILTER(C12,Q1);{高點(diǎn)2}
R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1); S112:=R112》REF(R112,1);
DRAWLINE(S11,OBV,S112,OBV,1),COLORRED,LINETHICK2;
Q2:=INTPART(3*8/18);
A22:=REF(OBV,Q2)=LLV(OBV,2*Q2+1);
B22:=FILTER(A22,Q2);
C22:=BACKSET(B22,Q2+1);
D22:=FILTER(C22,Q2);{低點(diǎn)2}
T112:=BACKSET(ISLASTBAR,BARSLAST(D22)+1); U112:=T112》REF(T112,1);
DRAWLINE(U11,OBV,U112,OBV,1),COLORGREEN,LINETHICK2;
DRAWICON(D2,OBV,26);
DRAWICON(D1,OBV,27);
壓力:REF(OBV,BARSLAST(D1)),COLORFF00FF,NODRAW;
支撐:REF(OBV,BARSLAST(D2)),COLOR00FF00,NODRAW;
向上:CROSS(OBV,壓力*1.01),NODRAW;
相對能量:(OBV-支撐)/(壓力-支撐)*100,COLORYELLOW,NODRAW;
STICKLINE(C》0,支撐,支撐,1,0),COLORGREEN;
STICKLINE(C》0,壓力,壓力,1,0),COLORRED;
DRAWTEXT(CROSS(OBV,壓力*1.01),壓力,‘壓力線(xiàn)’),COLORRED;
DRAWTEXT(CROSS(支撐*0.99,OBV),支撐,‘支撐線(xiàn)’),COLORGREEN;
(南方財富網(wǎng)SOUTHMONEY.COM)