Calculates what the position statistics would be if the position was closed at a given price.

Namespace: RightEdge.Common
Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)

Syntax

C#
public PositionStats GetCloseStats(
	double price,
	DateTime time,
	IAccountInfo accountInfo
)
Visual Basic
Public Function GetCloseStats ( 
	price As Double,
	time As DateTime,
	accountInfo As IAccountInfo
) As PositionStats
Visual C++
public:
PositionStats^ GetCloseStats(
	double price, 
	DateTime time, 
	IAccountInfo^ accountInfo
)
F#
member GetCloseStats : 
        price : float * 
        time : DateTime * 
        accountInfo : IAccountInfo -> PositionStats 

Parameters

price
Type: System..::..Double
The price for the position to be closed at.
time
Type: System..::..DateTime
The time to close the position at.
accountInfo
Type: RightEdge.Common..::..IAccountInfo
An object providing account information.

Return Value

Type: PositionStats
Position statistics representing what the statistics would be if the position was closed.

See Also