Calculates what the position statistics would be if the position was closed at a given price.
Namespace:
RightEdge.CommonAssembly: 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 (Declaration) |
|---|
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 ) |
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.