Table of Contents

Interface IProtectiveBehaviourFactory

Namespace
StockSharp.Algo.Strategies.Protective
Assembly
StockSharp.Algo.dll
public interface IProtectiveBehaviourFactory
Extension Methods

Methods

Create(Unit, Unit, bool, bool, TimeSpan, TimeSpan, bool)

IProtectiveBehaviour Create(Unit takeValue, Unit stopValue, bool isTakeTrailing, bool isStopTrailing, TimeSpan takeTimeout, TimeSpan stopTimeout, bool useMarketOrders)

Parameters

takeValue Unit

Take offset.

stopValue Unit

Stop offset.

isTakeTrailing bool

Whether to use a trailing technique.

isStopTrailing bool

Whether to use a trailing technique.

takeTimeout TimeSpan

Time limit. If protection has not worked by this time, the position will be closed on the market.

stopTimeout TimeSpan

Time limit. If protection has not worked by this time, the position will be closed on the market.

useMarketOrders bool

Whether to use market orders.

Returns

IProtectiveBehaviour

IProtectiveBehaviour