PINE LIBRARY

formattingUtilities

AlgoTrader_Pro의
업데이트됨
Library "formattingUtilities"

toPercentageString(x, decimals)
  : Converts a decimal number into a string formatted as percentage.
  Parameters:
    x (float): (simple float): Float number to be converted
    decimals (int): (simple int): Number of decimals to apply
  Returns: : Returns a string with x as percentage.

toFactorString(x, decimals)
  : Converts a decimal number into a string formatted as Factor.
  Parameters:
    x (float): (simple float): Float number to be converted
    decimals (int): (simple int): Number of decimals to apply
  Returns: : Returns a string with x as a Factor.

toCurrencyString(x, decimals)
  : Converts a decimal number into a string formatted as currency.
  Parameters:
    x (float): (simple float): Float number to be converted
    decimals (int): (simple int): Number of decimals to apply
  Returns: : Returns a string with x as currency.

toNumberString(x, decimals)
  : Converts a decimal number into a string formatted as decimal.
  Parameters:
    x (float): (simple float): Float number to be converted
    decimals (int): (simple int): Number of decimals to apply
  Returns: : Returns a string with x as a decimal.

colorByAboveBelow(x, reference, above, below, equal)
  : Returns a different color if the reference is above, below or equal to x.
  Parameters:
    x (float): (simple float): The number that will be tested, above, below or equal.
    reference (float): (simple float): The reference for for determining if x is above, below or equal.
    above (color)
    below (color)
    equal (color)
  Returns: : The color returned if above, below or equal.
릴리즈 노트
v2

Added:
colorMap()
  : Returns a map with different colors
  Returns: : Returns a map with multiple colors
릴리즈 노트
v3
릴리즈 노트
v4

Added:
formatsMap()
  : Creates a map with multiple formats for different uses.
  Returns: : Returns a formatsMap which is a map with multiple formats.
릴리즈 노트
v5
릴리즈 노트
v6
릴리즈 노트
v7
릴리즈 노트
v8
릴리즈 노트
v9
릴리즈 노트
v10
릴리즈 노트
v11
formatting
AlgoTrader_Pro

파인 라이브러리

진정한 TradingView 정신에 따라, 저자는 이 파인 코드를 다른 파인 프로그래머들이 재사용할 수 있도록 오픈 소스 라이브러리로 공개했습니다. 저자에게 박수를 보냅니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈 소스 출판물에서 사용할 수 있지만, 이 코드를 출판물에서 재사용하는 것은 하우스 룰에 의해 관리됩니다.

면책사항