Skip to main content

log

Diagnostic logging, surfaced in the Scripts IDE Console, not on the chart and not delivered as alerts. Use it to trace values while developing a strategy: log.info("rsi=" + rsi.toString()). Logs are emitted once per confirmed bar; calls on the still-forming live bar are shown when that bar closes. Cheap to leave in: the host drops them when no console is attached.

Functions​