Keywords
return
This keyword is used inside a function to specify the value that the function should return when it is called.
Syntax
return <expression>
Example
indicator("Return Example", overlay=true)
func getSquare(float x) {
// Returns the square of x
return x * x
}
plot(getSquare(close), title="Squared Close Price", color=color.blue)