jm指标
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1);
D:SMA(K,3,1);
J:3*K-2*D;
RSVA:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
KA:=SMA(RSVA,3,1);
DA:=SMA(KA,3,1);
JA:=3*KA-2*DA;
TT:=(((9/7*REF(J,1)-2*REF(K,1)+12/7*REF(D,1))/100)*
(HHV(H,9)-LLV(L,9))+LLV(L,9));
STICKLINE(J<1,1,J,2,0),COLORRED;
STICKLINE(J>100,100,J,2,0),COLORCYAN;
STICKLINE(K>=REF(K,1),50,K,2,0),COLORRED;
STICKLINE(K<REF(K,1),50,K,2,0),COLORCYAN;
STICKLINE(RSVA<TT,RSVA,TT,2,0),COLORYELLOW;
MA1:=MA(CLOSE,1);
MA2:MA(CLOSE,5);
MA3:MA(CLOSE,10);
{STICKLINE(MA1>MA2,MA1,MA2,2,0),COLORRED;}
{STICKLINE(MA1<MA2,MA1,MA2,2,0),COLORCYAN;}
A:=K>=REF(K,1) AND RSVA<TT;
B:=REF(MA1,1)<REF(MA2,1) AND MA1>MA2;
CC:=COUNT(J<1,3)=3;
DD:=C>LLV(C,20);
E:=COUNT(RSVA<TT,3)=3;
XG:B AND REF(K,1)<REF(K,2) AND K>=REF(K,1) AND RSVA<TT AND REF(RSVA,1)>REF(TT,1);
STICKLINE( REF(J,1)<1 AND J>REF(J,1) AND B
AND REF(K,0)>=REF(K,1) AND MA1>MA2
AND REF(CC,1)=1 AND REF(E,1)=1
,0,100,1,0),COLORYELLOW;
jm优化选股公式
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSVA:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100;
KA:=SMA(RSVA,3,1);
DA:=SMA(KA,3,1);
JA:=3*KA-2*DA;
TT:=(((9/7*REF(J,1)-2*REF(K,1)+12/7*REF(D,1))/100)*
(HHV(H,9)-LLV(L,9))+LLV(L,9));
MA1:=MA(CLOSE,1);
MA2:=MA(CLOSE,5);
MA3:=MA(CLOSE,10);
{STICKLINE(MA1>MA2,MA1,MA2,2,0),COLORRED;}
{STICKLINE(MA1<MA2,MA1,MA2,2,0),COLORCYAN;}
A:=K>=REF(K,1) AND RSVA<TT;
B:=REF(MA1,1)<REF(MA2,1) AND MA1>MA2;
CC:=COUNT(J<1,3)=3;
DD:=C>LLV(C,20);
E:=COUNT(RSVA<TT,3)=3;
XG:=B AND REF(K,1)<REF(K,2) AND K>=REF(K,1) AND RSVA<TT AND REF(RSVA,1)>REF(TT,1);
XGG:REF(J,1)<1 AND J>REF(J,1) AND B
AND REF(K,0)>=REF(K,1) AND MA1>MA2
AND REF(CC,1)=1 AND REF(E,1)=1;
|