Skip to content

log ​

Can a script write to a log here? Not yet: log.info, log.warning and log.error compile and run on every engine, and each does nothing and returns na. A script that calls them runs as it would without them. To see a value, plot it with display = display.data_window, or put it in a label or a table.

log.info ​

Pine v6No effect here
pine
log.info(message) → void
log.info(formatString, arg0, arg1) → void

Accepted, and writes nothing.

ParameterDescription
message
series string
The text.
formatString
series string
A format string, as str.format takes.
arg0
series any
The format string's first argument, and so on for as many as it takes.
arg1
series any
The second.

log.warning ​

Pine v6No effect here
pine
log.warning(message) → void
log.warning(formatString, arg0, arg1) → void

Accepted, and writes nothing.

ParameterDescription
message
series string
The text.
formatString
series string
A format string, as str.format takes.
arg0
series any
The format string's first argument, and so on for as many as it takes.
arg1
series any
The second.

log.error ​

Pine v6No effect here
pine
log.error(message) → void
log.error(formatString, arg0, arg1) → void

Accepted, and writes nothing.

ParameterDescription
message
series string
The text.
formatString
series string
A format string, as str.format takes.
arg0
series any
The format string's first argument, and so on for as many as it takes.
arg1
series any
The second.

AmenoScript is compatible with Pine Script v6. Pine Script is a trademark of TradingView, Inc., which has no part in AmenoScript.