When placing a trailing stop sell order with parameter trailingDelta
only (no stopPrice
, no price
), what is the correct logic to determine if order type
should be STOP_LOSS
or TAKE_PROFIT
? It doesn’t seem like comparing the original buy price to the current market price and setting STOP_LOSS
if buy price > market or TAKE_PROFIT
if buy_price < market is correct. Because what happens if the original buy price is close enough to the current market price, a high trailingDelta
is used, and then the market price reverses significantly? It would change the order type
.
FYI, I have read the helpful Trailing Stop FAQ but this specific question is not addressed. All examples include either stopPrice
or price
along with trailingDelta
.