Open trade · mark-to-market
Today
Stopping the bot leaves positions open. Use Square off or Kill BCS to close them. Kill BCS closes the calendar spread only; KILL ALL at the top closes both strategies.
Positions
Payoff · P&L if Nifty moves
MTM this trade
Trend · 15-min Supertrend (14, 3)
—Open trade · mark-to-market
FlatDesk
Runs on its own: separate mode, size, trades and P&L from the calendar spread. Stopping leaves an open trade unmanaged (no stop-loss or 15:15 exit) — square off first. Kill Supertrend closes and blocks this strategy only; KILL ALL at the top closes both.
Nifty · 15-minute bars with Supertrend
Closed trades
How it trades
- Every 15 minutes (09:30 … last entry) it reads the Supertrend of the bar that just closed.
- Trend UP → sell the ATM put; trend DOWN → sell the ATM call.
- Hedge bought first (same expiry, further OTM), then the sell; exits close the sell first.
- Exit when the trend flips (and take the new direction at once), at the exit time, or at the stop-loss.
- After a stop-loss or a manual square-off, no new trade in that direction until the trend flips.
- Nearest weekly expiry; on expiry day next week's contract.
- Orders tagged ST15 in CubePlus, sent in tranches like BCS.
- Backtest Jul–Nov 2026, 1 lot, naked: +₹84,921, 59% wins, max drawdown ₹13,716.
Activity
Trade log
Closed trades
Trading mode
Demo: simulated market, no broker needed. Paper: real CubePlus prices, simulated fills, no orders sent. Live: real orders in your Tradejini account.
Broker: Tradejini CubePlus
Credentials stay on this server in a file only the bot can read. They are never shown again here. Tradejini only accepts API calls from the static IP you registered for the app.
Zerodha (Supertrend copy only)
Zerodha needs a login every trading morning (tokens expire ~6 AM). Press Login to Zerodha, sign in on Kite's own page, and you come back here. Until then the Zerodha copy does not trade. Redirect URL in your Kite app: https://nkalgo.duckdns.org/zerodha/callback; whitelisted IP: 64.227.158.66.
Market-data history
Every trading day at 15:45 the bot saves 1-minute prices of Nifty, India VIX and all Nifty options near the money (next ~9 weeks of expiries) from CubePlus. Tradejini deletes a contract's history once it expires, so this database is what future strategy backtests run on.
Record today works after the close (or any time for a partial day). Backfill pulls everything Tradejini still holds for listed contracts (up to the days set in config, default 120).