Gets the exposure for this position.

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


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


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

Return Value

Type: Double
The exposure for the position.


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