PINE LIBRARY

utilities

Library "utilities"

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.
formatting
AlgoTrader_Pro

ספריית Pine

ברוח TradingView אמיתית, המחבר פרסם קוד Pine זה כספריית קוד פתוח כדי שמתכנתי Pine אחרים מהקהילה שלנו יוכלו לעשות בו שימוש חוזר. כל הכבוד למחבר! אתה יכול להשתמש בספרייה זו באופן פרטי או בפרסומים אחרים בקוד פתוח, אך שימוש חוזר בקוד זה בפרסום כפוף לכללי הבית.

כתב ויתור