Description
A trend strength indicator that counts bars where price exceeds a volatility-adjusted threshold from an SMA.
Implementation Logic
Compute a 100-period SMA and a 100-period standard deviation simultaneously at every tick. Utilize a secondary sliding window (e.g., 60 bars) with a custom counting buffer that increments when the close exceeds the SMA minus a fraction of the standard deviation, and decrements when that true condition falls out of the window.
Suggested Package
trend
Labels
Description
A trend strength indicator that counts bars where price exceeds a volatility-adjusted threshold from an SMA.
Implementation Logic
Compute a 100-period SMA and a 100-period standard deviation simultaneously at every tick. Utilize a secondary sliding window (e.g., 60 bars) with a custom counting buffer that increments when the close exceeds the SMA minus a fraction of the standard deviation, and decrements when that true condition falls out of the window.
Suggested Package
trendLabels