Click or drag to resize

ExternalConnectionBase.UpdatePosition 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.Order.IPosition
Position which is to be updated
quantity
Type: System.Int32
Quantity
avgPrice
Type: System.Double
Average price
realizedPnL
Type: System.Double
Realized profit and loss
See Also