<小天-鬼KD>漂亮好用!
它有鬼,鬼变脸。{nn=20}
DRAWGBK(c,STRIP(RGB(80,90,0),RGB(0,90,0),0));
A:=REF(C,1);
B:=MAX(REF(C,1),REF(A,1));
D:=MIN(REF(C,1),REF(A,1));
STICKLINE(C > B,C,B,8,0),COLORRED;
STICKLINE(C < B AND C>D AND REF(C,1)>=REF(C,2),C,B,8,0),COLORRED;
STICKLINE(C < D AND REF(C,1) >= REF(D,1),A,D,8,0),COLORRED;
STICKLINE(C > A AND REF(C,1) >= REF(D,1),A,C,8,0),COLORRED;
STICKLINE(C = A AND REF(C,1) >= REF(D,1),A,C,8,0),COLORRED;
STICKLINE(C > B AND REF(C,1) < REF(D,1),B,C,8,0),COLORRED;
STICKLINE(A>=REF(C,2) AND C<A AND C>=REF(C,2),A,C,8,0),COLORRED;
STICKLINE(REF(C,1)<REF(C,2) AND C>=A AND C<REF(C,2),A,C,8,0),COLORFF0000;
STICKLINE(C < D AND REF(C,1) >= REF(D,1),C,D,8,0),COLORFF0000;
STICKLINE(C < D AND REF(C,1) < REF(D,1),A,C,8,0),COLORFF0000;
STICKLINE(C > B AND REF(C,1) < REF(D,1),A,B,8,0),COLORFF0000;
STICKLINE(C > D AND C < B AND REF(C,1) < REF(D,1),A,C,8,0),COLORFF0000;
STICKLINE(C < A AND REF(C,1) < REF(B,1),A,C,8,0),COLORFF0000;
STICKLINE(C = A AND REF(C,1) < REF(B,1),A,C,8,0),COLORFF0000;
STICKLINE(C > B,C,B,6,0),COLOR0066FF;
STICKLINE(C < B AND C>D AND REF(C,1)>=REF(C,2),C,B,6,0),COLOR0066FF;
STICKLINE(C < D AND REF(C,1) >= REF(D,1),A,D,6,0),COLOR0066FF;
STICKLINE(C > A AND REF(C,1) >= REF(D,1),A,C,6,0),COLOR0066FF;
STICKLINE(C = A AND REF(C,1) >= REF(D,1),A,C,6,0),COLOR0066FF;
STICKLINE(C > B AND REF(C,1) < REF(D,1),B,C,6,0),COLOR0066FF;
STICKLINE(A>=REF(C,2) AND C<A AND C>=REF(C,2),A,C,6,0),COLOR0066FF;
STICKLINE(REF(C,1)<REF(C,2) AND C>=A AND C<REF(C,2),A,C,6,0),COLORFF6600;
STICKLINE(C < D AND REF(C,1) >= REF(D,1),C,D,6,0),COLORFF6600;
STICKLINE(C < D AND REF(C,1) < REF(D,1),A,C,6,0),COLORFF6600;
STICKLINE(C > B AND REF(C,1) < REF(D,1),A,B,6,0),COLORFF6600;
STICKLINE(C > D AND C < B AND REF(C,1) < REF(D,1),A,C,6,0),COLORFF6600;
STICKLINE(C < A AND REF(C,1) < REF(B,1),A,C,6,0),COLORFF6600;
STICKLINE(C = A AND REF(C,1) < REF(B,1),A,C,6,0),COLORFF6600;
STICKLINE(C > B,C,B,4,0),COLOR0099FF;
STICKLINE(C < B AND C>D AND REF(C,1)>=REF(C,2),C,B,4,0),COLOR0099FF;
STICKLINE(C < D AND REF(C,1) >= REF(D,1),A,D,4,0),COLOR0099FF;
STICKLINE(C > A AND REF(C,1) >= REF(D,1),A,C,4,0),COLOR0099FF;
STICKLINE(C = A AND REF(C,1) >= REF(D,1),A,C,4,0),COLOR0099FF;
STICKLINE(C > B AND REF(C,1) < REF(D,1),B,C,4,0),COLOR0099FF;
STICKLINE(A>=REF(C,2) AND C<A AND C>=REF(C,2),A,C,4,0),COLOR0099FF;
STICKLINE(REF(C,1)<REF(C,2) AND C>=A AND C<REF(C,2),A,C,4,0),COLORFF9900;
STICKLINE(C < D AND REF(C,1) >= REF(D,1),C,D,4,0),COLORFF9900;
STICKLINE(C < D AND REF(C,1) < REF(D,1),A,C,4,0),COLORFF9900;
STICKLINE(C > B AND REF(C,1) < REF(D,1),A,B,4,0),COLORFF9900;
STICKLINE(C > D AND C < B AND REF(C,1) < REF(D,1),A,C,4,0),COLORFF9900;
STICKLINE(C < A AND REF(C,1) < REF(B,1),A,C,4,0),COLORFF9900;
STICKLINE(C = A AND REF(C,1) < REF(B,1),A,C,4,0),COLORFF9900;
STICKLINE(C > B,C,B,2,0),COLORYELLOW;
STICKLINE(C < B AND C>D AND REF(C,1)>=REF(C,2),C,B,2,0),COLORYELLOW;
STICKLINE(C < D AND REF(C,1) >= REF(D,1),A,D,2,0),COLORYELLOW;
STICKLINE(C > A AND REF(C,1) >= REF(D,1),A,C,2,0),COLORYELLOW;
STICKLINE(C = A AND REF(C,1) >= REF(D,1),A,C,2,0),COLORYELLOW;
STICKLINE(C > B AND REF(C,1) < REF(D,1),B,C,2,0),COLORYELLOW;
STICKLINE(A>=REF(C,2) AND C<A AND C>=REF(C,2),A,C,2,0),COLORYELLOW;
STICKLINE(REF(C,1)<REF(C,2) AND C>=A AND C<REF(C,2),A,C,2,0),COLORCYAN;
STICKLINE(C < D AND REF(C,1) >= REF(D,1),C,D,2,0),COLORCYAN;
STICKLINE(C < D AND REF(C,1) < REF(D,1),A,C,2,0),COLORCYAN;
STICKLINE(C > B AND REF(C,1) < REF(D,1),A,B,2,0),COLORCYAN;
STICKLINE(C > D AND C < B AND REF(C,1) < REF(D,1),A,C,2,0),COLORCYAN;
STICKLINE(C < A AND REF(C,1) < REF(B,1),A,C,2,0),COLORCYAN;
STICKLINE(C = A AND REF(C,1) < REF(B,1),A,C,2,0),COLORCYAN;
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,3,1);
D1:=SMA(K,3,1);
J:=3*K-2*D1;
RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=3*K12-2*D12;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
支撑位:IF(CROSS(j,j24),L,REF(L,BARSLAST(CROSS(j,j24)))),COLORYELLOW,LINETHICK2;
压力位:IF(CROSS(j24,j),H,REF(H,BARSLAST(CROSS(j24,j)))),COLORred,LINETHICK2;
U2L:=IF(C>=MA(C,NN),80,50);
L2L:=IF(C>=MA(C,Nn),50,20);
RH1:=IF(j<U2L AND REF(j,1)>=U2L,HHV(REF(H,1),BARSLAST(j>=U2L AND REF(j,1)<U2L)-1),
REF(HHV(REF(H,1),BARSLAST(j>=U2L AND REF(j,1)<U2L)-1),BARSLAST(j<U2L AND REF(j,1))));
RH4:=IF(H>RH1,L,REF(L,BARSLAST(H>RH1)));
RH42:=IF(H>RH1,j,REF(j,BARSLAST(H>RH1)));
RH5:IF(H>RH4 AND j<RH42 AND j<j24,H,REF(H,BARSLAST(H>RH4 AND j<RH42 AND j<j24))),COLORgreen;
RL1:=IF(j>L2L AND REF(j,1)<=L2L,LLV(REF(L,1),BARSLAST(j<=L2L AND REF(j,1)>L2L)-1),
REF(LLV(REF(L,1),BARSLAST(j<=L2L AND REF(j,1)>L2L)-1),BARSLAST(j>L2L AND REF(j,1))));
RL4:=IF(L<RL1,H,REF(H,BARSLAST(L<RL1)));
RL42:=IF(L<RL1,j,REF(j,BARSLAST(L<RL1)));
RL5:IF(L<RL4 AND j>RL42 AND j>j24,L,REF(L,BARSLAST(L<RL4 AND j>RL42 AND j>j24))),COLORMAGENTA;
cb:=amount/v/100;
cd:=cb>h or cb<l;
STICKLINE(cd<1,cb-0.002,cb+0.002,8,1),COLORYELLOW;
|