一
N1:=14;N2:=14;N3:=42;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),N3,1)/SMA(ABS(CLOSE-LC),N3,1)*100;
XG:CROSS(RSI1,RSI3) AND V/2 =REF(V,1);
二
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD:=(DIF-DEA)*2;
M1:=RANGE(DEA,-0.15,0);
M2:=MACD =REF(MACD,1);
M3:=M1 AND M2;
M4:=M3!=REF(M3,1) AND M3;
M5:=DEA =REF(DEA,1) AND DIF =REF(DIF,1);
XM:M4 AND M5;