PositionProtectDiagramElement
StockSharp.Diagram.Elements
The element is used to automatically protect opened positions using stop loss and take-profit.
Herda de: DiagramElement
Construtores
PositionProtectDiagramElement()
Initializes a new instance of the PositionProtectDiagramElement.
Propriedades
IsTrailingStopLoss : bool
Whether to use a trailing technique.
StopLossTimeOut : TimeSpan
Time limit. If protection has not worked by this time, the position will be closed on the market.
StopValue : Unit
The protective level for the stop loss. The default level is 0, which means the disabled.
TakeProfitTimeOut : TimeSpan
Time limit. If protection has not worked by this time, the position will be closed on the market.
TakeValue : Unit
The protective level for the take profit. The default level is 0, which means the disabled.
UseMarketOrders : bool
Whether to use market orders.
Métodos
OnPrepare()
To prepare for starting the diagram element algorithm.
OnReseted()
It is called from the Reset method.