Table of Contents

Interface IProtectiveBehaviourFactory

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

Methods

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

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

Parameters

takeValue Unit

Take offset.

stopValue Unit

Stop offset.

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