How does one console.log variables
, or the results of functions in pine-script
?
I\'d like to convert a pine-script
script into j
This answer is now outdated. Please consult other more recent answers.
There is no way to print text or variables in pine-script to any form of "console". But you can use plot to print, very short text above or below each tick. The text, however, is static and you cannot use variables to change it.
You can also use various tricks to show values in the very limited indicator fields (on top-left) of the chart window. Or move lines and plots out of visible are of chart, but still see the axis highlights.
Please check their Wiki and consult the 1000's of other user's scripts to find out the details on how to do it.