Arw SetLocation

From MultiCharts
Revision as of 13:02, 17 January 2012 by 194.84.116.138 (talk) (Created page with "Modifies the location of an arrow object with the specified ID number; returns a value of 0 if the location of the object was successfully modified, and a value of -2 if the s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Modifies the location of an arrow object with the specified ID number; 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

Arw_SetLocation (ObjectID, BarDate, BarTime, PriceValue)

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 - a numerical expression specifying the time of the bar at which the object is to be placed; the time is indicated in the 24-hour HHmm format, where 1300 = 1: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

An object-specific ID number is returned by

Arw_New

when the arrow object is created.

Example

Move the arrow object with an ID number of 3 to the top of the current bar:

Value1=Arw_SetLocation(3,Date,Time,High);