backtesting midDistance: must use midDistance in trader