add scan function to multibacktesting