Auto-pull your complete trade history via IBKR Flex Query. No TWS required.
Pull recent trades from TWS/Gateway (last ~7 days). Requires live connection.
Import from TradeZella, broker exports, or any file with Ticker + Entry/Exit Price + Shares.
No open positions.
Log a trade above or connect to IBKR for live positions.
Log in to IBKR Account Management
Go to Performance & Reports > Flex Queries
Click "+" next to Activity Flex Query
In sections, check Trades
Set period (e.g. "Last 365 Calendar Days"), format XML, Save
Note the Query ID number next to your saved query
Still in Flex Queries page, scroll to Flex Web Service Configuration
Enable it, set expiry to 1 Year, click "Generate New Token"
Copy the token string
Paste your Flex Token and Query ID below
Click Test Connection to verify
Then Save & Sync to pull your trades
Future syncs are one-click from the Analytics tab
For real-time scanning and live order execution, the bot connects to TWS or IB Gateway on your machine.
Status: --
No syncs performed yet this session.
Email alerts are configured via environment variables:
ALBI_EMAIL_ENABLED=true
ALBI_SMTP_USER=your@gmail.com
ALBI_SMTP_PASSWORD=your_app_password
ALBI_EMAIL_TO=recipient@email.com
Status: --
Entry: EMA21 pullback + green candle + SPY regime
Exit: 25% at 1.5R, 75% trails EMA21×0.98
Sizing: Volatility-adjusted (2% base, 1% if stop >5%)
Loading universe info...