PINE LIBRARY
Hex

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)
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)
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 publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
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 publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.