Scan A candidates
Technical results, candidate status, score and Scan A-specific entry-quality checks.
Reference guide · Core Bots
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.
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.
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.
Propose candidates independently, using different evaluation criteria. They do not create a unified scoring scale.
Checks eligibility and cross-references candidates with open positions and sector concentration.
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.
Scan results and the actual account context.
Technical results, candidate status, score and Scan A-specific entry-quality checks.
Detected setups and the candidate eligibility already established by Scan B.
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.
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.
Why this matters: Scan A and Scan B look for different market conditions. Treating their scores as interchangeable would distort the selection.
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.
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:
Depending on the active policy, a candidate may receive a priority penalty or be rejected when its sector is already heavily represented.
When the strict sector limit is reached, another candidate from that sector can be rejected.
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.
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.
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.
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.
What happens during a normal run.

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.
The stock passed Decision Layer. It still faces Bridge selection rules and later execution checks.
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.
Complementary responsibilities, not one merged step.
Decision Layer produces an eligible pool. Bridge then selects the specific symbols to prepare for Swing entry.
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.
Trading mode controls the branch.
| Mode | Decision Layer | Outcome |
|---|---|---|
| SWING | Runs | Prepares candidates for Bridge Bot. |
| INTRADAY | Skipped | Preparation uses Intraday Ranking and the Watchlist Builder instead. |
| BOTH | Runs | Swing 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.
An empty result does not always mean failure.
An empty selection output may be a normal result. The scans ran, but no stocks met the day’s conditions.
Decision Layer expects both scan outputs. Missing required data can stop the run before a shortlist is prepared.
Under the reviewed configuration, portfolio context is mandatory. An inability to read it causes the stage to fail.
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.
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.
Useful distinction: no valid opportunities, stage skipped in Intraday mode and technical failure are different outcomes requiring different responses.
A sound decision may exclude a promising stock.
The stock qualifies in its scan, but Decision Layer excludes it from new Swing candidates to avoid duplicating a holding.
Decision Layer honors Scan B’s own validation instead of imposing Scan A’s nearby-resistance test on the setup.
The candidate is penalized or rejected under the active limit despite otherwise favorable technical analysis.
The stage may complete with no eligible candidates. This does not necessarily mean Scan A or Scan B failed.
Common points of confusion.
No. It builds an eligible shortlist. Bridge prepares Swing tickers, and Entry Bot handles any eventual entries.
It may not be an approved candidate, may fail Scan A-specific checks, may already be held or may breach sector exposure limits.
No. Each scan uses its own methodology. Candidate provenance is retained for later processing.
No. Position protection belongs to Risk Bot after entry, not to Decision Layer.