NB

Nifty Bot

Sign in to control your trading bot.

NB
Nifty Bot
Loading
-
Nifty 50
-
 
India VIX
-
 
Today's P&L
-
 
Trades today
-
 

Bot

Zerodha login

-
Login with Zerodha
Add KITE_API_SECRET to ~/bot/.env to enable one-tap login.
Kite redirected to 127.0.0.1? Paste the URL here

After logging in, copy the full address from the browser bar (it contains request_token=) and paste it below within a couple of minutes.

Open position

Flat

Today's trades

Today's closed trades

Net P&L (all days)
-
 
Trading days
-
 
Trades
-
 
Worst day
-
 

Daily net P&L (Rs) bars above zero = profit

No days recorded yet.

By day

Start the bot

New entries only between these times (blank = default: 09:38 to 14:15 for selling and spread, 09:35 for buying). Allowed 09:16 to 15:00; open positions still square off at 15:15. The early-stop recovery trade needs the first stop before 10:00 (13:00 with that switch), so a 10:00 start rules it out unless the 13:00 switch is on.

Max daily loss blocks new entries once today's closed loss reaches it. It is not a per-trade stop.

Rule changes (all off = original rules)

Stop / emergency

Stop ends the bot loop but leaves any open position in Kite.
Kill switch squares off the open position (and hedge) at market, blocks new entries, then stops.

Run a backtest replays the live engine on real Kite candles

!
Not available right nowBacktests are blocked 09:10 to 15:40 IST on trading days so they cannot slow down the live bot.

Lots and entry times apply to every run (blank times = default 09:38 to 14:15, 09:35 for buying). Commission is a flat amount per trade, so with more lots the charges are slightly understated.

Fills use the real 1-minute option candle plus 0.325 pts slippage. Maximum 45 days. Expired contracts may be missing from Kite, so those trades use estimated prices and are counted.

Results

No backtest has been run yet.

Click a row to see its curve and trades. The combined stop is checked once per minute bar, so small differences between variants can be noise.

Cumulative net P&L (Rs)

Select a run.

Trades in the selected run

Select a run.

Telegram alerts

  1. In Telegram open @BotFather, send /newbot, follow the prompts and copy the token it gives you.
  2. Open your new bot and press Start (or send "hi").
  3. Paste the token below and press Find my chat.

What you will be alerted about

  • Bot started / stopped / crashed
  • Trade opened and closed, with fills and net P&L
  • Orders not filled, HALT, loss cap reached
  • No live price for 30s while a position is open
  • Invalid token, kill switch, daily summary

Recent events

Journal files for analysis / RL