
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
Created By | WaleeTheRobot |
NinjaTrader Version | 8 |
File Size | 7.6 KB |
Create Date | 04/07/2025 |
# of Downloads | 414 |
Importing to NinjaTrader 8 is Easy!
To import your 3rd party app or add-on to NinjaTrader, simply follow these 3 steps:
- Download the app or add-on file to your desktop
- From the NinjaTrader Control Center window, select the menu Tools > Import > NinjaScript Add-On…
- Select the downloaded file from your desktop
Questions?
Visit the NinjaScript File Sharing discussion in the NinjaTrader user forum to interact with fellow traders and the NinjaTrader support team.