Sensex Desk

UT Bot weekly options

PAPER FYERS ENGINE WEBHOOK
Feature video

Spot

—

Daily P&L

—

Open

FLAT

Trades today

—

Square off

Manual square-off exits the running trade only. The next TradingView alert can enter again. Day square-off exits the trade and blocks new entries until the next session.

Lots for this account

Next TV buy/sell uses this many lots. An open trade keeps its current size. Exchange contract size stays 20.

This week expiry

Usual weekly expiry is Thursday. If Thursday is a holiday, BSE prepones to Wednesday, or Tuesday / Monday for a long weekend. Set the day here. Expiry-day trail (wider ATR, +40 arm) follows this date.

Open with previous UT Bot

If yesterday’s last 3m call_buy / call_sell was buy or sell, at 09:15 the desk enters that side. A same-day TV alert still wins and can reverse.

How this desk works

Entries come only from TradingView 3-minute call_buy / call_sell on this desk’s /alert/<account>. The desk does not compute UT Bot locally and does not wait for SuperTrend. A signal waits 10 seconds, then enters or reverses. Trail is ATR 14×1.8 on 3m. On expiry day the trail is wider (ATR×3.0) and only starts after the premium is up 40 points. No point-profit cap. Flatten at 15:15. Live stays off until that account’s flags are on.

TradingView 3m alerts

  1. Chart: BSE:SENSEX, interval 3 minutes.
  2. Two alerts, named call_buy and call_sell.
  3. Webhook URL for this account: /alert/primary
  4. Message is the name only: call_buy or call_sell. Do not put the secret in the message.
  5. If TV_WEBHOOK_SECRET is set, add ?secret=… to the URL. Leave Fyers webhook details blank.
  6. Trigger: Once Per Bar Close.

TradingView cannot hit localhost. Point the public HTTPS URL (VPS or tunnel) at the same path. Postman can use the local URL below.

Working position

Fyers Sensex chain

Recent fills

TradingView / webhook alerts

Fyers

  1. App type Trading, App ID ends with 200.
  2. Whitelist a static public IP. It locks for 7 days.
  3. Redirect URL must match FYERS_REDIRECT_URI.
  4. Leave Fyers Webhook Details empty.
  5. Each morning: python -m sensex_strategy.fyers_login
  6. Live: FYERS_LIVE_ORDERS=1 and broker.live_orders: true, then restart.

Dhan

  1. web.dhan.co → Profile → Access DhanHQ APIs → 24h token.
  2. Put DHAN_CLIENT_ID and DHAN_ACCESS_TOKEN in .env.
  3. Dhan also needs a static IP for Order APIs.
  4. Live later: broker.name: dhan, DHAN_LIVE_ORDERS=1.
  5. Sensex option securityId mapping is not live yet. Connection check works now.

Lots for this account

Same control as Overview. Applies to the selected account only.

Active rules