Reference guide · Core Bots

Decision Layer: reviewing candidates before Swing entry

Between the morning technical scans and preparation of Swing entries, Decision Layer checks candidates against the actual portfolio. Learn what it accepts, what it rejects, and what it passes onward—without confusing preparation with execution.

Step 7 of 9Swing path · SWING or BOTHNo orders submitted
01

What is Decision Layer for?

A second level of control after the scans.

Scan A and Scan B analyze securities in the monitoring universe using different methodologies. Their findings do not necessarily reflect every position already held in the trading account.

Decision Layer reviews their candidates in the context of the Interactive Brokers (IBKR) portfolio: existing holdings, sector exposure and cash-related information needed for the next step. It produces a pool of eligible candidates for Bridge Bot, not a set of orders.

!

Key point: passing Decision Layer does not mean a stock will be bought. Bridge Bot then prepares Swing entries; Entry Bot remains responsible for any eventual orders under the active rules.

02

Where it sits in the Morning Decision Chain

Step seven, dedicated to the Swing path.

The chain first prepares market data, identifies the regime and runs both scans. Intraday Ranking may prepare its own list afterward. Decision Layer then runs for the Swing path, immediately before Bridge Bot.

01

Scan A and Scan B

Propose candidates independently, using different evaluation criteria. They do not create a unified scoring scale.

02

Decision Layer

Checks eligibility and cross-references candidates with open positions and sector concentration.

03

Bridge Bot, then Entry Bot

Bridge builds the final shortlist and prepares symbols for Swing entries. Entry Bot handles any later execution.

With INTRADAY-only mode selected, the morning chain skips Decision Layer and Bridge Bot. They run under SWING or BOTH. The common scans remain separate from this branch choice.

03

Which information does it use?

Scan results and the actual account context.

01

Scan A candidates

Technical results, candidate status, score and Scan A-specific entry-quality checks.

02

Scan B candidates

Detected setups and the candidate eligibility already established by Scan B.

03

IBKR portfolio

Account information, open holdings, financial context and relevant sector classifications.

Decision Layer reads the latest available output from each scan and queries IBKR for current account context. The IBKR connection is read-only: the bot does not buy or sell shares.

Sector classifications are requested from IBKR for relevant candidates. An older scan-file category is not used as the final source of truth.

04

First check: is it truly eligible?

A good score is not enough.

A ticker appearing in a scan report is not automatically eligible for further processing. Decision Layer first checks its candidate status and then applies validation appropriate to its origin.

  1. Scan A: it preserves Scan A’s own quality checks, including nearby resistance, acceptable price amplitude and liquidity.
  2. Scan B: it respects the eligibility already established by Scan B. It does not force Scan A’s support/resistance rules onto a different Scan B setup.
  3. Both sources: an ineligible ticker is excluded before sector validation, regardless of its raw score.
i

Why this matters: Scan A and Scan B look for different market conditions. Treating their scores as interchangeable would distort the selection.

05

Second check: avoid duplicate holdings

Reviewing positions already in the account.

Decision Layer reads positions in the relevant IBKR account and identifies tickers already held. Under the reviewed configuration, a candidate already held in an open position is rejected for a new Swing entry.

This helps avoid treating an existing holding as a separate new opportunity. It does not mean that Decision Layer closes a position or modifies its protection: those activities belong to position-management and risk-management components.

Example: Scan B qualifies a stock, but that ticker is already held. It does not proceed to the Bridge as a new-entry candidate.

06

Third check: sector diversification

Recognizing existing concentrations.

Owning many stocks does not necessarily make a portfolio diversified. Several holdings can belong to the same sector and respond similarly to the same event.

Decision Layer estimates estimated sector exposure and uses two levels of protection:

01

Caution level

Depending on the active policy, a candidate may receive a priority penalty or be rejected when its sector is already heavily represented.

02

Hard limit

When the strict sector limit is reached, another candidate from that sector can be rejected.

03

Final selection

Bridge Bot subsequently applies a separate limit to the number of newly selected tickers from one sector.

This estimate uses account positions, their average cost and overall account value. Sector information comes from IBKR contract data. If a classification cannot be determined, the bot uses a generic category, so classification cannot be assumed perfect.

Example: a portfolio already concentrated in technology may lead Decision Layer to penalize or reject an additional technology candidate even when the scan found it promising.

07

How does cash and position sizing fit in?

Preparing reference limits, not guaranteeing buying power.

Decision Layer reads account value, account cash and allocation settings shared with the entry workflow. From these it calculates an indicative maximum order size after a cash reserve, along with a minimum reference value.

These figures accompany the output supplied to Bridge. The bot does not reserve funds or guarantee that a purchase can be executed when Entry Bot later performs its own checks.

!

Distinguish an indicative sizing calculation from final cash validation for an order. Account balances and holdings can change between morning preparation and market open.

08

Understanding scores without mixing the scans

Original scan scores versus portfolio-adjusted scores.

Each candidate retains its scan source. Decision Layer may generate an adjusted score when a sector-exposure penalty applies, alongside its original scan score.

However, a score of 80 on Scan A does not necessarily mean the same thing as 80 on Scan B. The two scans use different scoring methods. This is why the subsequent selection follows distinct per-source rules.

Reading an example

