TL GetValue Dt

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_Dt (TL_ID, DT)

Parameters

  • TL_ID - a numerical expression specifying the trendline ID number
  • DT - a numerical expression specifying the trendline starting point date and time; indicated in the DateTime format. The integer portion of the DateTime value indicates the number of days that have elapsed since January 1st, 1900, and the fractional portion of the DateTime value indicates the fraction of the day that has passed since midnight.

Notes

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

Example

TL_GetValue_DT(value1, 41422.752623935186);

Will return the price of trend line with ID = Value1 at 08:30:00.882 of 5/28/2013