Shine a red light at the train if it's nighttime. If it's too dark for the train operator to see your signals, shine a red light back and forth at the oncoming train. If you don't have a red light, use any other color so the operator can tell you're trying to convey a message.