Stock A qualifies under Scan A and keeps its technical score, possibly reduced due to concentration. Stock B qualifies under Scan B and retains its own score and provenance. Both may pass to Bridge without being combined into a single cross-scan league table.

09

From the scans to the Decision output

What happens during a normal run.

  1. Read available results: load the Scan A and Scan B outputs.
  2. Read the IBKR account: retrieve positions and financial context; the reviewed configuration requires this information.
  3. Identify sectors: resolve relevant candidates against the IBKR sector data.
  4. Evaluate each candidate: apply eligibility, existing-holding checks and sector exposure policy.
  5. Record the shortlist: save the results and a latest snapshot for the next component.
  6. Publish the status: make the stage outcome available in monitoring and log records.
SB-ITM Control Center showing the Decision Layer step within the Morning Decision Chain
Existing Control Center screenshot showing the Decision Layer stage in the morning workflow. Exact labels may vary by software version.
10

Understanding the output

PASS, REJECT and decision reasons.

Each evaluated candidate receives an internal decision. PASS candidates are included in the output passed to Bridge. REJECT candidates are excluded, The bot counts rejected candidates and records reasons during its evaluation, but only accepted candidates are written to the file used by Bridge.

✓

PASS

The stock passed Decision Layer. It still faces Bridge selection rules and later execution checks.

×

REJECT

The stock is removed from this workflow, for example due to ineligibility, an existing holding or excessive sector exposure.

The output retains its Scan A or Scan B source, score, sector information and fields needed by the next stage. A rejected candidate does not mean an order was canceled: no order was submitted at this stage.

11

What Bridge Bot does next

Complementary responsibilities, not one merged step.

Decision Layer produces an eligible pool. Bridge then selects the specific symbols to prepare for Swing entry.

  1. Per-scan thresholds: Bridge checks each scan’s minimum source score before applying the effect of portfolio penalties to ranking.
  2. Quotas and prioritization: the highest-ranked candidates of Scan A and Scan B are handled by source, then combined without directly comparing the two scan scores.
  3. Duplicates and sectors: a ticker proposed by both scans appears once in the final selection; Bridge also enforces a per-sector limit for newly selected tickers.
  4. Preparation: when symbols remain, Bridge updates the planned date and ticker list for Entry Bot. Bridge does not place orders.

Important: when Bridge selects no symbols, it may leave the existing entry list unchanged. Therefore, a completed Decision Layer stage alone does not prove that a new entry list has been created.

12

When does Decision Layer run?

Trading mode controls the branch.

ModeDecision LayerOutcome
SWINGRunsPrepares candidates for Bridge Bot.
INTRADAYSkippedPreparation uses Intraday Ranking and the Watchlist Builder instead.
BOTHRunsSwing and Intraday preparation follow separate paths.

NONE mode is intended to block new entries while analysis and management of open positions continue. That restriction belongs to the execution flow; Decision Layer itself should not be portrayed as the order-blocking mechanism.

13

Exceptions and degraded conditions

An empty result does not always mean failure.

01

No eligible candidates

An empty selection output may be a normal result. The scans ran, but no stocks met the day’s conditions.

02

A scan file is missing

Decision Layer expects both scan outputs. Missing required data can stop the run before a shortlist is prepared.

03

IBKR context unavailable

Under the reviewed configuration, portfolio context is mandatory. An inability to read it causes the stage to fail.

04

Candidate disappears in Bridge

Bridge thresholds, quotas, duplicate handling or sector limits can exclude a stock that passed Decision Layer.

Bridge retains a legacy compatibility path if no Decision Layer output can be found. That path should not be confused with the normal two-scan, portfolio-aware workflow.

14

What should I check in Control Center?

Read the stage outcomes before calling it an incident.

Under Core Bots → Morning Decision Chain, check Decision Layer and the earlier stages. COMPLETED means the processing finished; it does not guarantee that a candidate was accepted or that a trade will be executed.

If the stage fails, review available status and log information, including IBKR availability, the Scan A/Scan B outputs and portfolio context. Do not edit internal files to force through a rejected candidate.

i

Useful distinction: no valid opportunities, stage skipped in Intraday mode and technical failure are different outcomes requiring different responses.

15

Four examples to make the decisions clear

A sound decision may exclude a promising stock.

A

Strong score, already held

The stock qualifies in its scan, but Decision Layer excludes it from new Swing candidates to avoid duplicating a holding.

B

Valid Scan B setup

Decision Layer honors Scan B’s own validation instead of imposing Scan A’s nearby-resistance test on the setup.

C

Overrepresented sector

The candidate is penalized or rejected under the active limit despite otherwise favorable technical analysis.

D

No new stocks today

The stage may complete with no eligible candidates. This does not necessarily mean Scan A or Scan B failed.

16

Frequently asked questions

Common points of confusion.

Does Decision Layer buy the selected stocks?

No. It builds an eligible shortlist. Bridge prepares Swing tickers, and Entry Bot handles any eventual entries.

Why does a stock visible in Scan A disappear?

It may not be an approved candidate, may fail Scan A-specific checks, may already be held or may breach sector exposure limits.

Are Scan A and Scan B scores comparable?

No. Each scan uses its own methodology. Candidate provenance is retained for later processing.

Does Decision Layer manage stop losses or trailing stops?

No. Position protection belongs to Risk Bot after entry, not to Decision Layer.