Strategy Builder
Configure a new strategy top-to-bottom · save it or fire it straight to the broker.New Strategy
| Leg ID | Idle | Hedge | Side | Fut/Opt | Type | Strike Selection | Strike Value | Expiry Selection | Expiry | Qty (Lots) |
|---|
Strategy Risk Settings
(set Combined SL above — preview rebuilds as you type)
(set Combined Target above — preview rebuilds as you type)
(enable trailing and fill Trigger / Step / Lock to arm it)
Order sequencing & failure policy
buy_first avoids the SPAN spike when selling naked options.Futures/Synthetic use the forward (premium/discount to spot) — e.g. spot 20000 but futures 20080 picks a higher ATM strike. Backtest: spot uses the cash series, futures/synthetic use the archived synthetic-future.0 = back-to-back.cancel_all unwinds the already-placed legs (safest). keep_placed trades a partial basket.retry_failed. After this many attempts, the policy falls back to cancel_all.Risk + Timing
Days + Capital Sizing
Notifications
config.yml → notify.telegram. Empty config = log-only.Order type / Product
Show summary
Active Strategies
Running, paused, or recently finished. Click one to inspect legs and the event log.Strategies
Detail
Event Log
Saved Strategies
Saved Builder recipes. Load to edit, Clone to fork, Run for a quick test. Use the Portfolios page to deploy these on a broker with a multiplier.Broker Accounts
Brokerage routes a Portfolio slot can pin a Strategy to. Credentials stay server-side and never appear in the UI after save.Add Broker Account
Credentials live in the engine's SQLite store and are masked in every read response. Kite Connect requires API Key + Secret from kite.trade; Access Token expires daily and must be refreshed.
Portfolios
Deploy saved Strategies on a Broker with a Multiplier. Portfolio-level risk caps stop the whole container when the daily loss cap is hit.New Portfolio
A Portfolio bundles one or more saved Strategies, each pinned to a Broker with a size Multiplier. Risk caps below stop the whole container when breached — the engine will not start any further Strategy in this Portfolio for the day.
Add Slot
A Slot pins one saved Strategy to one Broker Account with a size Multiplier. The Multiplier scales the leg lots and any ₹-based SL / Target (PNL-mode rungs); points / % / underlying-move / delta stay unchanged.
Webhook
Fire a saved portfolio from TradingView, Chartink, or any HTTP source.Your endpoint
POST with body: { "portfolio":"name", "broker_id":"paper", "context":{} }Example (TradingView alert webhook URL)
curl -X POST <your-webhook-url> \
-H "Content-Type: application/json" \
-d '{ "portfolio": "short_straddle", "broker_id": "paper" }'
Backtest
Backtest History
Every backtest you run is saved here. Click any row to reload the full report — no need to re-replay the bars.| Run (IST) | Strategy | Symbol | From → To | Cost / Slip | Net PnL ₹ | Trades | Win % | Max DD ₹ | Actions |
|---|---|---|---|---|---|---|---|---|---|
| No backtests yet — run one from the Backtest tab. | |||||||||
Historical Charts
Replay any trading day's CE / PE option candles and combined premium straight from the bar archive, with backtest entry/exit markers. Cursor is synced across all three charts.| Date | ATM | Expiry | DTE | Open | Close | Reason | PnL ₹ | Cum PnL ₹ | DD ₹ | Legs (entry → exit) |
|---|---|---|---|---|---|---|---|---|---|---|
| Select a backtest result above to see its per-day trades. Click any row to load that day's CE/PE + combined charts with entry/exit markers. | ||||||||||