ICE1, Close[0] * (1- AutoMoveRange)); ObjectSet("AlertArrow2" ,OBJPROP_TIME1, Time[0] + Period() * XShift * 60); }} if(Close[0] <= AlertArrow2Price && TimeLocal() - Alert2LastTime >= ReAlertSeconds) { if(Alert2Times > 0) { PlaySound("alert2.wav"); //Alert("AlertArrow2: 价格触及报警线! 剩余提醒次数: "+ Alert2Times); //--------Debug--------- Alert2Times--; Alert2LastTime = TimeLocal(); } if(AutoMove && Alert2Times == 0) { ObjectSet("AlertArrow1", OBJPROP_PRICE1, Close[0] * (1+ AutoMoveRange)); ObjectSet("AlertArrow1" ,OBJPROP_TIME1, Time[0] + Period() * XShift * 60); ObjectSet("AlertArrow2", OBJPROP_PRICE1, Close[0] * (1- AutoMoveRange)); ObjectSet("AlertArrow2" ,OBJPROP_TIME1, Time[0] + Period() * XShift * 60); }} //---- return(0); } //+------------------------------------------------------------------+