Points2One module for QGIS is a tool that allows you to create either a linestring or a polygon layer using a point layer connected however you like based on input parameters.
The plugin is available for version QGIS 3 and it is implemented in the Python programming language. Our plugin is experimental. It is not in the QGIS plugin repository.
The plugin can be downloaded here