EMA based ATR with High and Low EMAs, Trend Line and Levels all into one.
Full Source: https://github.com/WaleeTheRobot/trust-me-bro
Plots trendline with levels and uses color changing bars based on statistical methods to identify trend.
Secret Sauce
The TrendClassifier evaluates market trends using statistical methods. It combines three trend detection techniques—Ordinary Least Squares (OLS) regression slope, Mann-Kendall tau, and Sen’s slope—to produce a normalized trend score between -1 and 1.
How It Works
Extracts the most recent prices within the period and computes:
– OLS slope (linear trend strength and direction)
– Mann-Kendall tau (non-parametric trend consistency)
– Sen’s slope (robust rate of change)
It then normalizes and weights each metric by its statistical significance and outputs a composite score, where:
+1 = strong uptrend
-1 = strong downtrend
0 = neutral/insignificant trend