Gets the percent profit for a position.

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

Syntax

C#
public double GetRealizedProfitPct(
	PositionStats stats
)
Visual Basic
Public Function GetRealizedProfitPct ( 
	stats As PositionStats
) As Double
Visual C++
public:
double GetRealizedProfitPct(
	PositionStats^ stats
)
F#
member GetRealizedProfitPct : 
        stats : PositionStats -> float 

Parameters

stats
Type: RightEdge.Common..::..PositionStats
Position statistics to calculate the percent profit for.

Return Value

Type: Double
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.

See Also