很久沒有寫指標了,因為感覺傳統(tǒng)的指標會用、用好就足夠了。這里給大家一個綜合運用KDJ和RSI的指標,期間做了一點改動,有點靈活運用的意思。呵呵。
希望大家喜歡。至于用法,看圖就會的。特別要注意信號的共振哦。參數(shù)自己填上:N:1 100 5,N1:1 100 3,M:1 100 20. 下面是源碼:
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
快:SMA(RSV,3,1),COLORGREEN;
慢:SMA(快,3,1);
快慢比:快/慢,NODRAW;
DRAWBAND(快,RGB(155,50,50),慢,RGB(0,100,50));
介入:IF(快<M,20,10)COLORLIRED;
M:=INTPART(3*10/5);
A12:=REF(快,M)=HHV(快,2*M+1);
B12:=FILTER(A12,M);
C12:=BACKSET(B12,M+1);
D12:=FILTER(C12,M);{高點}
R112:=BACKSET(ISLASTBAR,BARSLAST(D12)+1); S112:=R112>REF(R112,1);
短壓:DRAWLINE(D12,快,S112,快,1),COLORFF9966;
M1:=INTPART(3*20/5);
A111:=REF(快,M1)=HHV(快,2*M1+1);
B111:=FILTER(A111,M1);
C111:=BACKSET(B111,M1+1);
D1:=FILTER(C111,M1);{高點}
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1); S11:=R11>REF(R11,1);
長壓:DRAWLINE(D1,快,S11,快,1),COLORFF99FF;
LC:=REF(CLOSE,1);
RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,NODRAW;
DRAWICON(REF(RSI1,1)<=10 AND RSI1>REF(RSI1,1),10,1);
DRAWICON(REF(RSI1,1)>=80 AND RSI1<REF(RSI1,1),90,2);
極強:STICKLINE(CLOSE>0,80,80,0.8,1)COLORGREEN;
極弱:STICKLINE(CLOSE>0,20,20,0.8,1)COLORMAGENTA;
(南方財富網(wǎng)SOUTHMONEY.COM)