You know there's a grid trading script in the manual right?