Interface IChartWindowCoordinatesConverter
Converter between x/y and Time/Price scales
public interface IChartWindowCoordinatesConverter
Methods
Get the bar index that is corresponding to specified DateTime value
Declaration
double GetBarIndex(DateTime dt)
Parameters
Returns
Get the X coordinate that is corresponding to specified DateTime value
Declaration
double GetChartX(DateTime dt)
Parameters
Returns
Get the Y coordinate that is corresponding to specified price value
Declaration
double GetChartY(double price)
Parameters
Type |
Name |
Description |
double |
price |
|
Returns
Get the Price value that is corresponding to specified y coordinate
Declaration
double GetPrice(double y)
Parameters
Type |
Name |
Description |
double |
y |
|
Returns
Get the DateTime value that is corresponding to specified x coordinate
Declaration
DateTime GetTime(double x)
Parameters
Type |
Name |
Description |
double |
x |
|
Returns