DIF:=EMA(CLOSE,8)-EMA(CLOSE,13);DEA:=EMA(DIF,6);:=2*(DIF-DEA);GD1:=EVERY(DIF>REF(DIF,1),BARSLASTCOUNT(DIF>DEA))AND DIF>DEA;GD2:=EVERY(MACD>REF(MACD,1),BARSLASTCOUNT(DIF>DEA))AND DIF>DEA;高点1:=REF(MAX(C,O),BARSLAST(GD1)+1);高点2:=REF(MAX(C,O),BARSLAST(GD2)+1);高点:=IF(高点2>=高点1,高点2,高点1);AA:=HHV(IF(C>O,C,MAX(C,O)),BARSLASTCOUNT(高点)+1)=HHV(IF(C>O,C,MAX(C,O)),BARSLASTCOUNT(>REF(BBI,1)AND C>BBI));PP1:=BARSLAST(AA)=1;YLX:=REF(MAX(C,O),BARSLAST(PP1)+1);:OSS(C,YLX)