Interface IChartWindowCoordinatesConverter

    Converter between x/y and Time/Price scales

    Namespace: TradingPlatform.BusinessLayer.Chart
    Syntax
    public interface IChartWindowCoordinatesConverter

    Methods

    GetBarIndex(DateTime)

    Get the bar index that is corresponding to specified DateTime value

    Declaration
    double GetBarIndex(DateTime dt)
    Parameters
    Type Name Description
    DateTime dt
    Returns
    Type Description
    double

    GetChartX(DateTime)

    Get the X coordinate that is corresponding to specified DateTime value

    Declaration
    double GetChartX(DateTime dt)
    Parameters
    Type Name Description
    DateTime dt
    Returns
    Type Description
    double

    GetChartY(double)

    Get the Y coordinate that is corresponding to specified price value

    Declaration
    double GetChartY(double price)
    Parameters
    Type Name Description
    double price
    Returns
    Type Description
    double

    GetPrice(double)

    Get the Price value that is corresponding to specified y coordinate

    Declaration
    double GetPrice(double y)
    Parameters
    Type Name Description
    double y
    Returns
    Type Description
    double

    GetTime(double)

    Get the DateTime value that is corresponding to specified x coordinate

    Declaration
    DateTime GetTime(double x)
    Parameters
    Type Name Description
    double x
    Returns
    Type Description
    DateTime
    Back to top Copyright QUANTOWER LLC. © 2017-2023. All rights reserved.