๐ง Option Chain Clustering
Market regime detection + outcome prediction for fast trade decisions.
Intraday index return forecast
Index = the Underlying dropdown above (NIFTY / BANKNIFTY / SENSEX).
Broker = first broker in /api/brokers. This chart shows runtime day-start to EOD forecast vs realized EOD return.
Predicted median EOD return vs realized EOD return. After market close, leave session date empty for auto IST session day, or pick a date.
| Time (IST) | Cluster | Conf% | p10% | p50% | p90% | Actual EOD% |
|---|---|---|---|---|---|---|
| Load runtime series to view rows. | ||||||
โก Execute
Fast trade execution using ATM band strikes (CE & PE) with quick order logic.
๐ฏ Zero to Hero Scanner
Strikes with 200%+ premium move in the last 10 minutes (ATMยฑ5). Snapshot backtest by date range; use start = end = today with auto-refresh for an intraday run. ZTH auto-buy runs only when auto-refresh is on and both dates are today.
๐ Execution View
Pick a date (IST) to list executions for that day, click Show on a row to load graphs, or use the last-10 dropdown / search by execution ID.
Executions for selected day
| ID | Strategy | Status | Broker | Index | P&L | P&L % | Show |
|---|
Choose a date above (calendar day = IST on server). Past days list only closed/sold exits (target, SL, manual sell, etc.); cancelled/error rows are omitted. Today includes open positions too. Click Show to update the charts.
P&L (โน) vs Time
P&L % vs Time
Tick Data (last 20, newest first)
| Time | P&L | P&L % |
|---|
๐ Execution Metrics
Strategy-level execution behavior metrics with coverage-based selection and peak/draw metrics.
Common Reached Thresholds
Average Time to Peak (minutes)
Strategy Segments
| Strategy | Execs | Common Up % | Common Down % | Avg Active (min) | Avg Drawdown % | Avg Drawup % |
|---|
Executions Extended
Super admin only. Shows your executions only. Uses second-level timeline points from entry through end of 15:15 IST. Post-exit points are hypothetical from real option-chain data.
Strategy Metrics (Expiry vs Non-expiry)
| Strategy | Execs | Common Up % | Common Down % | Avg Active (min) | Avg Drawdown % | Avg Drawup % |
|---|
Premium change vs entry (โน)
% from entry
Executions
| ID | Strategy | Index | Strike | Entry (IST) | Exit (IST) | Max up % | Max down % | Snap pts | Show |
|---|
โ๏ธ Chained Strategy Monitor
Live health and execution status for mapped strategy chains (A โ B โ C ...).
| Chain | Level | Strategy | Strategy ID | Mode | Status | Index | Option Type | Buy Value | Sell Value | Profit | P/L % | Entry Time | Exit Time |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| No data loaded yet. | |||||||||||||
๐ Open Move Analyser
Track CE/PE strike movement from day open for ATM bands. Built for live monitoring with historical date/time analysis support.
Premium Decay Graph Mode
Chart uses Plotly from CDN. If the graph stays empty, check network or allow cdn.plot.ly.
CALL (CE) Move From Open
| Rank | Strike | Open | Current | High | Low | LTP | Change % | High % | Low % | Dist ATM |
|---|
PUT (PE) Move From Open
| Rank | Strike | Open | Current | High | Low | LTP | Change % | High % | Low % | Dist ATM |
|---|
๐ ATM Straddle Trigger (backtest)
Non-expiry days only. Uses the first available option-chain snapshot per minute (same expiry as weekly). Trigger: either ATM CE or PE LTP falls to โค (100% โ drop%) of that legโs opening LTP at the session open strike. Long straddle, 1 lot; gross premium P&L (no costs), marked each minute from trigger to session end.
| Date | ATM @ open | CE open | PE open | Trigger time (IST) | Leg | Entry prem | EOD P&L | Note |
|---|---|---|---|---|---|---|---|---|
| Choose dates and click Run. | ||||||||
Click a row for intraday MTM chart. Detail page: /atm-straddle-trigger-day
Day detail
Mark-to-market P&L
Leg premiums (entry strike)
Charts use Plotly from CDN (same as Open Move Analyser).
๐ Buy Simulation
Simulate CALL and PUT option buys at 09:20 AM (ATM ยฑ 10 strikes). No real orders. Track LTP and P&L in real time or replay via backtest.
| Strike Price | Qty | Buy Time (IST) | CALL Bought Price | CALL LTP | PUT Bought Price | PUT LTP | CALL P/L Amount | CALL P/L % | PUT P/L Amount | PUT P/L % | Actions |
|---|
๐ฉบ Background Task Health
Each row maps a Beat task or long-running loop (strategy runner, order queue, monitor) to something observable in PostgreSQL, Redis, backup files, worker queues, or loop locks. Trading loops use a 30s Beat watchdog plus an in-process cycle (strategy ~2s, orders ~1s, monitor ~2s). Status reflects the current IST market session. Celery inspect must reach workers from this web process (same Redis broker).
| Task | Schedule | Queue | Status | Detail | Evidence |
|---|
๐งช Option Buy Backtest
Backtest expiry-day ATM option buying using snapshot option chain data (from Feb 11 onwards), with optional advanced re-buy logic.
| Date | Day | Instrument | Type | Strike | Entry Time | Exit Time | Entry | Exit | Exit Reason | P&L | Return % | Max % | Min % | Re-buys | Trades |
|---|
โ๏ธ Adjust Simulation Lot Size
Set number of lots per index (multiplied by exchange lot size) and the simulated buy time for the Buy Simulation page. Lot config cannot be changed during market hours; buy time can be changed anytime (e.g. set to 11:25 to test with todayโs data).
| Index | Lots (ร base lot) |
|---|
๐ง Clustering Calibration
Configure Option Chain Clustering calibration and drift retrain controls.
๐งน Clear Auto Retry Cap
Clear today's auto-run retry/success Redis keys (Asia/Kolkata date prefix). Each key is built as
strategy_id:user_id:index:broker:option_side:execution_time:BUY|SELL
where execution_time is OPEN or HH:MM from a slot tag like T091500.
Pick the exact combo below (option side “all” clears CALL, PUT, and ANY scopes). Use “Clear All Today” to delete every cap for the current IST day.
Today's caps in Redis
One row per Redis key. Clear row removes only that key (failure or success). Parsed columns may show “unknown” if the key predates the v2 format.
| Kind | Format | Strategy | User | Index | Broker | Side | Slot / time | Dir | TTL | Redis key | Action |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Open this section or click Refresh table to load keys. | |||||||||||
โ๏ธ Execution Slice Config
Configure per-index max quantity per execution slice. Orders above these limits are split into multiple executions.
Manage app broker (Groww)
| Name | Actions |
|---|
๐งฎ ATM Affordability
Checks if each active subscription has enough allocated money to buy at least 1 ATM lot.
| User ID | User | Strategy ID | Strategy | Broker | Index | Side | Allocated | Lot Size | ATM Strike | ATM LTP | 1 Lot Required | Shortfall | Top-up Required | Status | Reason |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Open this section and click Refresh. | |||||||||||||||
๐ฒ Daily Random Option Type
Shows the globally shared RANDOM CALL/PUT resolution generated once per IST day.
| Business Date | Resolved Side | Source | Strategy ID | Seed Context | Created At | Audit ID |
|---|---|---|---|---|---|---|
| Open this section and click Refresh. | ||||||
๐ Strategy Executions
Track your strategy executions and monitor real-time P&L updates.
| Strategy | Sell Configs | Health | Time to Exit | Broker | Order / Fill | Index | Group | Chain ID | Symbols | Status | Entry Price | LTP | Progress | Entry Cost | Qty | Target % | SL % | Exp. Profit | Exp. Loss | Current P&L | P&L % | Exit P&L | Entry Time | Exit Time | Active Time | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Loading executions... | ||||||||||||||||||||||||||
๐งน Data Management
Super admin tools for correcting historical data.
Delete PnL Ticks by Date
Choose a date and delete ALL live P&L ticks per execution for that IST day. Use Flush buffer on a row to drain Redis into the DB (e.g. missing final segment after exit). Full repair controls (sync archive, manual tick) are on Execution View.
| Execution ID | Live Ticks | Archived Ticks | Total Ticks | Last Tick Timestamp | Actions |
|---|---|---|---|---|---|
| Load a date to view executions with live P&L ticks. | |||||
๐๏ธ Archived Executions
View archived strategy executions with pagination, sorting, and search.
๐ Performance Dashboard
| Strategy | Broker | Index | Symbols | Order Type | Status | Entry Cost | Current P&L | P&L % | Exit P&L | Entry Time | Exit Time | Archived At | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Loading archived executions... | ||||||||||||||
๐งช Test Brokers
Test broker client methods: get_option_chain and get_price
๐ฌ Test Strategy Code
Test strategies by reading their code from the database. Select a strategy that has code saved, and a broker to fetch market data. The strategy code will be executed dynamically and results displayed.
๐ Market Holidays
Market Status
Loading market status...
Loading holidays...
๐ Expiry Dates Calculator
Validate expiry dates calculated by the utility for NIFTY, BANKNIFTY, and SENSEX.
Note: NIFTY expires on Tuesday (weekly & monthly), BANKNIFTY expires on Tuesday (monthly only, no weekly), SENSEX expires on Thursday (weekly & monthly).
If expiry day is a trading holiday, expiry moves to the previous trading day.
๐ Strategies
โ Create/Edit Strategy
โ๏ธ Execution Variables
Define variables that will be collected from users when executing manual strategies. These values are merged into strategy_config at execution time.
๐งฉ Map Strategy with Code
Map reusable code templates to strategies. This page is visible only to super admins.
All Strategy Code Mappings
| Strategy | Code Template | Actions |
|---|---|---|
| Loading mappings... | ||
๐ Broker Credentials
Manage your broker API credentials. Credentials are encrypted and stored securely.
| Broker | User | Configuration | Status | Actions |
|---|---|---|---|---|
| Loading credentials... | ||||
๐ Strategy Subscriptions
Subscribe to strategies and allocate money for automated trading.
| User | Strategy | Allocated Money | Status | Created | Actions |
|---|---|---|---|---|---|
| Loading subscriptions... | |||||
๐ฅ User Management
Manage users, roles, and privileges. Super Admin access only.
| ID | Username | Roles | Emergency Wallet | Status | Created | Actions | |
|---|---|---|---|---|---|---|---|
| Loading users... | |||||||
๐ Save Strategy Code
Manage reusable strategy code templates. Super Admin access only.
Add New Code Template
Saved Code Templates
| Code Name | Description | Created | Actions |
|---|---|---|---|
| Loading code templates... | |||
๐ฏ Sell Configurations
Define exit rules that override default SL/Target/Break-even when attached to a strategy.
Create Sell Configuration
Saved Sell Configurations
| Name | Type | Parameters | Status | Updated | Actions |
|---|---|---|---|---|---|
| Loading sell configurations... | |||||