[PEL] 复制代码
RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
FASTK:=SMA(RSV,3,1);
K:SMA(FASTK,3,1);
D:SMA(K,2,1);
input:p(26,20,100,8),s(12,5,40,4),m(9,2,60,6);
DIFF :EMA(CLOSE,S) - EMA(CLOSE,P);
DEA :EMA(DIFF,M);
MACD1 :2*(DIFF-DEA), COLORSTICK;
ma20:ma(c,20);
dayo:CALLSTOCK('',vtOPEN,6,0);
dayc:CALLSTOCK('',vtCLOSE,6,0);
weeko:CALLSTOCK('',vtOPEN,7,0);
weekc:CALLSTOCK('',vtCLOSE,7,0);
montho:CALLSTOCK('',vtOPEN,8,0);
monthc:CALLSTOCK('',vtCLOSE,8,0);
选股条件:macd1<0 and K<30 and (max(dayo,dayc)<ma20 or max(weeko,weekc)<ma20 or max(montho,monthc)<ma20 )