Detecting a trend in the market can indeed be done by these three things, you can use the moving average of the market, you can use the Moving Average indicator or you can do it using the Bollinger Band indicator, all of that is your choice, but if you don't match all of that you can use the indicator of your choice