PINE LIBRARY

Hex

By kaigouthro
Library "Hex"
Hex String Utility

intToHex(_n)
  helper Binary half octet to hex character
  Parameters:
    _n: Digits to convert

fromDigits(_input, _buffer)
  Digits to Hex String output
  Parameters:
    _input: Integer Input
    _buffer: Number of 0's to pad Hex with
  Returns: string output hex character value buffered to desired length (00-ff default)
converterformattingHEXstrings

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House rules.

Disclaimer