What is the equivalent of console.log in pine-script?

前端 未结 4 869
谎友^
谎友^ 2020-12-30 23:08

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

4条回答
  •  清酒与你
    2020-12-31 00:02

    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)
    

提交回复
热议问题