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/
สคริปต์โอเพนซอร์ซ

ด้วยจิตวิญญาณของ TradingView อย่างแท้จริง ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ไชโยให้กับผู้เขียน! คุณสามารถใช้ได้ฟรี แต่การใช้รหัสนี้ซ้ำในสิ่งพิมพ์อยู่ภายใต้กฎระเบียบการใช้งาน คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้บนชาร์ตได้

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมที่ เงื่อนไขการใช้บริการ

ต้องการที่จะใช้สคริปต์นี้บนชาร์ตใช่ไหม?