Returns a copy of the position with an additional trade to close the position.
Namespace:
RightEdge.CommonAssembly: 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 (Declaration) |
|---|
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 ) |
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.