The Chart Corner to Which an Object Is Attached
There is a number graphical objects, for which you can set the corner of a chart, relative to which coordinates are specified in pixels. These are the following types of objects (in brackets object type identifiers are specified):
In order to specify the chart corner, from which X and Y coordinates will be measured in pixels, use ObjectSetInteger(chartID, name, OBJPROP_CORNER, chart_corner), where:
ENUM_BASE_CORNER
ID |
Description |
CORNER_LEFT_UPPER |
Center of coordinates is in the upper left corner of the chart |
CORNER_LEFT_LOWER |
Center of coordinates is in the lower left corner of the chart |
CORNER_RIGHT_LOWER |
Center of coordinates is in the lower right corner of the chart |
CORNER_RIGHT_UPPER |
Center of coordinates is in the upper right corner of the chart |
Example:
void CreateLabel(long chart_id, |
© 2000-2010, MetaQuotes Software Corp.