Linear Regression code

Team,

what is the equal PI code for following amibroker linear regression code

LinearReg( C, 10 )

There are Linear Regression Functions in Tradescript  for example

R2 (R-Squared)
RSquared(Vector, Periods)

Slope
Slope(Vector, Periods)

Forecast
Forecast(Vector, Periods)

Intercept
Intercept(Vector, Periods)

gone through tradescript, little bit confuse, which function exactly suits for above my query out of 4 function?

YOU CAN USE FORCAST