This script was recently shared for limit only orders here:
This version does not worry about keeping orders in the books and moving them around, instead it will simply market in and out. I am sharing this to reveal the difference between the 2 setups.