How to close positions when grid trading is profitable? Automatically?