TL GetValue

From MultiCharts
Jump to: navigation, search

Returns a price value, at the specified date and time, of a trendline with the specified ID number; returns a value of -2 if the specified trendline ID number is invalid.

If the trendline does not extend to the specified date and time, a price value along the same slope as the trendline will be returned.

Usage

TL_GetValue (TL_ID, Date, Time)

Parameters

TL_ID - a numerical expression specifying the trendline ID number

Date - a numerical expression specifying the date; the date is indicated in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month

Time - a numerical expression specifying the time; the time is indicated in the 24-hour HHmm format, where 1300 = 1:00 PM

Notes

A trendline-specific ID number is returned by TL_New when the trendline is created.

Example

Assign the price value, at 10:00 AM on January 17th, of a trendline with the ID number of 3, to Value1 variable:

Value1=TL_GetValue(3,1080117,1000);