mks17

Linear Regression Trendlines & Channels

mks17 Cập nhật   
This new script came to me one night all of a sudden and it seems to be common knowledge for how good it works.

The script utilizes linear regression to determine trendlines and channels, identifying instances where closing prices closely align with the regression line. When a significant number of closing prices fall within proximity to the regression line, trendlines are displayed or generated.

Users have the flexibility to customize the proximity criteria by adjusting the margin and percentage thresholds. These parameters allow for precise control over how closely the closing prices should adhere to the regression line, as well as the minimum percentage of closing prices required to fit within the specified margin.

Moreover, the script is adaptable to logarithmic scales, ensuring compatibility with various chart configurations. Additionally, it stores all relevant data in an array for convenient access in future scripts or analyses.
Phát hành các Ghi chú:
Remove the array part and republish for better showing

Mã được bảo vệ
Tập lệnh này được xuất bản mã nguồn đóng và bạn có thể sử dụng một cách tự do. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ. Bạn không thể xem hoặc sửa đổi mã nguồn.
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 đồ?