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.
진정한 TradingView 정신에 따라, 저자는 이 파인 코드를 다른 파인 프로그래머들이 재사용할 수 있도록 오픈 소스 라이브러리로 공개했습니다. 저자에게 박수를 보냅니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈 소스 출판물에서 사용할 수 있지만, 이 코드를 출판물에서 재사용하는 것은 하우스 룰에 의해 관리됩니다.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.