The concept of cold-disorder energy which originates from the competition of terms with different signs in the exchange energy between electrons of magnetic matter has been introduced. The dominant term in the exchange energy of a magnetic system results in ordering of the system,whereas another term with different sign tends to disturb such an order. Thus the latter term could be defined as cold-disorder energy, which can be treated as an effective temperature. The magnetism of the system depends on the competition among the thermal motion, the order energy and the cold-disorder energy. The phase diagram is derived for the ferromagnetism, the antiferromagnetism, the spin glass and for the coexistence of these magnetic phases. When A(2) = 0 the system has Weiss ferromagnetism, when A(1) = 0 the system has Neel anti ferromagnetism, when A(1) = \A(2)\ system has spin glass magnetism, and when A(1) > \A(2)\ there is coexistence of ferromagnetism and spin glass in the the system, when A(1) < \A(2)\ there is coexistence of antiferromagnetism and spin glass in the the system.