A fitting method of calculating local helix parameters of proteins based on dual quaternions registration fitting (DQRFit) is proposed in this paper. First, the C and N atom coordinates of each residue in the protein structure data are extracted. Then the unregistered data and reference data are constructed using the sliding windows. The square sum of the distance of the data points before and after registration is regarded as an optimization goal. We calculate the optimal rotation matrix and the translation vector using the dual quaternion registration algorithm, and get the helix parameters of the secondary structure which contain the number of residues per turn(τ), helix radius(ρ)and helix pitch(p). Furthermore, we can achieve the fitting of three-helix parameters of τ, ρ, p simultaneously with the dual quaternion registration, and can adjust the sliding windows to adapt to different error levels. Compared with the traditional helix fitting method, DQRFit has some advantages such as low computational complexity, strong anti-interference, and high fitting accuracy. It is proven that the precision of proposed DQRFit for α helix detection is comparable to that of the dictionary of secondary structure of proteins (DSSP), and is better than that of other traditional methods. This is of great significance for the protein structure classification and functional prediction, drug design, protein structure visualization and other fields in the future.