{參數(shù):N:2,90,9;M1:2,30,3;M2:2,30,3}
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
J:3*K-2*D;
{0,COLORRED,LINETHICK1;20,COLORLIMAGENTA,LINETHICK1;
80,COLORBLUE,LINETHICK1;100,COLORGREEN,LINETHICK1;}
DRAWTEXT(ISLASTBAR,0,‘高安全區(qū)’),COLORRED;
DRAWTEXT(ISLASTBAR,20,‘安 全 區(qū)’),COLORLIMAGENTA;
DRAWTEXT(ISLASTBAR,80,‘風(fēng) 險 區(qū)’),COLORBLUE;
DRAWTEXT(ISLASTBAR,100,‘高風(fēng)險區(qū)’),COLORGREEN;
OBV:=K;
P:=12;
A1:=REF(OBV,P)=HHV(OBV,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);{高點(diǎn)1}
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11》REF(R11,1);
(南方財富網(wǎng)SOUTHMONEY.COM)