log
Writes one line to the run’s log, with the time of the tick or bar. The log appears under a backtest’s results and in a live session’s view.
declare function log(...values: unknown[]): void;Values are joined with spaces; objects are written as JSON. console writes to the same log.
Example
Section titled “Example”function onIntervalClose() { log("Close", CLOSE, "RSI", rsi(14), "open positions", OPEN_POSITIONS_COUNT);}