The easiest way to determine the trend is to use the EMA moving average indicator, three to four moving averages are enough, with parameters of 20/50/100 or 200.

The moving averages are arranged in a bullish pattern, and the trend is bullish.

The moving averages are arranged in a bearish pattern, and the trend is bearish.

The moving averages are intertwined and the market is going sideways.