According to this article, the Martian atmosphere can be saved from being dispersed into space through an artificial magnetic shield.
I'm interested in knowing the costs and mechanics that can make it happen today. My question is not limited to solar winds, it includes cosmic radiation as well. Will superconducting magnets be more efficient? Is it better to put magnets at the north and south poles?