1,501
edits
m (Reverted edits by 176.8.90.7 (talk) to last revision by JoshM) |
|||
Line 3: | Line 3: | ||
Text_SetLocation_s returns a value of 0 if the location of the object was successfully modified, and a value of -2 if the specified object ID number is invalid. | Text_SetLocation_s returns a value of 0 if the location of the object was successfully modified, and a value of -2 if the specified object ID number is invalid. | ||
== Usage == | |||
<syntaxhighlight>Text_SetLocation_s (ObjectID, BarDate, BarTime_s, PriceValue)</syntaxhighlight> | |||
== Parameters == | |||
:'''ObjectID''' - a numerical expression specifying the object ID number. | |||
:'''BarDate''' - a numerical expression specifying the date of the bar at which the object is to be placed; 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. | |||
:'''BarTime_s''' - a numerical expression specifying the time of the bar, including seconds, at which the object is to be placed; the time is indicated in the 24-hour ''HHmmss'' format, where 130000 = 1:00:00 PM. | |||
:'''PriceValue''' - a numerical expression specifying the price value (vertical position, corresponding to a value on the price scale of a chart), where the object is to be placed. | |||
== Notes == | == Notes == | ||
* An object-specific ID number is returned by [[Text_New_s]]when the text object is created. | * An object-specific ID number is returned by [[Text_New_s]]when the text object is created. |