N:=9;M1:=3;M2:=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; XG:J<10 AND ABS(O-C)/C<0.005;求助老师在这个选股公式的基础上,加入收盘价在50日均线上这个条件,谢谢老师!!!
公式源码示例:
试试
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;
XG:J<10 AND ABS(O-C)/C<0.005 AND C>MA(C,50);