Make debugging easier during development in Pinescript by displaying debug variables on the chart. No need for explanations, you devs know how to use it :)
Library "debug"
label(_output, _delete, _position) - Debug label Parameters: _output (string): <string> Label output string _delete (bool): <bool> Delete all labels and only show the last one _position (string)
label_last(_output, _delete, _position) - Debug label on last bar Parameters: _output (string): <string> Label output string _delete (bool): <bool> Delete all labels and only show the last one _position (string)
label_array(_items, _max, _reversed) - Debug label on last bar. Parameters: _items (float[]): <array float> array of items. _max (int): <int> Maximum items to display _reversed (bool): <bool> Show reversed array
array(_items, _max, _reversed) - Debug label on last bar. Parameters: _items (float[]): <array float> array of items. _max (int): <int> Maximum items to display _reversed (bool): <bool> Show reversed array
error(_message, _display) - Debug error message. Parameters: _message (string): <string> Label output string _display (bool): <bool> Toggle to show hide the message.
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.
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.