MQL4 Reference Chart Operations ChartXYToTimePrice
|
ChartXYToTimePriceConverts the X and Y coordinates on a chart to the time and price values.
Parameters chart_id [in] Chart ID. 0 means the current chart. x [in] The X coordinate. The origin is in the upper left corner of the main chart window. y [in] The Y coordinate. The origin is in the upper left corner of the main chart window. sub_window [out] The variable, into which the chart subwindow number will be written. 0 means the main chart window. time [out] The time value on the chart, for which the value in pixels along the X axis will be received. price [out] The price value on the chart, for which the value in pixels along the Y axis will be received. Return Value Returns true if successful, otherwise false. To get information about the error, call the GetLastError() function. Example:
See also |