Difference between revisions of "TL New Self s"
Jump to navigation
Jump to search
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | Displays a trendline, with the specified starting and ending points, on the SubChart containing the study | + | Displays a trendline, with the specified starting and ending points, on the [[Using_SubCharts|SubChart]] containing the study. |
+ | |||
+ | TL_New_Self_s returns a trendline-specific ID number, required to modify the trendline. | ||
− | + | == Usage == | |
<syntaxhighlight>TL_New_s (sDate, sTime_s, sPriceValue, eDate, eTime_s, ePriceValue)</syntaxhighlight> | <syntaxhighlight>TL_New_s (sDate, sTime_s, sPriceValue, eDate, eTime_s, ePriceValue)</syntaxhighlight> | ||
− | + | == 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_s''' - a numerical expression specifying the trendline starting point time, including seconds; the time is indicated in the 24-hour ''HHmmss'' format, where 130000 = 1:00: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 SubChart). | |
− | + | :'''eDate''' - a numerical expression specifying the trendline ending point date (in ''YYYMMdd'' format). | |
− | + | :'''eTime_s''' - a numerical expression specifying the trendline ending point time, including seconds (in 24-hour ''HHmmss'' format). | |
− | + | :'''ePriceValue''' - a numerical expression specifying the trendline ending point price value. | |
− | ==== | + | == Notes == |
− | Display a trendline, that begins at 9:00:00 AM at a price value of 1381, and ends at 3:00:00 PM at a | + | * Use [[TL_New]] and [[TL_New_s]] to plot a trendline on the regular price chart with respectively minutes and seconds precision. |
− | price value of 1337, on January 17th, 2008, on the SubChart containing the study: | + | * Use [[TL_New_self]] to plot a trendline on the [[Using_SubCharts|SubChart]] with minutes precision. |
+ | |||
+ | == Example == | ||
+ | Display a trendline, that begins at 9:00:00 AM at a price value of 1381, and ends at 3:00:00 PM at a price value of 1337, on January 17th, 2008, on the [[Using_SubCharts|SubChart]] containing the study: | ||
− | <syntaxhighlight>Value1=TL_New_s(1080117,90000,1381,1080117,150000,1337);</syntaxhighlight> | + | <syntaxhighlight>Value1 = TL_New_s(1080117, 90000, 1381, 1080117, 150000, 1337);</syntaxhighlight> |
[[Category:Trendline Drawing]] | [[Category:Trendline Drawing]] |
Latest revision as of 17:33, 8 March 2012
Displays a trendline, with the specified starting and ending points, on the SubChart containing the study.
TL_New_Self_s returns a trendline-specific ID number, required to modify the trendline.
Contents
Usage
TL_New_s (sDate, sTime_s, sPriceValue, eDate, eTime_s, 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_s - a numerical expression specifying the trendline starting point time, including seconds; the time is indicated in the 24-hour HHmmss format, where 130000 = 1:00: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 SubChart).
- eDate - a numerical expression specifying the trendline ending point date (in YYYMMdd format).
- eTime_s - a numerical expression specifying the trendline ending point time, including seconds (in 24-hour HHmmss format).
- ePriceValue - a numerical expression specifying the trendline ending point price value.
Notes
- Use TL_New and TL_New_s to plot a trendline on the regular price chart with respectively minutes and seconds precision.
- Use TL_New_self to plot a trendline on the SubChart with minutes precision.
Example
Display a trendline, that begins at 9:00:00 AM at a price value of 1381, and ends at 3:00:00 PM at a price value of 1337, on January 17th, 2008, on the SubChart containing the study:
Value1 = TL_New_s(1080117, 90000, 1381, 1080117, 150000, 1337);