function
Lightweight reusable condition or expression (not a full programming language).
function name() return condition
Define a small named helper with an optional parameter list and a return line. Call it with parentheses: bullishTrend(). Prefer this only when the same condition is repeated; simple assignments (trendUp = ema(20) > ema(50)) are still the most common Dovee style. No classes, loops, or generics.
Return value
Whatever the return expression produces
Example
function bullishTrend() return ema(close, 20) > ema(close, 50) when bullishTrend() and flat buy