Navigation: Realtest Script Language > Syntax Element Details > Slope Category Multi-Bar Functions Description Linear regression slope Syntax Slope(expr, {expr2,} count) Parameters expr - data series formula (Y values) expr2 - optional second data series formula (X values -- a linear series from 1 to count is used if omitted) count - lookback period Notes Calculates the slope of a linear regression of expr evaluated for the previous count bars. See also LinReg and YInt. Copyright © 2020-2025 Systematic Solutions, LLC