+1 888 340 6572

Text SetLocation BN

From MultiCharts

Modifies location of a text object with the specified ID number; returns a value of 0 if location of the object was successfully modified, and a value of -2 if the specified object ID number is invalid.

Usage

Text_SetLocation_BN (ObjectID, BarNumber, PriceValue)

Parameters

ObjectID - a numerical expression specifying the object ID number.
BarNumber - a numerical expression specifying the bar number at which the object is to be placed.
PriceValue - a numerical expression specifying the price value (vertical position, corresponding to a value on the price scale of a chart), where the object should be placed.

Notes

  • An object-specific ID number is returned by Text New DT when the text object is created.

Example

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

Value1=Text_SetLocation_BN(3,currentbar,High);