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) : 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 Returns: : Returns three line objects
get_cuadratic_Regression(x_array, y_array, bars_to_project) : Gets the best fitting linear regression using optimum length Parameters: x_array (array<int>): (array<int>): Maximum bar length y_array (array<float>): (array<float>): Minimum bar length bars_to_project (int): (int): Array with prices Returns: : Returns three line objects
Nota Keluaran
v2
Added: get_cuadratic_regression(x_array, y_array, bars_to_project) : 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 Returns: : Returns three line objects
Removed: get_cuadratic_Regression(x_array, y_array, bars_to_project) : Gets the best fitting linear regression using optimum length
Nota Keluaran
v3
Nota Keluaran
v4
Nota Keluaran
v5
Updated: get_optimal_linearRegression_channel(max_length, min_length, source, stdDev_mult, show_data_table, tableYpos, tableXpos, table_textSize) : 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) Returns: : Returns three line objects
Nota Keluaran
v6
Updated: get_optimal_linearRegression_channel(max_length, min_length, source, stdDev_mult, show_data_table, tableYpos, tableXpos, table_textSize) : 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) Returns: : Returns three line objects for the channel, plus the optimal length and maximum r2
Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai satu perpustakaan sumber terbuka supaya pengaturcara Pine lain dari komuniti kami boleh menggunakannya semula. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara peribadi atau dalam penerbitan sumber terbuka lain, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.