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.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
Replay a saved strategy against the historical 1-minute bar archive. MVP supports TIME-gated entry + per-leg %-SL/TGT + combined INR caps + fixed square-off. Indicator-based conditions are deferred.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. | |||||||||