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
variables
pine-script
j
If you just want to print a single value (not at every bar), you can do:
if (barstate.islast) label.new(bar_index, 0, "Your value here, ex: " + syminfo.tickerid)