Für "incorrect start position 0 for ArraySort function" bitte die Hilfe lesen:
https://docs.mql4.com/array/arraysort
Die Meldung "possible loss of data due to type conversion" wird wohl daher kommen, dass du OrderOpenTime() in ein als Integer definiertes Array speichern willst.