Returns a copy of the position with an additional trade to close the position.

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

Syntax

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

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: PositionInfo
A copy of the position with an additional trade to close the position.

See Also