LONG:=26;SHORT:=12;M:=9;
DIF:=EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA:=EMA(DIF,M);
macd:=2*(DIF-DEA);
{ _大智慧股票指标公式}
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;
周K:=MA("kdj.K#WEEK"(9,3,3) ,5);
周D:=MA("kdJ.D#WEEK"(9,3,3) ,5);
周J:=MA("KDJ.J#WEEK"(9,3,3) ,5);
周金:crOSS("KDJ.K#WEEK"(9,3,3),"KDJ.D#WEEK"(9,3,3)) and MacD;