Table of Contents

Enum PositionConditions

Namespace
StockSharp.Diagram.Elements
Assembly
StockSharp.Diagram.Core.dll

Additional order condition based on current position.

public enum PositionConditions
Extension Methods

Fields

[Display(ResourceType = typeof(LocalizedStrings), Name = "PosConditionClose", Description = "PosConditionCloseDetails")] ClosePosition = 4

Close position. Order volume is calculated automatically based on current position.

[Display(ResourceType = typeof(LocalizedStrings), Name = "PosConditionIncreaseOnly", Description = "PosConditionIncreaseOnlyDetails")] IncreaseOnly = 2

Increase position only. Only send order if it is of the same direction as the current position or if the current position is zero.

[Display(ResourceType = typeof(LocalizedStrings), Name = "PosConditionInvert", Description = "PosConditionInvertDetails")] InvertPosition = 5

Invert position to the opposite of the current one. Order volume is calculated automatically based on current position.

[Display(ResourceType = typeof(LocalizedStrings), Name = "None", Description = "PosConditionNone")] NoCondition = 0

No additional condition.

[Display(ResourceType = typeof(LocalizedStrings), Name = "PosConditionOpen", Description = "PosConditionOpenDetails")] OpenPosition = 1

Open position only. Only send order if the current position is zero.

[Display(ResourceType = typeof(LocalizedStrings), Name = "PosConditionReduceOnly", Description = "PosConditionReduceOnlyDetails")] ReduceOnly = 3

Reduce position only. Only send order if it is of the opposite direction of the current non-zero position.