declare

Syntax

declare <supported_declaration_name>

Description

The declare keyword is a method for telling the chart something basic about the appearance of the study or strategy you are creating. You can find the list of supported declarations in the Declarations section.

Example

declare lower;

plot PriceOsc = Average(close, 9) - Average(close, 18);

This example shows how to use one of the most commonly used declarations called lower. For other examples on declarations, see the Declarations section.