LC:=REF(CLOSE,1);
rsi:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(Abs((CLOSE - LC)),3,1)) * 100);
mtm1:=C-REF(C,1);
DX:=100*EMA(EMA(MTM1,6),6)/EMA(EMA(ABS(MTM1),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX< 0,2) AND crOSS(DX,MA(DX,2)),1,0);
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
macd:=(DIF-DEA)*2;
XG1:=MACD>0;
钱袋:买 AND XG1;