+1 888 340 6572

TL New: Difference between revisions

From MultiCharts
(Created page with "Displays a trendline, with the specified starting and ending points, on the chart that the study is based on; returns a trendline-specific ID number, required to modify the tr...")
 
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Displays a trendline, with the specified starting and ending points, on the chart that the study is based on; returns a trendline-specific ID number, required to modify the trendline.  
Displays a trendline, with the specified starting and ending points, on the chart that the study is based on; returns a trendline-specific ID number, required to modify the trendline.  
   
   
==== Usage ====
== Usage ==
<syntaxhighlight>TL_New (sDate, sTime, sPriceValue, eDate, eTime, ePriceValue)</syntaxhighlight>  
<syntaxhighlight>TL_New (sDate, sTime, sPriceValue, eDate, eTime, ePriceValue)</syntaxhighlight>  


==== Parameters ====  
== Parameters ==  
[[sDate]] - a numerical expression specifying the trendline starting point 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  
:'''sDate''' - a numerical expression specifying the trendline starting point 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  


[[sTime]] - a numerical expression specifying the trendline starting point time; the time is indicated in the 24-hour HHmm format, where 1300 = 1:00 PM  
:'''sTime''' - a numerical expression specifying the trendline starting point time; the time is indicated in the 24-hour HHmm format, where 1300 = 1:00 PM  


[[sPriceValue]] - a numerical expression specifying the trendline starting point price value (vertical position, corresponding to a value on the price scale of a chart)  
:'''sPriceValue''' - a numerical expression specifying the trendline starting point price value (vertical position, corresponding to a value on the price scale of a chart)  


[[eDate]] - a numerical expression specifying the trendline ending point date  
:'''eDate''' - a numerical expression specifying the trendline ending point date  


[[eTime]] - a numerical expression specifying the trendline ending point time  
:'''eTime''' - a numerical expression specifying the trendline ending point time  


[[ePriceValue]] - a numerical expression specifying the trendline ending point price value  
:'''ePriceValue''' - a numerical expression specifying the trendline ending point price value  
   
   
==== Example ====
== Example ==
Display a trendline, that begins at 9:00 AM at a price value of 1381, and ends at 3:00 PM at a price value of 1337, on January 17th, 2008, on the chart that the study is based on:  
Display a trendline, that begins at 9:00 AM at a price value of 1381, and ends at 3:00 PM at a price value of 1337, on January 17th, 2008, on the chart that the study is based on:  



Latest revision as of 14:12, 1 March 2017

Displays a trendline, with the specified starting and ending points, on the chart that the study is based on; returns a trendline-specific ID number, required to modify the trendline.

Usage

TL_New (sDate, sTime, sPriceValue, eDate, eTime, ePriceValue)

Parameters

sDate - a numerical expression specifying the trendline starting point 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
sTime - a numerical expression specifying the trendline starting point time; the time is indicated in the 24-hour HHmm format, where 1300 = 1:00 PM
sPriceValue - a numerical expression specifying the trendline starting point price value (vertical position, corresponding to a value on the price scale of a chart)
eDate - a numerical expression specifying the trendline ending point date
eTime - a numerical expression specifying the trendline ending point time
ePriceValue - a numerical expression specifying the trendline ending point price value

Example

Display a trendline, that begins at 9:00 AM at a price value of 1381, and ends at 3:00 PM at a price value of 1337, on January 17th, 2008, on the chart that the study is based on:

Value1=TL_New(1080117,900,1381,1080117,1500,1337);