IPercentStopOrderCondition

StockSharp.Messages

Optional mixin for stop-order conditions that allow expressing activation/limit/trailing values as percentages instead of absolutes. Server resolves percents to absolute prices at register/trigger time using the last known market price.

Properties

IsActivationPricePercent
public bool IsActivationPricePercent { get; set; }
value = iPercentStopOrderCondition.IsActivationPricePercent
iPercentStopOrderCondition.IsActivationPricePercent = value

When , ActivationPrice (or ActivationPrice) is a percent of the market price at registration time. The server snapshots the price and stores the resulting absolute trigger.

IsClosePositionPricePercent
public bool IsClosePositionPricePercent { get; set; }
value = iPercentStopOrderCondition.IsClosePositionPricePercent
iPercentStopOrderCondition.IsClosePositionPricePercent = value

When , ClosePositionPrice (or ClosePositionPrice) is a percent of the activation price; the limit price is computed at trigger time.

IsTrailingOffsetPercent
public bool IsTrailingOffsetPercent { get; set; }
value = iPercentStopOrderCondition.IsTrailingOffsetPercent
iPercentStopOrderCondition.IsTrailingOffsetPercent = value

When , the trailing offset is a percent of the high/low watermark; the stop price is recomputed on each tick.