Click or drag to resize

TraderHelperGetPosition Method (MyTrade)

To get the position on own trade.

Namespace:  StockSharp.Algo
Assembly:  StockSharp.Algo (in StockSharp.Algo.dll) Version: (4.4.16)
public static Nullable<decimal> GetPosition(
	this MyTrade trade


Type: StockSharp.BusinessEntitiesMyTrade
Own trade, used for position calculation. At buy the trade volume Volume is taken with positive sign, at sell - with negative.

Return Value

Type: NullableDecimal

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MyTrade. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also