TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
bool ChartXYToTimePrice ( long  chart_id,
int  x,
int  y,
out int  sub_window,
out DateTime  time,
out double  price 
)

Converts the X and Y coordinates on a chart to the time and price values

Parameters
chart_idChart ID. 0 means the current chart
xX coordinate. The origin is in the upper left corner of the main chart window
yY coordinate. The origin is in the upper left corner of the main chart window
sub_windowNumber of the chart subwindow. 0 denotes the main chart subwindow
timeVariable, into which the chart subwindow number will be written. 0 means the main chart window
priceThe price value on the chart, for which the value in pixels along the Y axis will be received
Returns
Returns true if successful, otherwise false. To get information about the error, call the GetLastError() function