PINE LIBRARY
업데이트됨 Debug

Library "Debug"
Some debugging functions.
label_on_each_bar(txt, y_position, label_size, label_color, txt_color)
Prints a label on every bar to show text. By default, only the last 50 labels will be shown on the chart. You can increase this amount up to a maximum of 500 by using the max_labels_count parameter in your script’s indicator() or strategy() declaration statement.
Parameters:
txt (string): New label text.
y_position (float): New price of the label position.
label_size (string): Possible values: size.auto, size.tiny, size.small, size.normal, size.large, size.huge. Optional. Default value is `size.small`.
label_color (color): New label border and arrow color. Optional. Default value is `color.blue`.
txt_color (color): New text color. Optional. Default value is `color.white`.
Returns: void
label_on_last_bar(txt, y_position, label_size, label_color, txt_color, txt_align)
Prints one label at last bar to show text.
Parameters:
txt (string): New label text.
y_position (float): New price of the label position.
label_size (string): Possible values: size.auto, size.tiny, size.small, size.normal, size.large, size.huge. Optional. Default value is `size.large`.
label_color (color): New label border and arrow color. Optional. Default value is `color.blue`.
txt_color (color): New text color. Optional. Default value is `color.white`.
txt_align (string): Label text alignment. Optional. Possible values: text.align_left, text.align_center, text.align_right. Default value is `text.align_center`.
Returns: void
table_symbol_informations(table_position, table_color, text_color)
Prints a table to show all the Symbol information, including its function names.
Parameters:
table_position (string): Position of the table. Optional. Possible values are: position.top_left, position.top_center, position.top_right, position.middle_left, position.middle_center, position.middle_right, position.bottom_left, position.bottom_center, position.bottom_right. Default value is `position.middle_right`.
table_color (color): The background color of the table. Optional. The default is `color.yellow`.
text_color (color): The color of the text. Optional. The default is `color.black`.
Returns: void
table_array_float(array_float, table_columns, table_rows, table_position, table_color, txt_color, txt_size)
Prints a table to show float values of an array.
Parameters:
array_float (float[]): The array that will be showed.
table_columns (int)
table_rows (int): The number of rows to show the values.
table_position (string): Position of the table. Optional. Possible values are: position.top_left, position.top_center, position.top_right, position.middle_left, position.middle_center, position.middle_right, position.bottom_left, position.bottom_center, position.bottom_right. Default value is `position.bottom_center`.
table_color (color): The background color of the table. Optional. By default there is no color.
txt_color (color)
txt_size (string): Possible values: size.auto, size.tiny, size.small, size.normal, size.large, size.huge. Optional. Default value is `size.normal`.
Returns: void
table_array_int(array_float, table_columns, table_rows, table_position, table_color, txt_color, txt_size)
Prints a table to show int values of an array.
Parameters:
array_float (int[]): The array that will be showed.
table_columns (int)
table_rows (int): The number of rows to show the values.
table_position (string): Position of the table. Optional. Possible values are: position.top_left, position.top_center, position.top_right, position.middle_left, position.middle_center, position.middle_right, position.bottom_left, position.bottom_center, position.bottom_right. Default value is `position.bottom_center`.
table_color (color): The background color of the table. Optional. By default there is no color.
txt_color (color)
txt_size (string): Possible values: size.auto, size.tiny, size.small, size.normal, size.large, size.huge. Optional. Default value is `size.normal`.
Returns: void
Some debugging functions.
label_on_each_bar(txt, y_position, label_size, label_color, txt_color)
Prints a label on every bar to show text. By default, only the last 50 labels will be shown on the chart. You can increase this amount up to a maximum of 500 by using the max_labels_count parameter in your script’s indicator() or strategy() declaration statement.
Parameters:
txt (string): New label text.
y_position (float): New price of the label position.
label_size (string): Possible values: size.auto, size.tiny, size.small, size.normal, size.large, size.huge. Optional. Default value is `size.small`.
label_color (color): New label border and arrow color. Optional. Default value is `color.blue`.
txt_color (color): New text color. Optional. Default value is `color.white`.
Returns: void
label_on_last_bar(txt, y_position, label_size, label_color, txt_color, txt_align)
Prints one label at last bar to show text.
Parameters:
txt (string): New label text.
y_position (float): New price of the label position.
label_size (string): Possible values: size.auto, size.tiny, size.small, size.normal, size.large, size.huge. Optional. Default value is `size.large`.
label_color (color): New label border and arrow color. Optional. Default value is `color.blue`.
txt_color (color): New text color. Optional. Default value is `color.white`.
txt_align (string): Label text alignment. Optional. Possible values: text.align_left, text.align_center, text.align_right. Default value is `text.align_center`.
Returns: void
table_symbol_informations(table_position, table_color, text_color)
Prints a table to show all the Symbol information, including its function names.
Parameters:
table_position (string): Position of the table. Optional. Possible values are: position.top_left, position.top_center, position.top_right, position.middle_left, position.middle_center, position.middle_right, position.bottom_left, position.bottom_center, position.bottom_right. Default value is `position.middle_right`.
table_color (color): The background color of the table. Optional. The default is `color.yellow`.
text_color (color): The color of the text. Optional. The default is `color.black`.
Returns: void
table_array_float(array_float, table_columns, table_rows, table_position, table_color, txt_color, txt_size)
Prints a table to show float values of an array.
Parameters:
array_float (float[]): The array that will be showed.
table_columns (int)
table_rows (int): The number of rows to show the values.
table_position (string): Position of the table. Optional. Possible values are: position.top_left, position.top_center, position.top_right, position.middle_left, position.middle_center, position.middle_right, position.bottom_left, position.bottom_center, position.bottom_right. Default value is `position.bottom_center`.
table_color (color): The background color of the table. Optional. By default there is no color.
txt_color (color)
txt_size (string): Possible values: size.auto, size.tiny, size.small, size.normal, size.large, size.huge. Optional. Default value is `size.normal`.
Returns: void
table_array_int(array_float, table_columns, table_rows, table_position, table_color, txt_color, txt_size)
Prints a table to show int values of an array.
Parameters:
array_float (int[]): The array that will be showed.
table_columns (int)
table_rows (int): The number of rows to show the values.
table_position (string): Position of the table. Optional. Possible values are: position.top_left, position.top_center, position.top_right, position.middle_left, position.middle_center, position.middle_right, position.bottom_left, position.bottom_center, position.bottom_right. Default value is `position.bottom_center`.
table_color (color): The background color of the table. Optional. By default there is no color.
txt_color (color)
txt_size (string): Possible values: size.auto, size.tiny, size.small, size.normal, size.large, size.huge. Optional. Default value is `size.normal`.
Returns: void
릴리즈 노트
v2릴리즈 노트
v3Added:
table_array_boolean(array_boolean, columns, rows, position, bgcolor, txt_color, txt_size)
table_array_integer(array_int, columns, rows, position, bgcolor, txt_color, txt_size)
table_array_string(array_string, columns, rows, position, bgcolor, txt_color, txt_size)
table_matrix_boolean(matrix_boolean, from_column, to_column, from_row, to_row, position, bgcolor, txt_color, txt_size)
table_matrix_float(matrix_float, from_column, to_column, from_row, to_row, position, bgcolor, txt_color, txt_size)
table_matrix_integer(matrix_int, from_column, to_column, from_row, to_row, position, bgcolor, txt_color, txt_size)
table_matrix_string(matrix_string, from_column, to_column, from_row, to_row, position, bgcolor, txt_color, txt_size)
Updated:
label_on_each_bar(txt, y_position, label_size, label_color, txt_color)
label_on_last_bar(txt, y_position, label_size, label_color, txt_color, txt_align)
table_symbol_informations(table_position, table_color, text_color, text_size)
table_array_float(array_float, columns, rows, position, bgcolor, txt_color, txt_size)
Removed:
table_array_int(array_float, table_columns, table_rows, table_position, table_color, txt_color, txt_size)
릴리즈 노트
v4small error correction to show cloumns and rows of arrays
릴리즈 노트
v5make it possible to remove the table and add a new one.
Example:
var my_matrix = matrix.new<int>(11, 12, 4711)
var table my_id = na
if barstate.isfirst
my_id := table_matrix_integer(my_matrix)
else if barstate.islast
my_matrix.add_col()
my_matrix.fill(250, 0, my_matrix.rows(), my_matrix.columns() - 1, my_matrix.columns())
my_id.delete()
my_id := table_matrix_integer(my_matrix)
릴리즈 노트
v6well, the new
log.*
릴리즈 노트
v7I found more logs that got published, but they should not this.
릴리즈 노트
v8I had to remove var for the tables and the matrix, to be able reinitalize rows and columns of tables.
릴리즈 노트
v9파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
파인 라이브러리
진정한 트레이딩뷰 정신에 따라 작성자는 이 파인 코드를 오픈 소스 라이브러리로 공개하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 건배! 이 라이브러리는 개인적으로 또는 다른 오픈 소스 출판물에서 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰의 적용을 받습니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.