v12
Added:
get_regressionChannel_data(max_length, min_length, source, stdDev_mult, plot_regression, plot_labels, bars_to_right, include_levels)
: Gets and plots the 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_regression (bool): (bool): Plots the linear regression.
plot_labels (bool): (bool): Plots the labels for the linear regression.
bars_to_right (int): (int): Defines the number of bars to the right for the labels.
include_levels (bool): (bool): Includes the levels in the labels.
Returns: : Returns a maps with the regression levels, the direction flag and the datatable map.
Updated:
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 for the channel, plus the optimal length and maximum r2