# Trailing Stop and Stop Loss

**URL:** https://forum.alpaca.markets/t/trailing-stop-and-stop-loss/13100
**Category:** Alpaca Trading
**Created:** [November 5, 2023, 8:41pm UTC](https://forum.alpaca.markets/t/trailing-stop-and-stop-loss/13100 "2023-11-05T20:41:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![licaili193](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@licaili193](https://forum.alpaca.markets/u/licaili193)
#### Post date: [November 5, 2023, 8:41pm UTC](https://forum.alpaca.markets/t/trailing-stop-and-stop-loss/13100/1 "2023-11-05T20:41:30Z")

</div>

Hi, in my strategy design, I need to monitor an open position with a stop loss together with a trailing stop (i.e. if it hit the stop loss price, I exit; otherwise, when it hit the trailing stop price, start the trailing stop; when it drops from the hwm with a trailing offset, I exit). Looking at the document, for OCO orders, it looks like it only support the loss/profit pair. Can I have a OCO order with the loss/trailing pair, or do I have to maintain this myself? Thanks!

---

<div class="post-metadata">

### Author: ![Dan\_Whitnable\_Alpaca](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/dan_whitnable_alpaca/32/1658_2.png) [@Dan\_Whitnable\_Alpaca](https://forum.alpaca.markets/u/Dan_Whitnable_Alpaca)
#### Post date: [November 5, 2023, 9:23pm UTC](https://forum.alpaca.markets/t/trailing-stop-and-stop-loss/13100/2 "2023-11-05T21:23:22Z")

</div>

@licaili193 That type of order logic would need to be handled by your algo.

---

<div class="post-metadata">

### Author: ![licaili193](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@licaili193](https://forum.alpaca.markets/u/licaili193)
#### Post date: [November 6, 2023, 12:21am UTC](https://forum.alpaca.markets/t/trailing-stop-and-stop-loss/13100/3 "2023-11-06T00:21:08Z")

</div>

Hi, thanks for your reply. So I need to send the short order (if the original order is a long) exactly when my program thinks we should exit, right? I cannot submit two short orders after submitting the first open long order because it would cause a net short position. Is that correct?
