Valve for hydraulic plants comprising: - a valve body having at least one inlet, at least one outlet, at least one first and one second access (8, 10) and at least one drain, each of which is configured for allowing the passage of fluid, optionally the passage of water, said valve body comprising: ∘ at least one first channel extended between the inlet and the first access, said first channel having at its interior at least one seat interposed between the inlet and the first access, wherein the drain is in fluid communication with said first channel and arranged at least partly facing said seat, ∘ at least one second channel, separate from first channel, extended between the outlet and the second access, - at least one container, defining a compartment, engaged with the valve body at said first and second accesses (8, 10), - at least one shutter housed in the seat and configured for intercepting the fluid passing from said first channel, wherein the shutter is movable at least between: ∘ a first operating position, in which the shutter allows the fluid communication between the inlet and the first access so as to allow the introduction of a fluid arriving from the inlet into the compartment of the container through said first access, wherein the shutter, in the first operating position, prevents passage of fluid through the drain, ∘ a second operating position, in which the shutter allows the fluid communication between the first access and the drain, wherein the shutter, in the second operating position, prevents fluid communication between the inlet and the first access, and - at least one magnetic device at least partly arranged in the compartment of the container and configured for attracting thereto ferrous or ferromagnetic particles present in the fluid passing from the compartment. - a valve body having at least one inlet, at least one outlet, at least one first and one second access (8, 10) and at least one drain, each of which is configured for allowing the passage of fluid, optionally the passage of water, said valve body comprising: ∘ at least one first channel extended between the inlet and the first access, said first channel having at its interior at least one seat interposed between the inlet and the first access, wherein the drain is in fluid communication with said first channel and arranged at least partly facing said seat, ∘ at least one second channel, separate from first channel, extended between the outlet and the second access, ∘ at least one first channel extended between the inlet and the first access, said first channel having at its interior at least one seat interposed between the inlet and the first access, wherein the drain is in fluid communication with said first channel and arranged at least partly facing said seat, ∘ at least one second channel, separate from first channel, extended between the outlet and the second access, - at least one container, defining a compartment, engaged with the valve body at said first and second accesses (8, 10), - at least one shutter housed in the seat and configured for intercepting the fluid passing from said first channel, wherein the shutter is movable at least between: ∘ a first operating position, in which the shutter allows the fluid communication between the inlet and the first access so as to allow the introduction of a fluid arriving from the inlet into the compartment of the container through said first access, wherein the shutter, in the first operating position, prevents passage of fluid through the drain, ∘ a second operating position, in which the shutter allows the fluid communication between the first access and the drain, wherein the shutter, in the second operating position, prevents fluid communication between the inlet and the first access, and - at least one magnetic device at least partly arranged in the compartment of the container and configured for attracting thereto ferrous or ferromagnetic particles present in the fluid passing from the compartment. ∘ a first operating position, in which the shutter allows the fluid communication between the inlet and the first access so as to allow the introduction of a fluid arriving from the inlet into the compartment of the container through said first access, wherein the shutter, in the first operating position, prevents passage of fluid through the drain, ∘ a second operating position, in which the shutter allows the fluid communication between the first access and the drain, wherein the shutter, in the second operating position, prevents fluid communication between the inlet and the first access, and - at least one magnetic device at least partly arranged in the compartment of the container and configured for attracting thereto ferrous or ferromagnetic particles present in the fluid passing from the compartment.