CS2013
error This call returns no value.
#What it means
This call does something (such as writing a log line) but returns no value, so its result cannot be stored or passed on.
#Typical cause
- Assigning the result of
log.info,alert.sendor a user function whose body ends in such a call. - Passing such a call as an argument.
#How to fix it
Call it as a statement on its own line.
#Example
//@chartscript 1
indicator("Log")
const msg = log.info("bar {0}", bar_index)
plot(close)Fixed
//@chartscript 1
indicator("Log")
log.info("bar {0}", bar_index)
plot(close)