+1 888 340 6572

TL GetValue s

From MultiCharts

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_s (TL_ID, Date, Time_s)

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_s - a numerical expression specifying the time, including seconds; the time is indicated in the 24-hour HHmmss format, where 130000 = 1:00:00 PM

Notes

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

Example

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

Value1=TL_GetValue_s(3,1080117,100000);