N:=25;M1:=6;M2:=6;
UPPER:=(1+M1/100)*MA(CLOSE,N);
LOWER:=(1-M2/100)*MA(CLOSE,N);
ENE:=(UPPER+LOWER)/2;
{KDJ}
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;
SG:=J>REF(J,1) AND K>REF(K,1) AND D>REF(D,1);
XG:L
希望能够帮助您,顺祝马年投资顺利!