CLOSE, C

Top  Previous  Next

Keyword Description

Closing price

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

CLOSE[n] 

Where n is an integer representing the desired number of days ago. Argument is optional.

Example

Sample code

IF CLOSE[1] < COL4[1] THEN SELLOPEN

' see if yesterday's close was less than yesterday's 

' value of the indicator in column 4.

' If so sell at the open today.

 

ThumbTack white

Returns the closing price of the day referenced. CLOSE[1] means close yesterday.  If the bracketed integer is greater than the Current day then  "Too Soon"  will be displayed in the Status Bar.

See also:

OPEN, HIGH, LOW, V, OI