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
chart_id | Chart ID. 0 means the current chart |
sub_window | Number of the chart subwindow. 0 denotes the main chart subwindow |
time | The time value on the chart, for which the value in pixels along the X axis will be received |
price | The price value on the chart, for which the value in pixels along the Y axis will be received |
x | The 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 |
y | The 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 |