Click or drag to resize

ExternalConnectionBaseUpdatePosition Method (IPosition, Int32, Double, Double)

Update the position

Namespace:  SharpCharts.Base.Connection
Assembly:  SharpCharts.Base (in SharpCharts.Base.dll) Version: 1.0.0.42 (1.0.0.42)
Syntax
C#
public static void UpdatePosition(
	IPosition position,
	int quantity,
	double avgPrice,
	double realizedPnL
)

Parameters

position
Type: SharpCharts.Base.OrderIPosition
Position which is to be updated
quantity
Type: SystemInt32
Quantity
avgPrice
Type: SystemDouble
Average price
realizedPnL
Type: SystemDouble
Realized profit and loss
See Also