flexible midpoint reset on range trader