Trends can be easily identified using most anything, once they are underway. Starting and ending points not so. IMO PA (time, price & pattern) work better than any squiggly line indicator ever could.
I developed an indicator that's served me as well as anything. I call it 50x50. Which means, 50 bars of a 50 period simple MA that's been rising, and I am at least 50 days into it. For example, using daily bars, at present I want to be 50 days into a 50 MA that has an upward slope. MA 50 today is above MA 50 bars ago, and I am at least 50 days into the rising 50 MA. Adjust as you see fit for your timeframe. But understand that no indicator can tell you when a trend will end. Only that you are currently involved in one, and the wind is at your back.
For me yes, but it adapts nicely for any really, might want to widen the 0.03% to increase the range, the High and Low self set themselves. Still tweaking it, trying to find something that works in more conditions, less killy in the wrong conditions!
It looks too sensitive (at least with the standard parameters Window = 9, Sigma = 6 Offset = 0.85) to be used for determining if a market is currently in a trend or not. For example, https://www.prorealcode.com/prorealtime-indicators/alma-arnaud-legoux-moving-average/
Often time, when the percentage of daily change increased, it's a signal of direction change. For example AAPL from April to September 2020 versus from September 2020 onward. A good measure of trend of overall market is to look at the daily change frequency distribution. A trending market tends to have distribution curves close to zero which lend credence to reversion to the mean.
Indicators wouldn't help. Complex maths wouldn't help. I use visual recognition. I use discretion. Detecting trendy vs nontrendy market is art rather than science. There are many times where a nontrendy market suddenly become a trendy market. There are many times where a trendy market is actually a nontrendy market. All the best in your pursuit of this programming stuff.