Gets the percent profit for a position.
Namespace:
RightEdge.CommonAssembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)
Syntax
| C# |
|---|
public double GetRealizedProfitPct( PositionStats stats ) |
| Visual Basic (Declaration) |
|---|
Public Function GetRealizedProfitPct ( _ stats As PositionStats _ ) As Double |
| Visual C++ |
|---|
public: double GetRealizedProfitPct( PositionStats^ stats ) |
Parameters
- stats
- Type: RightEdge.Common..::.PositionStats
Position statistics to calculate the percent profit for.
Return Value
The percent profit.
Remarks
This value is calculated based on the realized profit for a position.
For an instrument with an initial margin (such as futures or forex), this
will be the return on margin.