alexgrover

Linear Extrapolation

Basic extrapolator for forecast a time-series, all forecasts are mades length periods ahead.



This is not a estimation of the exact price

This should only be used for forecasting direction, dont expect the price to be at the same value of its forecast.

Bias, Mean absolute error, Mean percentage error...etc look useless here, its better to use correlation as a accuracy measurement.

Correlation(Forecast,close,period)


Rescaling for a better forecast ?

Transforming a non-stationary signal to a stationary signal can increase the forecasting accuracy, this can be done by detrending. Here is a list of somes detrending methods:

Auto-Bias : price - price

Mean-Bias : price - price moving average

Log transform : log(price/price moving average)

Correlation : correlation(price,n,period)




Check out the indicators we are making at luxalgo: www.tradingview.com/u/LuxAlgo/
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Thông báo miễn trừ trách nhiệm

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?