EXTRA[n]

Top  Previous  Next

Keyword Description

Additional data from price file

Class

Function

Where Legal

Resources

Entry Logic

Exit Logic

Initial Size

Resize

(Pre-Category)

Resize

(Category-Level)

l

l

l

 

 

 

Syntax

EXTRA[n] 

Where n is an integer > 0

Example

Sample code

COL1 = EXTRA[1] ' look at the first [1] column past those 

' that are designated as Other Data Fields in symbol manager 

ROLLFLAG = COL1[1]

' look at yesterday's value to avoid postdictive error

 

ThumbTack white

Any numerical data that appears in your data files in columns beyond 'Other Data Fields' as specified in Symbol Manager > Page Properties will be returned by EXTRA[n]. You would reference the first such column as EXTRA[1], the second EXTRA[2], etc. Mechanica can reference a practically unlimited number of EXTRA[n] fields or columns it finds in your data files.  This accommodates research using large quantities of fundamental data. You might set up your data files to hold Date, Open, High, Low, Close,,,,....  Restated Earnings in column 200. Reference as EXTRA[195] in Mechanica.

See also:

ROLLFLAG