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
takeValueUnitTake offset.
stopValueUnitStop offset.
isStopTrailingboolWhether to use a trailing technique.
takeTimeoutTimeSpanTime limit. If protection has not worked by this time, the position will be closed on the market.
stopTimeoutTimeSpanTime limit. If protection has not worked by this time, the position will be closed on the market.
useMarketOrdersboolWhether to use market orders.