C# Class SmartQuant.Charting.TIntradayTransformation

Inheritance: IChartTransformation
显示文件 Open project: fastquant/fastquant.dll

Public Methods

Method Description
CalculateNotInSessionTicks ( double x, double y ) : double
CalculateRealQuantityOfTicks_Left ( double x, double y ) : double
CalculateRealQuantityOfTicks_Right ( double x, double y ) : double
GetFirstGridDivision ( EGridSize &gridSize, double &min, double &max, System.DateTime &firstDateTime ) : void
GetNextGridDivision ( double firstTick, double prevMajor, int majorCount, EGridSize gridSize ) : double
SetSessionBounds ( long firstSessionTick, long lastSessionTick ) : void
TIntradayTransformation ( ) : System
TIntradayTransformation ( long firstSessionTick, long lastSessionTick ) : System

Private Methods

Method Description
CalculateGap ( long x, long gridSize ) : long
CalculateJumpGap ( long x, long gridSize ) : long
GetFirstMajor ( long x ) : long
GetNextMajor ( double x, long gridSize ) : double

Method Details

CalculateNotInSessionTicks() public method

public CalculateNotInSessionTicks ( double x, double y ) : double
x double
y double
return double

CalculateRealQuantityOfTicks_Left() public method

public CalculateRealQuantityOfTicks_Left ( double x, double y ) : double
x double
y double
return double

CalculateRealQuantityOfTicks_Right() public method

public CalculateRealQuantityOfTicks_Right ( double x, double y ) : double
x double
y double
return double

GetFirstGridDivision() public method

public GetFirstGridDivision ( EGridSize &gridSize, double &min, double &max, System.DateTime &firstDateTime ) : void
gridSize EGridSize
min double
max double
firstDateTime System.DateTime
return void

GetNextGridDivision() public method

public GetNextGridDivision ( double firstTick, double prevMajor, int majorCount, EGridSize gridSize ) : double
firstTick double
prevMajor double
majorCount int
gridSize EGridSize
return double

SetSessionBounds() public method

public SetSessionBounds ( long firstSessionTick, long lastSessionTick ) : void
firstSessionTick long
lastSessionTick long
return void

TIntradayTransformation() public method

public TIntradayTransformation ( ) : System
return System

TIntradayTransformation() public method

public TIntradayTransformation ( long firstSessionTick, long lastSessionTick ) : System
firstSessionTick long
lastSessionTick long
return System