We present a combined weighted neighborhood sequence distance function on the square grid with three types of steps. For this general distance function, we compute parameters that optimize an error function for the asymptotic shape of digital disks. We also analyze approximations of the parameters that can be used in the digital grid used here. An algorithm that can be used for image processing applications is also presented.