Black Friday great discounts start today Learn more
+1 888 340 6572

GetValue

Function > GetValue



Article/Author: Victor Cuadra for Omega Research Inc., 1995

Download: FUNCTION-GETVALUE.ELA

File Includes: Function - GetValue

Description: Returns Value of FORMULA at XDATE. This function requires no MaxBarsBack
INPUTS: Formula (NumericSeries)
XDate (Numeric)
Example: GetValue(Average(Close,5), 960105) will return the five moving average of the close of 01/05/96.

EasyLanguage Code:
INPUTS: FORMULA(NUMERICSERIES), XDATE(NUMERIC);


IF DATE = XDATE THEN
GETVALUE = FORMULA;