PF1 :=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RSV:=SMA(PF1,9,1);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
macd1:=2000* (2*(DIFF-DEA))/EMA(C,30);
XG:MACD1>0 AND MACD1>REF(MACD1,1)*2 AND REF(MACD1,1)>0;
PF1 :=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
RSV:=SMA(PF1,9,1);
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
macd1:=2000* (2*(DIFF-DEA))/EMA(C,30);
XG:MACD1>0 AND MACD1>REF(MACD1,1)*2 AND REF(MACD1,1)>0;