The closer to the battery, the better because the battery helps filter electrical noise.