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

Converts the coordinates of a chart from the time/price representation to the X and Y coordinates

Parameters
chart_idChart ID. 0 means the current chart
sub_windowNumber of the chart subwindow. 0 denotes the main chart subwindow
timeThe time value on the chart, for which the value in pixels along the X axis will be received
priceThe price value on the chart, for which the value in pixels along the Y axis will be received
xThe variable, into which the conversion of time to X will be received. The origin is in the upper left corner of the main chart window
yThe variable, into which the conversion of price to Y will be received. The origin is in the upper left corner of the main chart window
Returns
Returns true if successful, otherwise false. To get information about the error, call the GetLastError() function