Answer
You can do this by setting up your bot with only 2 grids, no more. By doing 2 grid strategy, you will buy full amount at the lower price, and sell full amount at the higher price. Using grids more than 2 will make your investment per grid is not 100% of your investment, but this strategy will perform better in scalping trades since more transaction will be executed.