Runs a full NSE equity trading analysis using technical indicators (RSI, MACD, Moving Averages), news sentiment, and a history of past trade decisions. Fetches live market data and holdings via Kite, scores each stock, and presents ranked trade recommendations with entry price, target, and stop-loss. Places orders via Kite upon user approval. Logs every decision for future reference. Trigger with: "run trade analysis", "what should I trade today", "analyze my stocks", "trading suggestions", "check my watchlist", "any good trades today", or "market analysis".
This skill runs a structured trading analysis across your NSE watchlist and current Kite holdings each morning. It combines technical signals, news sentiment, and your own trading history to surface the best setups — then hands control back to you before placing anything.
scripts/manage_watchlist.py --action read to get the fixed watchlistmcp__kite__get_holdings to get current holdingsFor each symbol in the universe:
mcp__kite__get_historical_data with:
instrument_token: look up via mcp__kite__search_instruments if neededfrom_date: 200 trading days back (for EMA-200 accuracy)to_date: todayinterval: "day"[timestamp, open, high, low, close, volume]) for each symbolFor each symbol, pass its candles to the script:
python3 scripts/compute_indicators.py --candles '<json_array>'
The script outputs a JSON object with:
rsi_14: current RSI valuemacd_line, signal_line, histogram: current MACD valuesema_20, ema_50, ema_200: current EMA valuesclose: latest close pricesignal_summary: one of STRONG_BUY / BUY / NEUTRAL / SELL / STRONG_SELLRefer to references/trading-strategy.md for how to interpret these values.
For each symbol in the universe, use WebSearch to search:
"[SYMBOL] NSE stock news site:economictimes.com OR site:moneycontrol.com OR site:livemint.com"
Summarize the top 3 results per symbol. Score sentiment per references/sentiment-scoring.md.
Run: python3 scripts/log_decision.py --action read --symbol ALL --last 20
Review recent decisions. Note:
Refer to references/decision-log-format.md for the log schema.
For each symbol, combine:
Apply risk filters from references/risk-management.md:
Rank remaining symbols by combined score, highest first.
Show the top 3–5 trade ideas in a clean table:
SYMBOL | Direction | Entry | Target | Stop-Loss | R/R | Technical Signal | Sentiment | Reasoning
After the table, write 2–3 sentences per trade explaining the setup in plain English.
Ask the user: "Which trade(s) would you like to place? Type the symbol(s) or say 'none'."
For each approved trade:
For each confirmed order, call:
mcp__kite__place_order with the confirmed parametersFor each trade presented (whether placed or skipped), run:
python3 scripts/log_decision.py --action append \
--symbol SYMBOL \
--direction BUY/SELL/SKIP \
--entry_price PRICE \
--target TARGET \
--stoploss STOPLOSS \
--reasoning "brief reasoning" \
--order_id ORDER_ID_OR_NA