NIFTY50 Option Trading based on Global sentiment and well-known technical indicators.
- This is console application still in testing phases. Website and Mobile application launching soon.
- It can work on one account at a time.
- You can run in your local or any cloud service with VM.
- Open the folder
app/core - Run the command
yarn installornpm install - Create the
.envfile and update the broker details & other configurations. Refer.env.samplefor more details. - Compile the project
tsc - Run the job
yarn run startornpm run start.
Interested in contributing to this project? I'd love to connect! Reach out to me on LinkedIn: https://www.linkedin.com/in/itaravin/
Full details: docs/v5-strategy.md
Broker: Upstox | Platform: Browser (React + Cloudflare Worker) | Instrument: Nifty weekly options
A 5-layer scoring engine that combines macro sentiment, technical indicators, and institutional flow into a single automated bot:
| Layer | Source | Signal |
|---|---|---|
| L0 | VRD Nation — VIX, Nifty PE | Hard stop (blocks trading) |
| L1 | MoneyControl + NiftyTrader | V3 macro: global indices + A/D + PCR |
| L2 | Upstox 1-min candles | V4 technical: EMA, ADX, RSI, Stochastic, BB, ATR |
| L3 | VRD Nation | Institutional: MMI, FII L/S, FII Positioning, Nifty PE, Straddle IV |
| L4 | Confluence gate | Minimum score threshold + gap check |
- Bot runs in browser, polls every 60s, places MARKET orders via Upstox API
- State machine:
IDLE → RUNNING → ORDERED → RUNNING/STOPPED - Exits on profit %, stop loss %, V3/V4 reversal, or breadth flip
- All config editable in the dashboard UI; broker accounts and strategy config now hydrate from Worker-backed D1 storage with
localStorageas a fallback cache - Dashboard available at
app/client/— runnpm run dev - Persistence details: docs/client-persistence.md
- Client setup and migration steps: app/client/README.md
Code: testapp/src/upstox/index.ts Broker: UpStox
| Type | Indicators | Comments | Status |
|---|---|---|---|
| Trend | Moving average | 5 mins charts - EMA(10), EMA(20), EMA(42) | done |
| Trend | Advance Decline Ratio | NIFTY green/red | skip |
| Trend | MACD or ADX | To know trend & reversal | ADX done |
| Trend | OI Put Call Radio (PCR) | To know buy sell strength | done |
| Momentum | RSI | done | |
| Momentum | Stochastic Oscillator | done | |
| Volatility | Bollinger Bands | done | |
| Volatility | ATR | done | |
| Volatility | VIX | skip | |
| Volulme | On-Balance Volume | skip | |
| Stop Loss | Fibonacci Retracement Levels | skip |
- Fetch global sentiment from moneycontrol.com
- Fetch nifty50 sentiment from nseindia.com - AD Ratio
- Fetch OI PCR from niftytrader.com
- place order (via upstox)
- exit if profit or loss hit
- Scrap Investing.com and get global indicies trend
- Scrap Investing.com and get last 1 min trend to get sentiment & direction
- Use technical indicator RSI, MACD, ATR
- If everything goes good, place order (via finvasia)
- Exit the order if profit or loss hit (configurable %)
- Scrap Investing.com and get global indicies trend
- Scrap Investing.com and get last 5 min trend & 1 min trend to get sentiment & direction
- Use technical indicator ATR, RSI, HL
- If everything goes good, place order (via finvasia)
- Exit the order if profit or loss hit (configurable %)
- Dow Jones
- Nikkei 225
- Hang Seng
- Shanghai
- FTSE 100
- KOSPI 50
- CAC 40
- SGX NIFTY
- Brent Oil
- USD/INR
- Pivot Points
- Moving Averages
- RSI
- MACD
- Max trades per day
- Max profit % per day
- Max profit % per trade
- Max loss % per day
- Max loss % per trade
- API
- Website
- Finvasia
- Upstox (in progress)
- To get NIFTY50 data nseindia.com/api/equity-stockIndices?index=NIFTY%2050
- To get Global data



