By stacking ferrite-based elements (FBEs) with three kinds of magnetic fields, a tunable optical multifunctional device with wide-angle energy steering and magnetic information detection-coding is designed. For the transverse electric (TE) wave, the effective refractive index and properties of FBEs in a constant magnetic field are investigated theoretically. Based on this, we analyze the abilities of FBEs to control the energy of the electromagnetic (EM) wave in a gradient magnetic domain systematically. The computed results show that the ultra-wideband absorption and the transmission window in the absorption band are realized within the incident angle of 0−60° for the forward propagation. Reciprocal energy coexistence of absorption and transmission can be also available by expanding the applied magnetic field into the pairwise symmetric distribution. In addition, the transmission window is utilized to achieve magnetic intensity detection and the detection results (with or without absorption peak) are coded with logical values “0” and “1”. Finally, a logic gate is formed in which continuous random magnetic information can be encoded. Those calculated results can apply for wide-angle reciprocal energy steering, multipurpose magnetic detection, and coding.