The invention discloses a target tracking method, a terminal, and a readable storage medium of a photoelectric tracker, belonging to the field of photoelectric detection, including judging that the target is in a moving state, controlling the tracking line of the photoelectric tracker to follow the target to move; collecting the work of the photoelectric tracker parameters, and eliminate the mechanical error in the working process of the photoelectric tracker; obtain the stable tracking time, and judge whether the stable tracking time is greater than the set stable time; if it is less than, use the digital second-order loop tracking algorithm to calculate the feedforward compensation amount, If it is greater than, calculate the final tracking feed-forward compensation amount, and repeat the tracking of the moving target; the present invention eliminates mechanical errors caused by mechanical vibration, etc., and improves the accuracy of data output; then calculates the stable tracking time and compares it with the stable time , if the stable tracking time cannot meet the temperature time, then change the stable tracking time by superimposing the feedforward compensation amount to obtain the final tracking feedforward compensation amount.