Enum BracketOrderType
- Namespace
- WhalesSecret.TradeScriptLib.API.TradingV1.Orders.Brackets
- Assembly
- WhalesSecret.TradeScriptLib.dll
Types of supported bracket orders.
public enum BracketOrderType
- Extension Methods
Fields
StopLoss = 0Stop-loss bracket order is placed below buy orders, or above sell orders, in order to cap the maximum loss.
The order is converted to a market order once its threshold is reached, so it's filled in full then.
Note that some exchanges limit the maximum number of such open orders at one moment.
TrailingStopLoss = 1Trailing stop-loss bracket order is placed below buy orders, or above sell orders, in order to cap the maximum loss, just like the regular StopLoss. However, a trailing stop-loss order is adjusted automatically as the price moves in the direction of the trade, so it can be used to lock in profits while still allowing the price to move further in the direction of the trade, thus potentially increasing the profit.
The order is converted to a market order once its threshold is reached, so it's filled in full then.
Note that some exchanges limit the maximum number of such open orders at one moment.
TakeProfit = 2Take-profit bracket order is placed above buy orders, or below sell orders, in order to realize profit from a trade.
The order is converted to a market order once its threshold is reached, so it's filled in full then.
Note that some exchanges limit the maximum number of such open orders at one moment.
TakeProfitUsingLimitOrder = 3Take-profit bracket order similar to TakeProfit but realized through a limit order rather than a market order.
Given that the order turns into a limit order, it may be partially filled when its threshold is reached.