RealTest User Guide
RealTest User Guide

 

 

Navigation: Realtest Script Language > Syntax Element Details >

LinReg

 

 

 

 

Category

Multi-Bar Functions

Description

Linear regression

Syntax

LinReg(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 endpoint of a linear regression of expr evaluated for the previous count bars.

This is equivalent to YInt + (Slope * latest_x_value).

This function is equivalent to =FORECAST in Excel.

 

 

 

Copyright © 2020-2024 Systematic Solutions, LLC