Global Filters are the primary way to slice and focus your trading data in Gainway. Every filter applies universally — across the Calendar, Daily view, Trade Log, Analytics, Charts, Cumulative P&L, Account Balance, and all statistics. When you set a filter, it immediately affects every page, chart, and metric in the application.
🔑 Key Principle: One Filter State, Everywhere
There is a single shared filter state stored in the Trades store. The Filter modal, Date Range modal, Account modal, and Account Groups dropdown all read from and write to this same state. Changing a filter in one place instantly updates all views.
Filter Categories Overview
| Category | Access | Scope |
|---|---|---|
Account Selection | Toolbar "Account" button → Account modal | Which accounts' trades are included |
Date Range | Toolbar "Date Range" button → Calendar picker | Start/end date window (inclusive) |
Trade Filters (Basic) | Toolbar "Filter" button → Basic tab | Contracts, Firms, Account Types, Symbols, Entry Hour, Direction, Hold Time, Outcome, Tags, Sessions, Entry Time Minutes |
Trade Filters (Advanced) | Toolbar "Filter" button → Advanced toggle | Multi-row boolean logic (AND/OR), brackets, nested conditions |
Account Groups | Toolbar dropdown (chevron next to Account) | Quick-select predefined account collections |
Account Selection
How It Works+−
How It Works
Account selection controls which accounts' trades are loaded into the filter pipeline.
- Open the Account modal (toolbar → Account button).
- Toggle the Visible switch for each account.
- Only trades from visible accounts enter the filtered dataset.
- Hidden accounts' trades are excluded from all views and statistics.
- Changes persist to your profile (synced if signed in).
Tip: Use "Select All / Deselect All" at the top for bulk changes.
Account Groups Quick Select+−
Account Groups Quick Select
Account Groups let you save and instantly recall sets of accounts. See Account Groups for full details.
- Click the chevron dropdown next to the Account button in the toolbar.
- Select a group to show only those accounts (others are hidden automatically).
- The toolbar badge shows the active group's color.
- Groups with
showInQuickSelect = trueappear here.
Impact on Data+−
Impact on Data
When you change visible accounts:
- All views refresh — Calendar, Daily, Trade Log, Analytics, Charts
- Statistics recalculate — P&L, win rate, expectancy, drawdowns, etc.
- Groups re-aggregate — Group/idea-level stats reflect only visible accounts
- Charts redraw — Cumulative P&L, Account Balance, etc.
Date Range Filter
Setting a Date Range+−
Setting a Date Range
- Click Date Range in the toolbar.
- Use the dual calendar to pick start and end dates (inclusive).
- Or click a preset button (Today, This Week, This Month, Last 30 Days, etc.).
- Click Apply Dates.
The active range shows as a badge on the Date Range button (yellow dot = filter active).
Preset Ranges+−
Preset Ranges
| Preset | Range |
|---|---|
Today | Current date only |
Yesterday | Previous date |
This Week | Mon–Sun of current week |
Last Week | Mon–Sun of previous week |
This Month | 1st–last day of current month |
Last Month | Full previous calendar month |
Last 7 Days | Rolling 7-day window ending today |
Last 30 Days | Rolling 30-day window ending today |
Last 90 Days | Rolling 90-day window ending today |
Year to Date | Jan 1 of current year → today |
All Time | Clears the date range (no limit) |
How Date Filtering Works+−
How Date Filtering Works
- Filter is inclusive: trades on the start date AND end date are included.
- Uses the trade's
Datefield (YYYY-MM-DD in your local timezone). - Dual calendar P&L indicators (green/red dots) reflect the P&L on that day. Blank indicates there's no data for that day.
Trade Filters — Basic Mode
Access via toolbar → Filter button. Basic mode provides simple multi-select chips for each dimension.
Filter Dimensions Reference+−
Filter Dimensions Reference
| Filter | Type | Description |
|---|---|---|
Contract | Multi-select chips | Futures contract (e.g., NQ, ES, MES, MNQ) |
Firm / Broker | Multi-select chips | Prop firm or broker (Topstep, Apex, TradeDay, etc.) |
Account Type | Multi-select chips | Evaluation, Funded, Live, Sim, etc. |
Symbol | Multi-select chips | Underlying symbol (NQ, ES, YM, RTY, etc.) |
Entry Hour | Multi-select chips (00–23) | Hour of entry in your local timezone |
Direction | Single select (Any / Long / Short) | Trade direction |
Hold Time | Multi-select chips | Buckets: <10s, 10s–2m, 2–5m, 5–15m, 15–45m, 45–90m, >90m |
Outcome | Multi-select chips (Win/Loss/Break-even) | Trade outcome based on net P&L |
Tags (by Type) | Multi-select per tag type | Setup, Mistake, Psychology, etc. — OR within type, AND across types |
Session | Multi-select chips | Trading session (RTH, ETH, Asia, London, NY, etc.) |
Entry Time Minutes | Add/remove minute ranges | Minute-of-hour ranges (e.g., 00–05, 10–15, 34–39) |
Logic: How Filters Combine
- Within a dimension: OR logic — selecting NQ and ES shows trades matching either.
- Across dimensions: AND logic — Contract=NQ and Direction=Long shows only Long NQ trades.
- Tags: Within a tag type (e.g., Setup), OR logic. Across tag types (Setup AND Mistake), AND logic.
Filter Templates (Basic & Advanced)+−
Filter Templates (Basic & Advanced)
Save any filter combination as a Template for instant recall.
- Click the Template menu in the Filter modal.
- Save as… — name and store current filters.
- Click a saved template to apply it.
- Apply defaults — clears all filters, resets to basic mode.
- Templates persist to your profile (synced if signed in).
- Templates work in both Basic and Advanced modes.
Preview Counts+−
Preview Counts
The Filter modal shows a live preview of how many trades/groups/ideas match your current filters:
- Trade mode: "XXX trades"
- Group mode: "XXX groups" (+ ungrouped row if applicable)
- Idea mode: "XXX idea/group rows"
This updates instantly as you toggle filters — before you click Apply.
Trade Filters — Advanced Mode
Toggle the Advanced switch in the Filter modal to enable boolean logic with brackets, multiple rows, and AND/OR operators.
Advanced Filter Builder+−
Advanced Filter Builder
Each row defines one condition. Rows are evaluated in order with the operator (AND/OR) between them.
| Column | Purpose |
|---|---|
( ... ) (open/close brackets) | Group rows for precedence (e.g., (A AND B) OR C) |
Filter Type | Symbol, Firm, Account Type, Contract, Session, Entry Hour, Direction, Hold Time, Entry Time Minutes, Outcome, Tag Type |
Condition | Equals / Does Not Equal |
Value | Primary value(s) — multi-select for most types |
Value 2 | Secondary value for Tag Type (tag name within the selected tag type) |
Entry Time Minutes | Minute ranges specific to this row (for Entry Time Minutes type) |
Operator | AND / OR — combines this row with the next |
Example: "Morning NQ Longs OR Afternoon ES Shorts"
Row 1: ( Symbol = NQ ) AND ( Direction = Long ) AND ( Entry Hour = 09, 10, 11 )
Row 2: OR
Row 3: ( Symbol = ES ) AND ( Direction = Short ) AND ( Entry Hour = 13, 14, 15 )Validation
- Red warning banner appears if expression is invalid (mismatched brackets, empty required values).
- Apply button is disabled until valid.
- Tag Type rows require both a tag type (Value) and tag name (Value 2).
Migrating Basic → Advanced+−
Migrating Basic → Advanced
When switching from Basic to Advanced, your current Basic filters are automatically converted to equivalent Advanced rows.
- Each active Basic dimension becomes one Advanced row.
- Multiple values within a dimension become a single row with multiple Values.
- Operator defaults to AND between rows.
- You can then add brackets, change operators, add new rows.
Warning: Switching back to Basic discards Advanced-only logic (brackets, OR between rows, Does Not Equal). A confirmation dialog appears if you have unsaved Advanced changes.
Display Mode (Trade / Group / Idea)
The toolbar toggle (Alt+1 / Alt+2 / Alt+3) controls the aggregation level for all views.
Mode Comparison+−
Mode Comparison
| Mode | Unit of Analysis | Typical Use |
|---|---|---|
Trade (Alt+1) | Individual round-turn trade | Granular execution review, per-trade stats |
Group (Alt+2) | Grouped by Account + Contract | Session-level P&L, daily journaling |
Idea (Alt+3) | User-defined Trade Ideas (multiple groups) | Strategy/thesis tracking, multi-day positions |
How Filters Flow Through the App
Filter Pipeline (Mental Model)+−
Filter Pipeline (Mental Model)
ALL TRADES (from visible accounts)
│
├─► DATE RANGE FILTER (start/end date)
│
├─► TRADE FILTERS (Basic or Advanced)
│ ├─ Contract, Firm, Account Type, Symbol
│ ├─ Entry Hour, Direction, Hold Time
│ ├─ Outcome, Tags, Session, Entry Minutes
│ └─ (Advanced: brackets, AND/OR, NOT)
│
▼
FILTERED TRADES ──────────────────────────► All Views Consume This
│
├─► Trade Log (rows = filtered trades)
├─► Daily View (rows = filtered trades grouped by day)
├─► Calendar (day cells = filtered trades' daily P&L)
├─► Analytics (charts, tables, stats = filtered trades)
│ ├─ Cumulative P&L chart
│ ├─ Account Balance table
│ ├─ Data Tables
│ └─ Statistics cards
├─► Group Mode (groups built from filtered trades)
├─► Idea Mode (ideas built from filtered groups)
└─► Statistics (win rate, PF, expectancy, etc. = filtered)Key insight: There is ONE filteredTrades computed property. Every page, chart, and statistic derives from it.
Common Workflows
Clearing All Filters+−
Clearing All Filters
- Filter modal → Template menu → Apply defaults: Clears trade filters, resets to Basic mode.
- Date Range modal → All Time preset: Clears date range.
- Account modal → Select All: Shows all accounts.
- Logout: Clears all filter state except for account visibility.
There is no single "Clear All" button — clear each category independently.
Review a Specific Month+−
Review a Specific Month
- Date Range → "This Month" preset (or pick custom start/end).
- All views now show only that month's data.
- Switch to Calendar to see daily P&L heatmap.
- Open Analytics → Cumulative P&L to see equity curve for the month.
Compare Prop Firm Performance+−
Compare Prop Firm Performance
- Create Account Groups: "Topstep", "Apex", "TradeDay" (see Account Groups).
- Toolbar Account dropdown → select "Topstep".
- All views now show only Topstep accounts.
- Note stats, then switch to "Apex" via dropdown.
- Or: Analytics → Cumulative P&L → Group By: Account Groups → see all firms as separate lines.
Analyze a Specific Setup+−
Analyze a Specific Setup
- Filter modal → Tags → select your "Setup" tag type → choose specific setup tag(s).
- Optional: add Contract, Session, Entry Hour filters to narrow further.
- Save as Filter Template: "ORB Long Setup".
- Apply template anytime to instantly isolate that setup across all views.
Debug: Why Is My Data Missing?+−
Debug: Why Is My Data Missing?
If charts/tables look empty or wrong:
- Display Mode → ensure you're in the expected mode (Trade/Group/Idea).
- Check toolbar badges — yellow dot = active filter.
- Date Range → "All Time" to rule out date filter.
- Account modal → "Select All" to rule out account filter.
- Filter modal → Template → "Apply defaults" to clear trade filters.
Remember: filters are global. A filter set in Calendar affects Trade Log, and vice versa.
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Alt + 1 | Trade mode |
Alt + 2 | Group mode |
Alt + 3 | Idea mode |
Escape | Close any open modal |
Related Pages
- Account Groups — Organize accounts, view on Calendar, compare on Cumulative P&L
- Chart Guide — Chart types, templates, tooltip configuration
- Available Statistics — Formulas and interpretations for all stats
- Quick Start — Get started with Gainway Edge