Adaptive Trend Finder PRO Auto Log Regression
- Indicators
- Hong Cheng Ren
- Version: 1.8
- Activations: 5
Adaptive Trend Finder (ATF) — Auto-Selected Trend Period & Log-Regression Channel
ATF scans candidate lookback windows, picks the highest-correlation (Pearson-R) period, and draws a log-regression midline with deviation bands. It also reports trend strength / Pearson’s R, supports multi-instance safely, and defaults to object-based drawing for smoother charts (optional plot/fill buffers).
Key Features
-
Auto Period Selection by maximizing Pearson-R.
-
Log-Regression Channel: midline + upper/lower bands with configurable deviation multiplier.
-
Trend Strength / Pearson’s R readout (toggleable).
-
Auto Fallback to short-term candidates if long-term history is insufficient (optional notice).
-
Clean UI Control: master switch InpShowInfoLabel (OFF by default).
-
Multi-Instance Safe: global incremental ID + ChartID prefix.
-
Object Drawing by Default (OBJ_TREND) to reduce flicker; optional plot lines/fill.
-
Extend Style: right / both / left / none (Pine-like extend behavior).
Inputs (Highlights)
-
Source & Mode: InpSource , InpUseLongTerm
-
Stability: InpMaxBars , InpAutoFallbackShort , InpShowFallbackNote
-
Channel: InpDevMult , colors/width/alpha/style
-
Info: InpShowInfoLabel , InpShowAutoPeriod , InpShowTrendStrength , InpShowPearsonR , InpShowCAGR (D1/W1), position/size
-
Rendering: InpShowPlots , InpShowFill
-
Extend: InpExtendStyle
-
Instance: InpInstanceTag
Notes
-
Use CAGR on D1/W1 to gauge annualized trend quality.
-
Try InpDevMult between 1.5–2.5 for robust bands.
-
Enable Plots if you need buffer outputs for other tools or filled channels.
Changelog
-
v1.08.1: removed color→long casts; switched to 4-arg PLOT_LINE_COLOR ; added InpShowInfoLabel master switch (OFF by default); smoother object updates.
Disclaimer: For informational/educational purposes only. Not financial advice.