In this paper, we introduce a positioning system to self-adjust the spectral components of holograms recorded by an off-axis digital holography setup. The incidence angle of the reference arm is carried out by two motorized actuators controlled by an algorithm that automatically adjusts it to avoid the overlapping of the spectral components. The right positioning of the spectral components allows selection of a spectral region to extract only the virtual component so that, after an inverse Fourier transformation, the object wave field can be obtained, thus eliminating the undesired components and increasing the image quality of the reconstructed image.