PINE LIBRARY
Cập nhật regressionUtilities

Library "regressionUtilities"
get_linear_regression(bar_index_array, prices_array, stdDev_mult)
: Generates the linear regression channel for an array of values.
Parameters:
bar_index_array (array<int>): (array<int>): Array with bar indexes
prices_array (array<float>): (array<float>): Array with prices
stdDev_mult (float): (float): Standard deviation multiple for the channels
Returns: : Returns x1, x2, y1_mid, y2_mid, y1_up, y2_up, y1_dn, y2_dn, m, b, R2, stdDev
get_optimal_linearRegression_channel(max_length, min_length, source, stdDev_mult, show_data_table, tableYpos, tableXpos, table_textSize, barsToRight, plot_labels, include_levels)
: Gets the best fitting linear regression using optimum length
Parameters:
max_length (int): (int): Maximum bar length
min_length (int): (int): Minimum bar length
source (float): (float): Source for the regression
stdDev_mult (float): (float): Array with prices
show_data_table (bool): (bool): Activates and shows the data table
tableYpos (string)
tableXpos (string)
table_textSize (string)
barsToRight (int)
plot_labels (bool)
include_levels (bool)
Returns: : Returns three line objects that conform the regression channel, plus the optimal length and maximum r2
get_regressionChannel_data(max_length, min_length, source, stdDev_mult, plot_linearRegression, plot_labels, include_levels, barsToRight)
: Gets data for the linear regression channel
Parameters:
max_length (int): (int): Maximum length for the linear regression.
min_length (int): (int): Minimum length for the linear regression.
source (float): (float): Source for the linear regression
stdDev_mult (float): (float): Multiple for the standar deviations for the linear regression channel.
plot_linearRegression (bool)
plot_labels (bool)
include_levels (bool)
barsToRight (int)
Returns: : Returns a maps with the regression levels, the direction flag and the datatable map.
get_regressionChannel_data_v2(max_length, min_length, source, stdDev_mult, plot_linearRegression, plot_labels, include_levels, barsToRight)
Parameters:
max_length (int)
min_length (int)
source (float)
stdDev_mult (float)
plot_linearRegression (bool)
plot_labels (bool)
include_levels (bool)
barsToRight (int)
get_cuadratic_regression(x_array, y_array, bars_to_project, max_length)
: Gets the best fitting linear regression using optimum length
Parameters:
x_array (array<float>): (array<int>): Maximum bar length
y_array (array<float>): (array<float>): Minimum bar length
bars_to_project (int): (int): Array with prices
max_length (int)
Returns: : Returns three line objects
get_linear_regression(bar_index_array, prices_array, stdDev_mult)
: Generates the linear regression channel for an array of values.
Parameters:
bar_index_array (array<int>): (array<int>): Array with bar indexes
prices_array (array<float>): (array<float>): Array with prices
stdDev_mult (float): (float): Standard deviation multiple for the channels
Returns: : Returns x1, x2, y1_mid, y2_mid, y1_up, y2_up, y1_dn, y2_dn, m, b, R2, stdDev
get_optimal_linearRegression_channel(max_length, min_length, source, stdDev_mult, show_data_table, tableYpos, tableXpos, table_textSize, barsToRight, plot_labels, include_levels)
: Gets the best fitting linear regression using optimum length
Parameters:
max_length (int): (int): Maximum bar length
min_length (int): (int): Minimum bar length
source (float): (float): Source for the regression
stdDev_mult (float): (float): Array with prices
show_data_table (bool): (bool): Activates and shows the data table
tableYpos (string)
tableXpos (string)
table_textSize (string)
barsToRight (int)
plot_labels (bool)
include_levels (bool)
Returns: : Returns three line objects that conform the regression channel, plus the optimal length and maximum r2
get_regressionChannel_data(max_length, min_length, source, stdDev_mult, plot_linearRegression, plot_labels, include_levels, barsToRight)
: Gets data for the linear regression channel
Parameters:
max_length (int): (int): Maximum length for the linear regression.
min_length (int): (int): Minimum length for the linear regression.
source (float): (float): Source for the linear regression
stdDev_mult (float): (float): Multiple for the standar deviations for the linear regression channel.
plot_linearRegression (bool)
plot_labels (bool)
include_levels (bool)
barsToRight (int)
Returns: : Returns a maps with the regression levels, the direction flag and the datatable map.
get_regressionChannel_data_v2(max_length, min_length, source, stdDev_mult, plot_linearRegression, plot_labels, include_levels, barsToRight)
Parameters:
max_length (int)
min_length (int)
source (float)
stdDev_mult (float)
plot_linearRegression (bool)
plot_labels (bool)
include_levels (bool)
barsToRight (int)
get_cuadratic_regression(x_array, y_array, bars_to_project, max_length)
: Gets the best fitting linear regression using optimum length
Parameters:
x_array (array<float>): (array<int>): Maximum bar length
y_array (array<float>): (array<float>): Minimum bar length
bars_to_project (int): (int): Array with prices
max_length (int)
Returns: : Returns three line objects
Phát hành các Ghi chú
v2Updated:
get_regressionChannel_data(max_length, min_length, source, stdDev_mult, plot_linearRegression, plot_labels, include_levels, barsToRight, plot_entry_levels)
: Gets data for the linear regression channel
Parameters:
max_length (int): (int): Maximum length for the linear regression.
min_length (int): (int): Minimum length for the linear regression.
source (float): (float): Source for the linear regression
stdDev_mult (float): (float): Multiple for the standar deviations for the linear regression channel.
plot_linearRegression (bool)
plot_labels (bool)
include_levels (bool)
barsToRight (int)
plot_entry_levels (bool)
Returns: : Returns a maps with the regression levels, the direction flag and the datatable map.
Phát hành các Ghi chú
v3Phát hành các Ghi chú
v4Phát hành các Ghi chú
v5Phát hành các Ghi chú
v6Phát hành các Ghi chú
v7Phát hành các Ghi chú
v8Removed:
get_regressionChannel_data_v2(max_length, min_length, source, stdDev_mult, plot_linearRegression, plot_labels, include_levels, barsToRight)
Phát hành các Ghi chú
v9Phát hành các Ghi chú
v10Phát hành các Ghi chú
v11Phát hành các Ghi chú
v12Phát hành các Ghi chú
v13Phát hành các Ghi chú
v14Phát hành các Ghi chú
v15Phát hành các Ghi chú
v16Phát hành các Ghi chú
v17Phát hành các Ghi chú
v18Phát hành các Ghi chú
v19Phát hành các Ghi chú
v20Added:
get_regressionChannel_by_length(length, source, stdDev_mult, plot_linearRegression, plot_labels, include_levels, barsToRight)
: Gets data for the linear regression channel
Parameters:
length (int): (int): Length for the linear regression.
source (float): (float): Source for the linear regression
stdDev_mult (float): (float): Multiple for the standar deviations for the linear regression channel.
plot_linearRegression (bool)
plot_labels (bool)
include_levels (bool)
barsToRight (int)
Returns: : Returns a maps with the regression levels, the direction flag and the datatable map.
Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
Trade Smarter, Not Harder!
algotraderpro.io/tradecreator9/
algotraderpro.io/tradecreator9/
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.
Thư viện Pine
Theo tinh thần TradingView thực sự, tác giả đã xuất bản mã Pine này dưới dạng thư viện nguồn mở để các lập trình viên Pine khác trong cộng đồng của chúng tôi có thể sử dụng lại. Xin tri ân tác giả! Bạn có thể sử dụng thư viện này riêng tư hoặc trong các bài đăng nguồn mở khác. Tuy nhiên, bạn cần sử dụng lại mã này theo Nội quy chung.
Trade Smarter, Not Harder!
algotraderpro.io/tradecreator9/
algotraderpro.io/tradecreator9/
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.