

Do you want external input and to contribute to society? Open source
Do you want external input but don’t want your code used in other projects? Source available (ie open source with very restricted licensing)
Do you not want any of that and just want to do your own thing? Closed source
A good thing to remember is that open source invites both good and bad criticism, as well as help, so it can help you improve but it can also be hard to handle the less than helpful people.
Also, like real life, the more you hide info, the less trustworthy you are. Open source puts you in a default trustable position for many people, while closed source puts you in a default untrustable position.

Once you limit what kind of usage people can do with it (ie no commercial use) you are entering the source available section and not so much open source.
Usually in open source, when the creators are worried about commercial use, they use a license that enforces open sourcing any derived works, which means that any commercial use will only happen without any modification or with contributions to the community. The revenue model in such cases is usually tech support or an upstream closed source version.
For open source licenses you can checkout Open license helper
But what you are describing is either source available or closed source.