robbatt

lib_log

robbatt 업데이트됨   
Library "lib_log"
library for logging and debugging pine scripts

method init(this)
  Namespace types: Logger
  Parameters:
    this (Logger)

method debug(this, message, condition)
  Namespace types: Logger
  Parameters:
    this (Logger): Logger to add the entry to
    message (string): The Message to add
    condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)

method info(this, message, condition)
  Namespace types: Logger
  Parameters:
    this (Logger): Logger to add the entry to
    message (string): The Message to add
    condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)

method success(this, message, condition)
  Namespace types: Logger
  Parameters:
    this (Logger): Logger to add the entry to
    message (string): The Message to add
    condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)

method warning(this, message, condition)
  Namespace types: Logger
  Parameters:
    this (Logger): Logger to add the entry to
    message (string): The Message to add
    condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)

method error(this, message, condition)
  Namespace types: Logger
  Parameters:
    this (Logger): Logger to add the entry to
    message (string): The Message to add
    condition (bool): optional flag to enable disable logging of this entry dynamically (default: true)

method debug_bar(this, message, bar, y, y_offset, last_only, condition)
  Namespace types: Logger
  Parameters:
    this (Logger): Logger object to check global min level condition
    message (string): The string to print
    bar (int): The bar to print the label at (default: bar_index)
    y (float): The price value to print at (default: high)
    y_offset (float): A price offset from y if you want to print multiple labels at the same spot
    last_only (bool)
    condition (bool)

method info_bar(this, message, bar, y, y_offset, last_only, condition)
  Namespace types: Logger
  Parameters:
    this (Logger): Logger object to check global min level condition
    message (string): The string to print
    bar (int): The bar to print the label at (default: bar_index)
    y (float): The price value to print at (default: high)
    y_offset (float): A price offset from y if you want to print multiple labels at the same spot
    last_only (bool)
    condition (bool)

method success_bar(this, message, bar, y, y_offset, last_only, condition)
  Namespace types: Logger
  Parameters:
    this (Logger): Logger object to check global min level condition
    message (string): The string to print
    bar (int): The bar to print the label at (default: bar_index)
    y (float): The price value to print at (default: high)
    y_offset (float): A price offset from y if you want to print multiple labels at the same spot
    last_only (bool)
    condition (bool)

method warning_bar(this, message, bar, y, y_offset, last_only, condition)
  Namespace types: Logger
  Parameters:
    this (Logger): Logger object to check global min level condition
    message (string): The string to print
    bar (int): The bar to print the label at (default: bar_index)
    y (float): The price value to print at (default: high)
    y_offset (float): A price offset from y if you want to print multiple labels at the same spot
    last_only (bool)
    condition (bool)

method error_bar(this, message, bar, y, y_offset, last_only, condition)
  Namespace types: Logger
  Parameters:
    this (Logger): Logger object to check global min level condition
    message (string): The string to print
    bar (int): The bar to print the label at (default: bar_index)
    y (float): The price value to print at (default: high)
    y_offset (float): A price offset from y if you want to print multiple labels at the same spot
    last_only (bool)
    condition (bool)

LogEntry
  Fields:
    timestamp (series__integer)
    bar (series__integer)
    level (series__integer)
    message (series__string)

Logger
  Fields:
    min_level (series__integer)
    color_logs (series__bool)
    max_lines (series__integer)
    line_idx (series__integer)
    table_pos (series__string)
    display (series__table)
    log (array__|LogEntry|#OBJ)
릴리즈 노트:
v2
릴리즈 노트:
v3 embedded init method into log methods

Removed:
method init(this)
릴리즈 노트:
v4 separated LogDisplay from Logger, so multiple loggers can log to the table

Added:
LogDisplay
  Fields:
    max_lines (series__integer)
    table_pos (series__string)
    _table (series__table)
    log (array__|LogEntry|#OBJ)
릴리즈 노트:
v5 performance optimization
릴리즈 노트:
v6 fixed state issue
파인 라이브러리

트레이딩뷰 정신에 따라 오써는 이 파인 코드를 오픈 소스 라이브러리로 퍼블리쉬하여 당사 커뮤니티의 다른 파인 프로그래머들이 쓸 수 있도록 하였습니다. 오써에게 찬사를! 여러분은 이 라이브러리를 프라이빗 또는 오픈 소스 퍼블리케이션에 쓸 수 있지만 퍼블리케이션에 재사용은 하우스룰을 따릅니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

이 라이브러리를 쓰시겠습니까?

텍스트를 클립보드에 카피한 뒤 님의 스크립트에 붙여 넣기.