Table of Contents

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

thresholdPrice decimal

Price to trigger execution of the order.

sizePercent decimal

Size of the bracket order in percent relative to the filled size of the working order. It must a number greater than 0 and not greater than 100.

priceDistance decimal

Price distance to keep between the stop-loss order and the market price when the market price moves in the direction of the order.

replacePriceDelta decimal

Difference 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 0 and priceDistance, both exclusive.