Bot Settings: Trade Exit
The Trade Exit section controls how a trade ends on your terms: a scheduled closing time, a profit target, or both. This reference covers every setting in the section of the bot form. For a task-oriented walkthrough, see Profit Targets and Timed Exits.
Timed Exit
The Timed Exit toggle schedules an automatic close for the trade. When you switch it to Enabled, two more controls appear: Exit at Set Time and the days mode selector. When it is off, the bot holds the trade until a profit target, stop, or your own action closes it.
Exit at Set Time
This control sets both the day and the time of the scheduled close. It has three parts:
- A Days value. The label in front of it reads DTE when you are counting days to expiration, or Trade Day when you are counting days in trade, so the box always shows which way it will be interpreted.
- An HH hour picker covering market hours (9 through 4).
- An MM minute picker (00 through 59).
Together they mean: when the trade reaches the set day, close it at this time. The countdown is measured against the position leg with the closest expiration.
Exit Days in Trade or Days to Expiration
This two-button choice decides how the Days value counts:
| Option | How the Days value is read |
|---|---|
| To Expiration | Days remaining until the nearest leg expires. A value of 0 closes the trade on expiration day; 1 closes it the day before. This is the default. |
| In Trade | Days the trade has been open. A value of 0 closes the trade the same day it opens; 1 closes it the next trading day. |
Profit Target Type
Profit Target Type selects whether the bot places a profit target, and how the target price is calculated. Profit target orders are resting closing orders that sit at your broker waiting to fill. You can control the price threshold at which these orders are entered with the Profit Target Trigger preference in Account Settings.
The four choices:
| Option | What it does |
|---|---|
| Disabled | No profit target is placed. |
| Fixed Closing Order Target | Places a closing order for the trade at an exact price you set, in dollars. |
| Fixed Net Profit Target | Calculates the target from the opening trade price, adjusted by the dollar amount you set. |
| Percent Profit Target | Calculates the target as a percentage profit of the trade entry price. |
Selecting a type reveals its matching value field; the other value fields stay hidden.
Closing Order Target
Shown when the type is Fixed Closing Order Target. The bot places a resting closing order for the trade at exactly this price, entered in dollars.
Net Profit Target
Shown when the type is Fixed Net Profit Target. The bot takes the price the trade opened at and adjusts it by this dollar amount to produce the closing order price.
Profit Target Percentage
Shown when the type is Percent Profit Target. The target is that percentage of profit measured against the entry price, and it works for both directions of a trade. For a long position or net debit trade entered for $2.00, an 80 percent profit target places a closing order at $3.60. For a short position or net credit trade entered at $2.00, an 80 percent target places the closing order at $0.40.
Disable Profit Target After Stop
This toggle appears only when the bot has both a profit target and a stop loss configured. Normally, profit target orders are canceled while a stop loss is pending, and the bot puts them back after a stop closes part of the trade or the stop check clears. With Disable Profit Target After Stop enabled, once a stop fills and closes a portion of the trade, the profit target stays off for the remainder of that trade.
Use it when a partial stop means you no longer want the surviving contracts waiting on the original target, for example when you would rather manage the remainder manually or let the stop settings finish the job. Stops themselves are covered in Bot Settings: Trade Stop, Trailing Stops, and Launch on Stop.