When I got a basic number of volume output 1000000000
in label.
1.000.000.000
or 1 000 000 000
or 1.000M
function()
can I use to convert volume output?You can use the format.volume
formatting option with the str.tostring()
function.
//@version=5
indicator("My script", overlay=true)
if barstate.islast
label.new(bar_index, high, str.tostring(1500000, format.volume))