Magnetic field and density waves in quasi 1D conductors