Sometimes it might be necessary to distribute orders over time since large orders done quickly can have undesirable non-negligible market effects. Here's an easy way to do that.
I took this approach because I also wanted to show the function that allows you place orders without exceeding some amount of orders. It is especially useful if you don't want limit or stop orders to build up.
Any feedback?