Gets the exposure for this position.

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

Syntax

C#
public double GetExposure(
	PositionStats stats,
	IAccountInfo accountInfo
)
Visual Basic
Public Function GetExposure ( 
	stats As PositionStats,
	accountInfo As IAccountInfo
) As Double
Visual C++
public:
double GetExposure(
	PositionStats^ stats, 
	IAccountInfo^ accountInfo
)
F#
member GetExposure : 
        stats : PositionStats * 
        accountInfo : IAccountInfo -> float 

Parameters

stats
Type: RightEdge.Common..::..PositionStats
The PositionStats object corresponding to the most recent trade at the time you want to calculate the exposure.
accountInfo
Type: RightEdge.Common..::..IAccountInfo
Account information.

Return Value

Type: Double
The exposure for the position.

Remarks

For a long position on a standard equity, the exposure is both the amount of money that it cost to open the position, and the maximum amount of money that could be lost from the position (if the stock loses all of its value).

For short or leveraged positions, the risk/exposure may be theoretically infinite or may not correspond to the cost to open a position. In any case, this function returns a value that corresponds to the cost to open the position.

Note that this value does not include commissions.

See Also