Risk Control Rules are limits that TAT checks right before it sends an entry order. If a new trade would put you over one of your limits, TAT skips the entry, or keeps retrying it if you choose that option. You can use them to cap the number of contracts, trades, premium sold or buying power used, per template, per strategy or per account.
Rules are checked for every entry TAT places: scheduled trades, webhook/triggered trades, re-entries and Instant Trades. They run after TAT has selected strikes, sized the trade and checked your plan's contract limit. They don't affect exits, stops or profit targets.
How rules are organized
A rule isn't stored on a schedule or a trigger. Each rule applies to one of three things:
- Template: one or more trade templates.
- Strategy: one or more strategy names (the Strategy field on your templates).
- Account: one or more broker accounts.
An entry is checked against every active rule that matches its template, its template's strategy or the account it's going into. A rule you create from one schedule applies to every schedule, trigger and Instant Order that uses the same template, strategy or account. To leave a single schedule or trigger out, turn off its Apply Risk Control Rules switch (see below).
Where to set up rules
From a trade template
- Go to Trade Templates and open the template.
- Scroll to the Risk Control Rules section. It lists the rules that apply to this template and its strategy, or shows "No rules applied."
- Click Add/Edit Rules.
Scheduled trades
- Go to Schedules and create or edit a schedule.
- Find the Risk Control Rules (optional) section.
- Leave Apply Risk Control Rules on (it's on by default). The section lists every rule that applies to this schedule's template, strategy and account.
- Click Add/Edit Rules to add or change rules.
To turn rules on or off for many schedules at once, select them and use Bulk Edit. Its Apply Risk Control Rules option sets the switch for every selected schedule.
Triggered (webhook) trades
- Go to Webhooks / Triggers and create or edit a trigger.
- Find the Risk Control Rules (optional) section.
- Leave Apply Risk Control Rules on. The section lists every rule that applies to this trigger's template, strategy and account.
- Click Add/Edit Rules to add or change rules.
Note: When Apply Risk Control Rules is off, TAT skips all rules for entries from that schedule or trigger, and the log says "Risk Control Rules skipped: turned off on this schedule/trigger." Instant Orders and re-entries always check the rules.
The Risk Control Rules window
Clicking Add/Edit Rules opens the Risk Control Rules window. By default it shows only the rules that apply to the template, strategy or account you opened it from. Turn on Show all rules to see every rule you've set up.
To add a rule, click New Rule. To change one, click it in the list. To remove one, select it and click Delete Rule. Then fill in:
- Applies To: Template, Strategy or Account. It starts on the template or account you came from.
- Items list: tick one or more templates, strategies or accounts. Use the Filter box to find one quickly.
- Rule: the limit to check (see the full list below). A short description of the selected rule appears under it.
- Limit: the maximum allowed. Enter a number only (no $ or % sign needed).
- When the rule blocks entry: Skip the entry or Retry until schedule expiration (explained below).
- Status: Active or Disabled. A disabled rule is kept but not checked.
Click Save Rule.
What "Applies To" counts
Each rule counts only the trades that match its own Applies To:
- Template rules count trades opened from the selected templates, in any account.
- Strategy rules count trades with the selected strategy names, from any template and in any account.
- Account rules count every TAT trade in the selected accounts.
If you select more than one item in a rule, they share one combined limit. For example, a MaxTradesOpen rule of 3 on templates A and B allows 3 open trades in total across A and B, not 3 each. If you want a separate limit for each, create a separate rule for each.
Rules count the trades TAT has in its own records. Trades you placed manually outside TAT aren't counted, except by the buying power rules, which use your broker's account balances.
The rules
A few terms used below:
- Open means trades that are open right now, including ones opened on earlier days.
- Today means trades opened today, whether they're still open or already closed.
- Contracts are actual option contracts across all legs. For example, a 1-lot iron condor is 4 contracts, and a 2-lot put spread is 4 contracts. (This is different from your plan's contract limit, which weights contracts by underlying.)
Contract and trade counts
| Rule | What it checks | Blocks the entry when |
|---|---|---|
| MaxContractsOpen | Contracts currently open. | Open contracts + the new trade's contracts would be more than the limit. |
| MaxShortContractsOpen | Short contracts currently open (short legs only). | Open short contracts + the new trade's short contracts would be more than the limit. Not checked if the new trade has no short legs. |
| MaxLongContractsOpen | Long contracts currently open (long legs only). | Open long contracts + the new trade's long contracts would be more than the limit. Not checked if the new trade has no long legs. |
| MaxTradesOpen | Trades currently open. | The number of open trades has already reached the limit. |
| MaxContractsToday | Contracts opened today. | Today's contracts + the new trade's contracts would be more than the limit. |
| MaxShortContractsToday | Short contracts opened today. | Today's short contracts + the new trade's short contracts would be more than the limit. Not checked if the new trade has no short legs. |
| MaxLongContractsToday | Long contracts opened today. | Today's long contracts + the new trade's long contracts would be more than the limit. Not checked if the new trade has no long legs. |
| MaxTradesToday | Trades opened today. | The number of trades opened today has already reached the limit. |
Example: MaxTradesOpen = 2 on your SPX 0DTE IC template. With 2 of those trades open, the next entry is blocked. Once one of them closes, the next entry is allowed again.
Example: MaxContractsOpen = 40 on your account. You have 36 contracts open and the next entry is a 2-lot iron condor (8 contracts). 36 + 8 = 44, which is over 40, so the entry is blocked.
Premium
| Rule | What it checks | Blocks the entry when |
|---|---|---|
| MaxPremiumSoldToday | Total credit taken in on trades opened today, in dollars. Debit trades add nothing. | Today's premium + the new trade's premium (entry credit × quantity × 100) would be more than the limit. |
Example: Limit 5000. You've sold $4,200 today, and the next trade is 3 contracts at a $3.00 credit ($900). $4,200 + $900 = $5,100, so the entry is blocked.
Short strike stacking
These rules stop TAT from piling up short options at the same strike. They look at the new trade's short call or short put strike and expiration, and count open trades that are already short that exact strike and expiration.
| Rule | What it checks | Blocks the entry when |
|---|---|---|
| MaxTradesOpen_ShortCallStrike | Open trades with a short call at the same strike and expiration as the new trade's short call. | That number of trades has already reached the limit. |
| MaxTradesOpen_ShortPutStrike | Open trades with a short put at the same strike and expiration as the new trade's short put. | That number of trades has already reached the limit. |
| MaxContractsOpen_ShortCallStrike | Short call contracts open at the same strike and expiration as the new trade's short call. | Open short calls at that strike + the new trade's short calls would be more than the limit. |
| MaxContractsOpen_ShortPutStrike | Short put contracts open at the same strike and expiration as the new trade's short put. | Open short puts at that strike + the new trade's short puts would be more than the limit. |
A call rule isn't checked when the new trade has no short call, and a put rule isn't checked when it has no short put. These rules aren't checked for Custom trade templates.
Example: MaxTradesOpen_ShortPutStrike = 1. You already have an open put spread short the 5800 put for today's expiration. A new entry that would also sell the 5800 put for today is blocked. One that sells the 5795 put is allowed.
Buying power (Account rules only)
These two rules can only be used when Applies To is Account. They use the balances your broker reports for the account being traded.
| Rule | What it checks | Blocks the entry when |
|---|---|---|
| MaxBPPctUsed | Buying power used as a percent of net liquidation value. Enter 50 for 50% (0 to 100). | (BP used now + the new trade's BP) ÷ net liq would be more than the limit. |
| MaxBPAmountUsed | Buying power used, in dollars. | BP used now + the new trade's BP would be more than the limit. |
"BP used now" is your net liquidation value minus your available buying power, as reported by the broker. Things to know:
- If TAT doesn't have a balance for the account yet, the rule fails and the entry is blocked (or retried).
- If TAT can't calculate the new trade's BP, it checks your current BP used only and notes that in the log.
- These rules always use the broker's real net liq. The Net Liquidity Override setting isn't used here.
Example: MaxBPPctUsed = 50. Net liq is $100,000 and $45,000 of BP is in use. A new trade needing $6,000 would bring you to 51%, so the entry is blocked.
What happens when a rule blocks an entry
TAT checks each rule that applies. The first rule that fails decides what happens next:
- Skip the entry: the entry is cancelled for this run of the schedule or trigger.
- Retry until schedule expiration: TAT marks the entry as not filled and tries again on its next attempt, until the schedule's or trigger's entry window expires. This is useful with the "Open" rules, because a trade closing can make room for the new one.
- Instant Orders: TAT shows a pop-up naming the rule that blocked the order.
Checking the log
Every rule check is written to the log for that entry on the Logs page, whether it passes or fails. Each line shows the rule, the limit, the current count and the new trade's amount, for example:
Risk Control Rule Passed: Account MaxContractsOpen Limit: 40 Currently Open: 24 New: 8 (Rule #3)Risk Control Rule Failure: Template MaxTradesOpen Limit: 2 Currently Open: 2 (Rule #5, retry until expiration)
Tips
- Trades are counted once they fill. If two schedules enter at exactly the same moment, both can pass the same limit before either has filled. Stagger entry times by a little if a limit must never be exceeded.
- Risk Control Rules are separate from your TAT plan's daily contract limit. Both are checked, and either one can stop an entry.
- To pause a rule without losing it, set its Status to Disabled.