Daily Swing Signals & Portfolio Rebalancing
Scanning today's market session across the 100 NSE universe...
Next-Day Offline Broker Order Sheet (Manual / AMO Execution)
Actionable Buy, Sell (Exit), GTT OCO Stop-Loss / Target modifications, and Defensive Cash Sweep orders to place manually on your broker terminal before tomorrow's 9:15 AM open. Zero automated trading.
| # | Priority | Order Side | Symbol & Cap | Broker Order Type | Qty & Alloc % | Suggested Limit (1-3D) | Execution Band | Attached GTT OCO | Cash Impact | Step-by-Step Broker Instructions | Log Fill |
|---|
Shadow All-Scrip Forecasts (Regime-Independent Model Rankings)
Ordered by Category Tier & Composite Edge (55% Conviction + 35% Win Prob + 10% Institutional Flow), with 1–3 Day Pullback/Dip Limit Buy pricing and Conviction × Cap-Tier × ATR Capital Allocation %. Use column header filters or click column titles to sort.
| Rank ▾ | Symbol & Sector | Cap Size | Forecast Tier | Conviction & Edge | Win Prob | Suggested Buy (1-3D) | 20D Mom | Target / Stop | Alloc % & Capital | Gate Status | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|
Active Portfolio Holdings & Live Exits
Real-time tracking of targets, trailing stops, and breakeven adjustments.
| Symbol | Sector | Qty | Avg Cost | CMP | Invested | Current Value | Unrealized P&L | Stop Loss | Target | Action State | Exit Order |
|---|
P&L Statement & Trade Audit Ledger
Comprehensive historical accounting with statutory friction deductions.
| Symbol | Entry Date | Exit Date | Qty | Buy Price | Sell Price | Invested | Realized P&L | Return % | Exit Reason |
|---|
Quantitative Pipeline & ML Engine
Ingest daily market sessions, harmonize corporate adjustments, build alpha features, and retrain ML forecaster models.
Download Market Data
market_data_engine_v3.py
Pulls NSE Bhavcopy, security delivery reports, FII/DII institutional cash flows, India VIX, and intraday bars for 100 stocks.
Clean & Standardize
clean_pipeline.py
Standardizes schemas, detects stock splits/bonuses, computes backward-adjusted
prices, and updates master_daily_100.parquet.
Alpha Feature Store
feature_pipeline.py
Generates 63 cross-sectional alpha features: trend alignment, volatility bands, institutional delivery accumulation, and microstructure.
Retrain Forecaster Models
model_trainer.py
Trains Dual LightGBM Directional Classifier (+2 ATR target) and Return Regressor with purged time-series cross-validation.
Strategy Backtester
backtester.py
Simulates event-driven swing execution across 325+ sessions with macro regime gating, breakeven ratchets, and Indian friction.
Ready. Click any stage button above or "Run Full Pipeline" to begin execution.
Purged Walk-Forward Strategy Backtest Audit
Out-of-sample event-driven simulation across all market regimes with T+1 open execution and Indian statutory friction.
Strategy Backtest Audit (All Market Conditions: 2022-06 to 2026-10)
1,138 Sessions · T+1 Execution · Indian Friction| Market Condition | Sessions | Trades | Win Rate | Profit Factor | Net P&L | Avg Return | Strategy Behavior |
|---|
Constituent Universe & Scrip Maintenance
Manage official constituents across 10 sectors. Dynamically add or remove tickers for data ingestion, harmonization, and swing forecaster coverage.
| Symbol | Market Cap Tier | Sector Classification | Universe Status | Date Added | Action |
|---|
Interactive User Guide, Screen Reference & Value Encyclopedia (V1.0 All-Weather)
Complete reference manual explaining every page, workflow, metric, formula, driver pill, entry timing label, and gate status across the application. Click any interactive bubble below or expand/search any chapter.
⚡ Interactive Bubble Dictionary — Click Any Badge or Value to See What It Means
Every shorthand value, symbol, and badge displayed on the tables and cards is clickable below for an instant explanation.
1. Top Navigation Bar, Global Controls & 5 Executive Metric Cards Header & Portfolio Cockpit ▾
Forecast · Portfolio · Data Maintenance)- Forecast ▾: Contains Signals & Rebalancing (actionable buys + Next-Day Offline Broker Order Sheet) and Shadow All-Scrip Forecasts (all 502 universe rankings).
- Portfolio ▾: Contains Active Holdings, P&L Statement, Transaction Log (expandable contract note history, Excel/PDF export, Delete & Revert), and Contract Note Upload.
- Data Maintenance ▾: Contains Pipeline & ML Models, Strategy Backtest Audit, Scrip Universe, and User Guide & Manual.
Live CMP: ON · Regime Pill · Refresh · Reset)Live CMP: ON (N): Toggles the read-only Yahoo Finance (.NS) live market price overlay on/off. When ON, Active Holdings, NAV, MTM P&L, Signals, and Forecasts display real-time prices with a greenLIVEtag while keeping the EOD database untouched.Refresh (↻): Re-fetches portfolio state, model signals, and fresh Yahoo Finance live prices on demand.Reset: Opens a confirmation modal to reset the portfolio to a clean initial capital balance and risk budget.
Total Portfolio NAV · Available Cash · Active Invested Equity- Total Portfolio NAV:
Available Cash + Current Market Value of Open Holdings. The pill badge shows your all-time return % vs Initial Capital. - Available Cash: Liquid cash currently available for new trades, plus
% Cash Allocationof total NAV. - Active Invested Equity: Total current market value of open stock positions and slot usage (
X of 8 Slots Active).
Unrealized MTM P&L · Closed Realized P&L- Unrealized MTM P&L: Mark-to-Market paper gain/loss on currently open holdings (
Current Value - Invested Cost Basis) and unrealized return %. - Closed Realized P&L: Cumulative net profit/loss across all closed FIFO trades after subtracting all statutory entry and exit taxes/charges, plus your all-time
Win Rate % (N trades).
2. Macro Market Regime Banner & Market Health Chips India VIX · Market Breadth · Benchmark Trend ▾
India VIX · Market Breadth · Benchmark Trend)- India VIX: NSE 30-day implied volatility index.
≤ 16.5= Low fear (favorable);16.5–20.0= Moderate volatility;> 20.0= High-volatility stress. - Market Breadth %: Percentage of universe stocks in full bullish EMA alignment (
Close > 20 EMA > 50 EMA > 200 EMA).≥ 40%= Broad bull participation;25%–40%= Selective/choppy;< 25%= Bearish breadth breakdown. - Benchmark Trend: Tracks whether the equal-weighted universe index is trading
Above / Below 50 EMAandAbove / Below 200 EMA.
- BULLISH / MOMENTUM (Green):
VIX ≤ 16.5,Breadth ≥ 40%,Benchmark ≥ 50 EMA. Full swing allocation (up to 8 slots,≥85%conviction cutoff). - NEUTRAL / CHOPPY (Amber): Mixed breadth or elevated VIX. Selective allocation (4–6 slots), tightening stops on existing holdings.
- BEARISH / DEFENSIVE (Red):
VIX > 20,Breadth < 25%, orBenchmark < 200 EMA. Enforces capital preservation (halting standard buys, allowing only ultra-selective≥90%Strong Buys or sweeping idle cash intoLIQUIDBEES/GOLDBEES).
3. Forecast → Signals & Rebalancing + Next-Day Offline Broker Order Sheet Signal Cards · AMO Order Sheet · Priorities 1–4 ▾
Replay Session · Market Cap Filter · Search)- Replay Session Dropdown: Select any historical trading date to time-travel and inspect the exact signals, macro regime, and rankings generated on that day. Click Live to return to the latest session.
- Market Cap Filter: Filter actionable buy signals and offline orders by
All Market Caps,Large Cap Only (Top 100),Large + Mid Cap (Top 250),Mid Cap Only (150), orSmall Cap Only (250).
- Header & Action Badge: Shows Ticker, Cap Tier pill (
LARGE CAP/MID CAP/SMALL CAP), Sector, andSTRONG BUY(Conv ≥ 90%) orBUY(Conv 85%–89.9%). - Price & Entry Timing: Large price is the Suggested 1–3D Limit Buy Price with its timing label (
At 3D Trough,Pullback Limit, or1-3D Dip Limit). Below it showsEOD CMP,LIVE Yahoo Price, and the acceptableBand: ₹Low – ₹High. - Conv · Win:
95% · 43%means95%model conviction percentile and43%calibrated probability of hitting+3.5x ATRtarget before-1.5x ATRstop. - Qty & Capital: Shares sized for your remaining deployable cash and risk budget, showing
% NAVweight and total Rupee outlay.
| Order Sheet Priority | Order Side Badge | Broker Order Type | When It Triggers & Exact Broker Terminal Instructions |
|---|---|---|---|
| 1 - URGENT EXIT | SELL (EXIT) | AMO / LIMIT SELL AT OPEN |
Triggered when an active holding hits Target (+3.5x ATR), breaches Stop-Loss (-1.5x ATR), touches Chandelier Trailing Stop, reaches 20-day Time Expiry, or suffers Model Collapse (Win Prob < 18%). Place an AMO / Limit Sell order at 9:15 AM open using the suggested limit price (0.3% below EOD close to ensure fill), cancel old GTTs, and log the fill via Log Sell Fill or Contract Note upload. |
| 2 - PROTECTIVE GTT / SL | MODIFY SL / GTT | GTT / SL TRIGGER MODIFY |
Triggered when a holding reaches +1.0x ATR profit (Breakeven Ratchet: move SL to Entry + Round-Trip Taxes + ₹15.93 DP Charge), +1.5x ATR profit (Chandelier Trail: move SL to Highest Peak - 2.2x ATR), or has Earnings within 3 days. Modify your existing GTT OCO stop trigger upward on your broker terminal; no fill needs to be logged unless the stop actually triggers. |
| 3 - NEW SWING BUY | BUY (STRONG BUY / BUY) | AMO / 1-3D LIMIT BUY |
Sized using Deployable Cash = Current Cash + Expected Cash from Priority-1 Sells across your remaining unfilled portfolio slots (enforcing the 20% single-sector cap). Place a Limit Buy at Suggested Limit (1-3D) within the Execution Band, and attach a GTT OCO with the specified SL and Target. |
| 4 - DEFENSIVE SWEEP | BUY (LIQUIDBEES / GOLDBEES) | LIMIT BUY AT OPEN |
Appears during BEARISH / DEFENSIVE regimes to park idle cash into LIQUIDBEES (70% for ~6.5% p.a. yield) and GOLDBEES (30% sovereign gold hedge). |
4. Forecast → Shadow All-Scrip Forecasts (Complete Column, Driver, Timing & Gate Status Reference) All 12 Columns & Every Status Value Explained ▾
The Shadow All-Scrip Forecasts page ranks every constituent stock in the universe (#1 to #502) regardless of whether the macro market regime is Bullish, Choppy, or Bearish. You can filter by every column header or click any column title (Rank, Symbol, Conviction & Edge, Win Prob, Suggested Buy, 20D Mom, Alloc %) to sort ascending/descending.
Rank (#1..#502): Grouped first by Forecast Tier (STRONG BUY→SHADOW BUY→NEUTRAL→AVOID) and ordered within each tier by Composite Edge.Symbol & Sector: Ticker symbol, sector classification, blueHELDbadge if currently in your portfolio, and amberEARN≤3Dbadge if quarterly earnings are within 3 trading sessions. Hover the cell to view all active Alpha Drivers.Cap Size:LARGE CAP(Top 100),MID CAP(Next 150), orSMALL CAP(Next 250).Forecast Tier:STRONG BUY:Conviction ≥ 90%,Win Prob ≥ 30%,20D Mom > 0%.SHADOW BUY:Conviction 85%–89.9%,Win Prob ≥ 30%,20D Mom > 0%.NEUTRAL:Conviction 50%–84.9%(or high conviction with negative 20D momentum).AVOID:Conviction < 50%(laggard; 0% allocation).
Conviction & Edge(e.g.95% (Edge 92)):95%= Cross-sectional model conviction percentile (60% Classifier rank + 40% Huber Regressor rank).(Edge 92)= Composite Edge score out of 100 (55% Conviction + 35% Normalized Win Prob + 10% Institutional Delivery/F&O Flow Bonus).
Win Prob(e.g.45.1%): Probability of reaching the+3.5x ATRtarget before the-1.5x ATRstop within 15 trading sessions (>30%is positive expectancy at 2.33:1 reward-to-risk).
Suggested Buy (1-3D): Shows the optimal 1–3 day limit entry price and discount % relative to EOD CMP:At 3D Trough (Buy Open): Within-0.2%of CMP (buy at open).Pullback Limit:-0.4% to -1.2%below CMP (wait for minor intraday pullback).1-3D Dip Limit:-1.0% to -2.2%below CMP (stock is short-term overbought; wait for 1–3 day dip).
20D Mom: Trailing 20-trading-day price return %. Must be> 0%for a stock to qualify for an active buy.Target / Stop:T: ₹... (+X.X%)(+3.5x ATR) andSL: ₹... (-Y.Y%)(-1.5x ATR). ForHELDstocks, displays your actual portfolio GTT Target and Stop-Loss.Alloc % & Capital:- For Non-Held Stocks: Recommended position size (
% NAV, Rupee value, and shares) scaled by Tier × Cap Size × ATR Volatility. - For
HELDStocks: Shows your Actual Held Portfolio Weight (XX.X% NAV (Held)) and held shares on top, plusModel Target: Y.Y% (Z sh)underneath.
- For Non-Held Stocks: Recommended position size (
Gate Status— Exact Difference Between Every Status:ACTIVE BUY ORDER: Selected for tomorrow's Offline Broker Order Sheet.ELIGIBLE: STRONG BUY (QUEUE)/ELIGIBLE: BUY (QUEUE): Passed 100% of buy rules, waiting in standby queue because higher-ranked stocks filled your open slots, cash pool, or 20% sector cap.HELD IN PORTFOLIO: Already owned in Active Holdings.CAUTION: <90% CONV (SELECTIVE): Paused because Caution Mode only permits ≥90% Strong Buys.GATED: EARNINGS IN 3D: Blocked due to quarterly earnings announcement within 3 sessions.GATED: 20D MOM <= 0%: High conviction but negative 20-day price trend.GATED: SLOTS FULL: All portfolio slots are full.BELOW BUY CUTOFF: Below 85% conviction or 30% win probability.
5. Portfolio → Active Holdings, Multi-Lot FIFO Drawers & Live Exit Advice FIFO Lots · Breakeven Ratchet · Chandelier Trail ▾
📦 N Lots (FIFO) ▾)- If you buy the same stock across multiple dates or contract notes (e.g.,
GVT&Dbought on two dates), the holding row displays a clickable📦 2 Lots (FIFO) ▾badge. - Clicking it expands the per-lot ledger showing each tranche's unique
Lot ID,Purchase Date,Quantity,Cost Basis,Current Value,Stop Loss,Target, andFIFO Liquidation Priority (#1 Next Out, #2...). - When you log a partial or full sell, shares are automatically deducted from the oldest lot first (First-In, First-Out), matching Indian income tax and demat accounting rules.
Action State Badge ExplainedHOLD (On Track): Trading safely between Stop-Loss and Target with healthy model conviction.HOLD & RATCHET TO BREAKEVEN: Unrealized profit reached≥ +1.0x ATR. Shows an orangeRatchet to ₹...prompt under Stop Loss (exact entry price + round-trip statutory costs + ₹15.93 DP charge).HOLD & TRAIL STOP: Unrealized profit reached≥ +1.5x ATR. Activates the Chandelier Trailing Stop (Highest Peak Since Entry - 2.2x ATR) to lock in swing gains.HOLD / TIGHTEN SL (EARNINGS IN 3D): Quarterly results within 3 days; tighten GTT SL toCMP - 0.75x ATR.SELL / TAKE PROFIT·SELL / STOP LOSS EXIT·SELL / TRAIL STOP EXIT·SELL / TIME EXPIRY (20D)·SELL / PROACTIVE EXIT: Exit triggered; click Log Exit (or upload your sell Contract Note) once sold on your broker.
6. Portfolio → P&L Statement & Closed Trade Audit Ledger Net Realized P&L · Statutory Friction ▾
Every closed FIFO lot tranche is permanently recorded in the P&L Statement table with its Symbol, Entry Date, Exit Date, Quantity, Buy Price, Sell Price, Invested Capital, Net Realized P&L (after subtracting both entry friction and exit friction), Return %, and Exit Reason (e.g. CONTRACT_NOTE_319402 (FIFO), TAKE_PROFIT, STOP_LOSS).
7. Portfolio → Contract Note Upload & TradeSmart Tax Apportionment Engine SELL-First Ordering · Exact Tax Apportionment · Price Modes ▾
SELL-Before-BUY Ordering Work- Drag and drop your TradeSmart PDF Contract Note into Portfolio → Contract Note Upload.
- The parser extracts Header Metadata (Contract Note #, Trade Date, Settlement #, Client UCC), Page 1 Consolidated Obligations, and Page 3 Trade Annexure fills.
- Automatic
SELL-First Ordering: If a contract note contains both Buy and Sell trades, allSELLrows are automatically listed on top and executed beforeBUYrows so sale proceeds replenish your available cash balance before any buy orders debit cash (preventingInsufficient cash balanceerrors).
- Stamp Duty (
0.015%): Apportioned100%toBUYtransactions pro-rata by buy turnover. - Delivery Trans Cha (
₹15.00 DP charge + 18% GST): Apportioned100%toSELLtransactions per sold ISIN. - Brokerage (
Ibtnest1 ₹15.00/order + 18% GST): Apportioned pro-rata by distinct order count per transaction. - STT (
0.1%), NSE TOC (0.00297%), SEBI Fee (0.0001%), IPFT (0.0001%), CGST (9%) & SGST (9%): Apportioned pro-rata by gross turnover with 1-paisa rounding reconciliation. - Portfolio Price Mode Dropdown: Choose between Log Gross WAP + Exact Allocated Charges (Recommended) or Log Effective All-In Net Price/Share.
8. Portfolio → Transaction Log (Expand All, Excel/PDF Export & Delete/Revert Rollback) Expand All · Excel/PDF Export · Full Rollback ▾
- Click any Contract Note row (or
View Log (N)) to expand its granular BUY/SELL transaction ledger, or click▾ Expand All Logsat the top right to expand every contract note at once. - Click
⬇ Export Excel (.CSV)to download an Excel-ready spreadsheet containing every contract note and every underlying BUY/SELL fill, quantity, gross WAP, allocated tax/charges, all-in net price, net cash impact, lot ID, target/SL, and realized P&L. - Click
🖨 Export PDFto generate an institutional printable/Save-as-PDF report of your entire contract note and transaction history.
Delete & Revert Rolls Back a Contract Note- If you need to correct and re-upload a contract note, click
Delete & Reverton that note in Portfolio → Transaction Log:- Reverts
BUYlots: Removes the lot(s) added by that note from Active Holdings and refunds the exact debited cash (Gross + Allocated Charges) back to Available Cash. - Reverts
SELLexits: Restores the closed FIFO lot(s) from the P&L Ledger back into Active Holdings (with their original entry date, buy price, and entry friction) and deducts the net sale credit from Available Cash. - FIFO Chronology Guard: Blocks deleting an older
BUYcontract note if those shares were already sold in a later contract note (prompting you to delete the laterSELLnote first).
- Reverts
9. Data Maintenance → Pipeline & ML Models, Strategy Backtest Audit & Scrip Universe 5-Stage Engine · Backtest Metrics · 502 Scrip Universe ▾
- Stage 1 (Download): Downloads NSE Bhavcopy, MTO Delivery, F&O OI, India VIX, and FII/DII flows (Daily EOD or Custom Date Range Backfill).
- Stage 2 (Clean): Deduplicates holiday repeats, backward-adjusts corporate stock splits/bonuses, and merges earnings dates & fundamentals into
master_daily_100.parquet. - Stage 3 (Features): Computes 72 alpha features and path-dependent intermediate-peak Triple-Barrier labels into
features_master_100.parquet. - Stage 4 (Train): Trains the Dual LightGBM Classifier + Huber Regressor using 5-Fold Purged Walk-Forward CV (excluding trailing 15 unmatured sessions).
- Stage 5 & Strategy Backtest Audit Page: Simulates T+1 execution with Indian statutory friction across
Bull Trend,Sideways Chop,Bear Markdown, andHigh-Vol Panicregimes, reportingMax Drawdown,Win Rate,Profit Factor(Gross Wins / Gross Losses),Sharpe Ratio, andAvg Holding Days.
- In Data Maintenance → Scrip Universe, you can search, filter by Cap Tier (
Large Cap,Mid Cap,Small Cap) or Sector, remove tickers, or click+ Add New Ticker. - When you add or remove a ticker, Stages 2 and 3 automatically detect that the universe symbol set changed (
cached_symbols != current_symbols) and trigger a full feature store rebuild on the next pipeline run so all cross-sectional ranks include your new ticker.
10. Step-by-Step Operational Workflows: Daily EOD Update, Historical Backfill & Full Rebuild 3 Standard Operating Procedures ▾
1. Daily EOD Update Workflow
- Open Data Maintenance → Pipeline & ML Models.
- In Stage 1, keep Daily EOD selected.
- Leave Force Full Rebuild in Stages 2 & 3 unchecked (delta watermarks process new sessions in <2 seconds and refresh the trailing 15 sessions of matured labels).
- Run Stage 1 → Stage 2 → Stage 3. (Do not run Stage 4 daily; retrain only every 2–4 weeks so day-to-day conviction rankings stay free of tree-split jitter.)
- Open Forecast → Signals & Rebalancing to review tomorrow's Offline Broker Order Sheet.
2. Historical Date Range Backfill
- Open Data Maintenance → Pipeline & ML Models.
- In Stage 1, select Range Backfill, enter your Start Date (day after last sync) and End Date (today), and click Download Market Data.
- Run Stage 2 and Stage 3 to merge the newly downloaded sessions.
- If a corporate stock split or bonus occurred during the missed window, check Force Full Rebuild on Stages 2 & 3 before running.
3. Full Rebuild & Model Recalibration
- Use after adding/removing tickers in Scrip Universe, after a stock split/bonus, or once every 2–4 weeks to incorporate newly matured 15-day trade outcomes.
- Check Force Full Rebuild (
--full-rebuild) on Stage 2 and Stage 3. - Click Run Full Pipeline (1 → 5) at the top right to rebuild clean data, recompute all 72 features, retrain the Dual LightGBM models, and refresh the Strategy Backtest Audit.
Broker Contract Note Upload & Tax Apportionment
Upload your daily TradeSmart PDF Contract Note (Buy-only, Sell-only, or combined Multi-Trade Buy & Sell). Automatically extracts fills, apportions consolidated taxes & charges (Ibtnest1, Delivery Trans Cha, NSE TOC 0.00297%, SEBI, IPFT, 18% GST, Stamp Duty, STT), computes exact execution prices, and updates your portfolio.
Click to Select or Drag & Drop Broker Contract Note (.PDF)
Supports TradeSmart Fintech Securities Limited Contract Note Cum Tax Invoices (Page 1 Equity Segment + Obligation Details + Page 3 Trade Annexure).
Portfolio Transaction Log & Imported Contract Notes
Expand individual contract notes or click Expand All to inspect every BUY/SELL fill and apportioned tax/charge, export the full ledger to Excel (.CSV) or PDF, or click Delete & Revert to roll back a contract note before re-uploading.
| Contract Note # | Trade Date | PDF Filename | Transactions | Symbols | Committed At | Actions |
|---|---|---|---|---|---|---|
| No contract notes imported yet. | ||||||
Admin Maintenance Console, Gmail Alert Engine & Automated Scheduler
Configure the master Admin Gmail sender for user alerts & OTP verification, manage automated daily EOD downloads (including 15m/60m intraday bars) and monthly/scrip-change model retraining, trigger forced updates, and manage user accounts.
⚡ Forced Update & Retrain Controls (Immediate Execution)
Trigger an immediate out-of-schedule market data download (with 15m/60m intraday bars), model retrain, or full universe rebuild. Opens the live console stream in Pipeline & ML Models.
Registered Users & Isolated Portfolios Directory
All users share the master NSE dataset & ML models while maintaining their own isolated portfolio state and validated Gmail address.
| Username | Validated Gmail (Mandatory) | Role | Portfolio NAV | Active Holdings | Daily Email Alerts | Created At | Admin Actions |
|---|