LC := REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(Abs(CLOSE-LC),14,1)*100;
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,18);
DEA:=EMA(DIFF,7);
DIF:=DIFF,COLOR0000FF;
macd买:IF(crOSS(DIF,DEA) AND RSI<=60 ,2,0)-0;
LC := REF(CLOSE,1);
rsi:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(Abs(CLOSE-LC),14,1)*100;
DIFF:=EMA(CLOSE,8)-EMA(CLOSE,18);
DEA:=EMA(DIFF,7);
DIF:=DIFF,COLOR0000FF;
macd买:IF(crOSS(DIF,DEA) AND RSI<=60 ,2,0)-0;