EasyLanguage Punctuation

All EasyLanguage instructions consist of statements. These statements, in turn, consist of phrases or expressions. These expressions are grouped together to form statements, much like phrases make up a sentence. The most commonly used EasyLanguage punctuation marks are:

Name Implementation Definition
Parenthesis ( ) Groups together specific price data that should be calculated together.
Comma , Separates items in a list such as inputs, variables, and parameters.
Quotation marks " " Specifies text elements (for example, string expressions) in a statement.
Semi-colon ; Indicates the end of a statement.
Square brackets [ ] Defines the number of bars ago to reference. Also defines elements in an array.
Curly brackets { } Contains comments and notes that are ignored by EasyLanguage. These notes are written for your own clarification.

Example

{Bearish divergence alert criteria for Accumulation Distribution}

If High > Highest(High,20)[1] AND Plot1 < Highest(Plot1,20) then

 Alert("A Bearish Divergence has been detected");