Many complex systems observed in nature and society can be described in terms of network. A salient feature of networks is the presence of community patterns. Network-based models have already been applied in the analysis of data from very diverse areas, from epidemics modeling to periodicity detection in meteorological data. In this paper, inspired by the formation of community structures, such as the metabolic networks and the anatomical and functional connectome observed in biological neural networks, we present a model which makes use of connector hubs to detect price trend reversals and to automatize decision-making processes in stock market trading operations for selecting a good investment strategy and improve the returns. It starts by mapping the historical stock price time series as a network, where each node represents a price variation range and the edges are generated according to the time sequential order in which these ranges occur. Afterwards, communities of the constructed network so far are detected, which represent the up and down trends of the stock prices. The model has two phases: (1) Trend detection phase, where the price trend communities are detected and trend labels are generated; and (2) Operating phase. In this phase, the proposed technique predicts trend labels to future stock prices, in such a way that these trends can be used as triggers to perform buying and selling operations of the stock. We evaluate the model by applying it on historical data from 10 of the most traded stocks from both NYSE and the Brazilian Stock Exchange (Bovespa). The obtained results are promising, with the model’s best returns being able to outperform the stock price returns for the same period in 15 out of the 20 cases under consideration.