Skip to content
AlertaChartAlertaScript / docs
AlertaScript / function-shadowing
On this pageSignatureReturnsExample

Utilities / Reference

function-shadowing

User-defined names are resolved within their lexical scope. Avoid reusing builtin namespace names; use explicit namespaces to make a call’s meaning clear.

function-shadowing(float source, int length = 20) => → language construct

Returns

language construct

Example

function-shadowing
//@version=6indicator("Local names and shadowing")average(float source, int length = 20) =>    ta.ema(source, length)plot(average(close))

Names and aliases

Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.

AlertaScript

No results found.

Search by name, alias, or keyword.