Interface IProtectiveBehaviourFactory
- Namespace
- StockSharp.Algo.Strategies.Protective
- Assembly
- StockSharp.Algo.dll
IProtectiveBehaviour factory.
public interface IProtectiveBehaviourFactory
- Extension Methods
Methods
Create(Unit, Unit, bool, TimeSpan, TimeSpan, bool)
Create IProtectiveBehaviour
IProtectiveBehaviour Create(Unit takeValue, Unit stopValue, bool isStopTrailing, TimeSpan takeTimeout, TimeSpan stopTimeout, bool useMarketOrders)
Parameters
takeValue
UnitTake offset.
stopValue
UnitStop offset.
isStopTrailing
boolWhether to use a trailing technique.
takeTimeout
TimeSpanTime limit. If protection has not worked by this time, the position will be closed on the market.
stopTimeout
TimeSpanTime limit. If protection has not worked by this time, the position will be closed on the market.
useMarketOrders
boolWhether to use market orders.