Sidechair

syminfo.volumetype

Browse the reference

What the volume series counts for this symbol: base units, quote currency, ticks or nothing.

Try it in the editor

syminfo.volumetype is a simple string. The standard values are base (units of the traded asset, such as shares or coins), quote (money in the quote currency), tick (number of trades or price changes) and n/a when the symbol has no volume.

It matters when you compare volume across symbols or build a money-flow figure: a quote-volume series is already a currency amount, a base-volume series has to be multiplied by price.

Type

simple string

Remarks

  • On Sidechair: the value is always base.

Example

Pine ScriptMoney traded per barOpen in editor
//@version=6
indicator("Traded value", format = format.volume)
value = syminfo.volumetype == "quote" ? volume : volume * hlc3
plot(value, "Value", color.teal, style = plot.style_columns)

See also

Runs on Sidechair