Stop Loss on the Combo, Stop Order on the Short Leg Only
For a Stop Loss at group or Combo level, you can set where the stop order sits with the broker: on all legs as before, or on the short leg alone. This article shows how the settings fit together: the choice in the Stop Loss row, the trigger price, what happens to the long legs after the stop, and the checkbox in the Advanced Settings.
1. What it is about
The stop level is set as usual for all legs of the group or the Combo. With "Stop on short leg", however, the stop order sits with the broker on the short leg alone. For this, OptionsApp derives a trigger price for the short leg alone from the stop level. The price of the long legs is part of that calculation.
When the stop order on the short leg is executed, the short leg is closed. What happens to the long legs depends on a second setting: "Close remaining long legs after group exit" in the Advanced Settings.
| Setting | Stop order at the broker | Long legs after the stop |
|---|---|---|
| Stop on combo / Stop on group | on all legs | are closed together with the Combo |
| Stop on short leg | on the short leg alone | stay open |
| Stop on short leg and Close remaining long legs after group exit | on the short leg alone | are sold with a Market Order; a long leg without a sellable bid stays open |
Both settings apply per Trade Template. The default is "Stop on combo" or "Stop on group" and the checkbox not checked, which is the previous behavior.
2. Requirements
- OptionsApp from version 2.1.
- The Stop Loss sits on a group or on the Combo. The choice does not exist in the block of a single leg.
- The legs covered by the stop contain exactly one short leg (Sell), and it is the first leg. There is at least one long leg (Buy) as well. In the Combo block, the legs of all groups count together.
- The group is opened for a credit. The Trade Template offers the choice for other constellations too. For a group opened for a debit, the stop order stays on the Combo at runtime (section 8).
An Iron Condor with a stop at Combo level does not meet the condition, because it has two short legs. If the put side and the call side are each in their own group with their own Stop Loss, the choice is possible per group.
3. Setting it up step by step
3.1 In the Trade Template: Stop on short leg
- In the block of the group or the Combo, activate "Stop Loss" and set the stop level (Percentage of Premium or Fixed Loss).
- In the Stop Loss row, between the value and the "Trigger" field, there is a selection field without its own label (placeholder "Stop on"). Select "Stop on short leg". The other option reads "Stop on group" in a group block and "Stop on combo" in the Combo block.
- Below the Stop Loss row, the checkbox "Adapt short-leg stop based on the long price" appears (section 4.2). If "Use REL" is active, "REL limit follows the long" appears next to it (section 5.2).
The selection field is only visible while "Stop Loss" is checked and the legs meet the requirements. If a leg is changed so that they are no longer met (for example the first leg is set to Buy), the choice jumps back to "Stop on combo" or "Stop on group".
3.2 In the Advanced Settings: Close remaining long legs after group exit
- At the bottom of the Trade Template, click the "Advanced Settings" button. A window opens with the settings that apply to the whole trade.
- In the last row, check "Close remaining long legs after group exit".
- Save the Trade Template.
The checkbox is independent of "Stop on short leg". It applies whenever all short legs of a group are closed, whether by Stop Loss, Profit Target, Exit or webhook. Default: not checked.
4. How the trigger price is formed
4.1 Calculation
The stop order sits as a buy stop on the short leg alone, with the short leg's quantity. Its trigger price is:
Trigger price of the short leg = (absolute stop level + sum of ratio × reference price per long leg) / ratio of the short leg
- The stop level is the level of all legs from the Stop Loss row, unchanged.
- The reference price per long leg is its opening price. With "Adapt short-leg stop based on the long price" it is its current bid (section 4.2).
- The result is rounded down to the tick and adjusted to the exchange's price increments.
- If the trigger price at placement is not at least 5 % above the current ask of the short leg, OptionsApp sets it to that ask (rounded up to the tick). The Trade Log then shows the warning "The stop trigger on the short leg is at or below the current ask ...; the stop is set to ...".
Every placement appears in the Trade Log, for example "Stop order on the short leg ...: trigger 3.00 = |-2.00| + 1.00 (long legs fixed at entry)". In the Dashboard, the Stops column shows the level with the short leg and the trigger price, for example "SL -2.0 on -1xP5800 (trigger 3.00)". A Profit Target follows with all legs.
The Profit Target stays on the Combo. Stop order and Profit Target sit in a shared OCA group at the broker: if one of them is executed, the broker cancels the other.
4.2 Adapt short-leg stop based on the long price
Without this checkbox, the long legs enter the trigger price with their opening price. It is formed once at placement and stays fixed afterwards. With the checkbox, they enter with their current bid, and the trigger price follows the bid of the longs. Default: not checked.
OptionsApp checks the trigger price every 5 seconds and changes the order at the broker in place, without cancelling it:
- Lowering (the bid of the longs falls): at the next check, at most every 3 seconds per order.
- Raising (the bid of the longs rises): only when the new value is at least 2 ticks above the current one, a second reading after at least 5 seconds confirms it, and the last change was at least 30 seconds ago. The trigger price is raised to the smaller of the two values read.
- No current bid (older than 60 seconds or none): the trigger price stays where it is. After 60 seconds without a bid, OptionsApp counts the long leg as 0. This can only lower the trigger price.
- App-wide, OptionsApp changes at most 1 order per second.
The values 2 ticks, 5, 30 and 60 seconds are in the constants table in the user portal ("Stop on the short leg: ...").
The order is not changed while it is partly filled, while a closing of the trade is running, or while the order is not active at the broker. After a restart of OptionsApp, the session no longer knows the order. OptionsApp then places the closing orders once more if the trade is running, the order is not partly filled and all longs have a current bid. Until then, the Trade Log shows "Short-leg stop tracking paused: ...".
5. Interaction with other settings
5.1 Trigger and Stop Adjustment
- With "Stop on short leg", the "Trigger" selection (Single Bid, Double Bid, Mid Price) acts on the price of the short leg, no longer on the price of the Combo.
- Stop Adjustment still calculates with the price of all legs. At every placement of the stop order, OptionsApp forms the trigger price from the stop level valid at that time.
- The order on the short leg is a stop order; if "Use REL" is checked, it is a REL Order.
5.2 Use REL and REL limit follows the long
With "Use REL", the stop order on the short leg is a REL Order from the start. "Lim. Price" is the highest price at which the short leg is bought back.
The checkbox "REL limit follows the long" appears only with "Stop on short leg" together with "Use REL". When checked, the limit is "Lim. Price" plus the price of the long legs, that is their opening price or, with "Adapt short-leg stop based on the long price", their current bid. When not checked, "Lim. Price" alone applies. The Trade Log then shows "REL limit follows the long legs: ... = Lim. Price ... + long legs".
If the contract offers no REL Order, the template hides "Use REL". The short leg then carries a stop order of the selected order type.
A REL Order is a limit order. It can remain unexecuted if the price moves beyond the limit.
5.3 Limit closings: no automatic switch to Market
OptionsApp never switches a closing by Limit Order to a Market Order on its own. This applies to Early Exit, Exit when Delta, Exit when Short/Long Ratio, Exit Conditions and webhooks. A Market Order follows only if "Market Order after last Attempt" is checked in the Exit Behavior of the Trade Template. If such a limit closing is not executed, the position stays open, and WARNING 010 "Limit order not filled" reports it.
For this article that means: selling the long legs through "Close remaining long legs after group exit" is a separate rule that uses a Market Order (section 6.2). It does not depend on "Market Order after last Attempt". All other limit closings follow the Exit Behavior alone. Details: Execution Logic (Entry & Exit Behavior), section 3.
6. What happens when the stop triggers
6.1 Without Close remaining long legs after group exit
- The trigger of the short leg is reached and the stop order is executed.
- The Profit Target of the Combo is cancelled by the broker through the OCA group.
- The long legs stay open and visible in the Dashboard. The status of the trade carries the addition "· 1 leg(s) open" (or the number of open legs).
- Profit and loss of the open long legs keep running until they are closed by hand or expire.
6.2 With Close remaining long legs after group exit
Once all short legs of a group are closed, OptionsApp sells the remaining long legs of that group with a Market Order.
- The message INFO 072 "Sell order sent for a remaining long leg" confirms that the order was sent.
- A long leg without a sellable bid stays open. WARNING 074 "Remaining long leg left open after group exit" reports it with the reason. No further automatic attempt follows in the same session.
- A Market Order that is still not executed after 30 seconds is cancelled. If OptionsApp has to wait before the sale (for example until an execution is booked), it waits at most 120 seconds. After that the long leg stays open and is reported. Both values are in the constants table in the user portal.
- If the broker rejects the sale, the long leg also stays open and is reported with WARNING 074.
7. Examples
The examples only show how the fields are set and what OptionsApp calculates from them. Tick 0.05, ratio 1:1.
7.1 Vertical with a fixed trigger price
- Group: Short Put (first leg) opened at 2.00, Long Put opened at 1.00. Credit 1.00.
- Stop Loss: Percentage of Premium 100 %. Stop level of the group 2.00.
- Choice "Stop on short leg", "Adapt short-leg stop based on the long price" not checked.
Trigger price: 2.00 + 1.00 = 3.00. A buy stop sits on the Short Put at 3.00 with the broker. It stays at 3.00 even if the Long Put moves. This results in:
- Short Put 3.00, Long Put 1.40: the Combo stands at 1.60, a stop on the Combo would not have triggered yet. The stop on the short leg triggers.
- Short Put 3.00, Long Put 0.80: the Combo stands at 2.20. A stop on the Combo would already have triggered at a Short Put of 2.80. The stop on the short leg triggers only at 3.00.
After the stop order is executed, the Long Put stays open as long as "Close remaining long legs after group exit" is not checked. With the checkbox, OptionsApp then sells the Long Put with a Market Order if it has a sellable bid.
7.2 Trigger price follows the bid of the longs
Like 7.1, but "Adapt short-leg stop based on the long price" checked:
- The bid of the Long Put falls to 0.80. At the next check, OptionsApp lowers the trigger price to 2.00 + 0.80 = 2.80.
- The bid then rises to 1.10. The new value 3.10 is 0.30 above 2.80, so more than 2 ticks. After a second reading at least 5 seconds later and at least 30 seconds after the last change, OptionsApp raises the trigger price to the smaller of the two values read.
- If the Long Put has no current bid for 60 seconds, OptionsApp counts it as 0. The trigger price drops to 2.00.
7.3 REL Order with a limit that follows
Like 7.1, plus "Use REL" with "Lim. Price" 20.00 (strike distance 20 points) and "REL limit follows the long" checked:
- Limit of the buy-back: 20.00 + 1.00 = 21.00.
- Without "REL limit follows the long": limit 20.00.
8. When the stop order stays on the Combo anyway
In these cases OptionsApp places the stop order on all legs, as with "Stop on combo". The Trade Log shows "Stop order stays on the combo: <reason>" once per reason:
- "the group did not open for a credit": the group was opened for a debit.
- "a partial profit target is configured": a Profit Target closes less than 100 %.
- "a strike offset exit is configured": an exit by strike distance is set.
- "the group has no short leg", "the group has more than one short leg", "the group has no long leg", "the group's main leg is not its short leg".
- "a long leg has no reference price", "the short leg has no contract", "no trigger could be derived for the short leg".
- "the close order carries one leg only": the closing order contains only one leg, for example because a long leg without a bid was taken out of it (see Rebuilding of close orders when a leg becomes untradeable). The stop order then sits on the short leg anyway, with the stop level without the long part.
9. Notes and risks
- Open long legs: Without "Close remaining long legs after group exit", the long legs stay open after the stop and keep running in the market. Even with the checkbox, a long leg can stay open (no sellable bid, rejection by the broker). Open legs can be recognized by the addition "leg(s) open" in the Dashboard and by WARNING 074. Whether they are closed is up to the user.
- Fixed trigger price: Without "Adapt short-leg stop based on the long price", the trigger price matches the stop level of all legs only as long as the longs stand at their opening price. If the long has risen, the stop triggers earlier than a stop on the Combo; if it has fallen, later (example 7.1).
- Missing bid: With "Adapt short-leg stop based on the long price", OptionsApp counts a long leg without a current bid as 0 after 60 seconds. The stop can therefore trigger earlier.
- Close to the market: If the trigger price at placement is close to the ask or below it, OptionsApp sets it to the ask. The stop can then trigger immediately.
- Limit orders: A REL Order can remain unexecuted even when the trigger price is reached. A limit close without "Market Order after last Attempt" stays unexecuted if the price does not reach the limit.
- Execution price: Only the short leg is executed. As with any Stop Loss, OptionsApp has no influence on the actual execution price.
- Responsibility of the user: Which setting suits your own strategy is for the user to decide. The settings are tools of OptionsApp and not a recommendation.
What OptionsApp does not do:
- It does not change the stop level you set. It remains the level of all legs.
- It does not offer "Stop on short leg" in the block of a single leg, and not for groups with more than one short leg.
- It sells the long legs after the stop only with "Close remaining long legs after group exit".
- It places no Stop Loss of its own for a long leg that stayed open.
- The Strike Distance Condition is currently not available for a stop with "Stop on short leg".
- The template warning "'Use REL' on the stop loss of ... may never execute: ..." only checks the number of short and long legs, not the choice "Stop on short leg". It therefore also appears for "Stop on short leg" with "Use REL".
Further articles:
- P&L Action: Stop Loss
- P&L Action: Stop Loss REL Order
- What is a REL Order?
- P&L Action: Stop Adjustment
- Execution Logic (Entry & Exit Behavior)
- Rebuilding of close orders when a leg becomes untradeable
- Why is my Stop Loss changing from the Combo to the Short Leg?
See also: P&L Actions: Overview, P&L Action: Delta Exit, P&L Action: ITM Protection.