网友求助:

零轴:0;
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
周DIF:="MACD.DIF#WEEK"(12,26,9);
周DEA:="MACD.DEA#WEEK"(12,26,9);
STICKLINE("MACD.MACD#WEEK">=0,0,"MACD.MACD#WEEK",2.5,0),COLORLIRED;
STICKLINE("MACD.MACD#WEEK"<0,0,"MACD.MACD#WEEK",2.5,0),COLORLIGREEN;
DRAWBAND(周DIF,RGB(255,200,70),周DEA,RGB(70,100,50));
DRAWBAND(DIF,RGB(155,50,50),DEA,RGB(0,100,50));
{DRAWBAND(DIF,RGB(255,200,70),DEA,RGB(70,100,50));};
MACD:=(DIF-DEA)*2,COLORSTICK;
STICKLINE(MACD>=0,0,MACD,2,0),COLORRED;
STICKLINE(MACD<0,0,MACD,2,0),COLORLICYAN;
 

 

解答如下:

日金叉选股:
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:CROSS(K,D);

周金叉选股:
ZK:=MA("KDJ.K#WEEK"(9,3,3) ,5);
ZD:=MA("KDJ.D#WEEK"(9,3,3) ,5);
XG:CROSS(ZK,ZD);

月金叉选股“
YK:=MA("KDJ.K#MONTH"(9,3,3),20);
YD:=MA("KDJ.D#MONTH"(9,3,3),20);
XG:CROSS(YK,YD);