Constructor TrailingStopLossBracketOrderDefinition
- Namespace
- WhalesSecret.TradeScriptLib.API.TradingV1.Orders.Brackets
- Assembly
- WhalesSecret.TradeScriptLib.dll
TrailingStopLossBracketOrderDefinition(decimal, decimal, decimal, decimal)
Creates a new instance of the object.
public TrailingStopLossBracketOrderDefinition(decimal thresholdPrice, decimal sizePercent, decimal priceDistance, decimal replacePriceDelta)
Parameters
thresholdPricedecimalPrice to trigger execution of the order.
sizePercentdecimalSize of the bracket order in percent relative to the filled size of the working order. It must a number greater than
0and not greater than100.priceDistancedecimalPrice distance to keep between the stop-loss order and the market price when the market price moves in the direction of the order.
replacePriceDeltadecimalDifference in market price between the old trailing stop-loss bracket order that triggers the replacement with a new trailing stop-loss bracket order. This value has to be between
0andpriceDistance, both exclusive.