indicator-scanner
Scan multiple symbols with indicator conditions. Find stocks matching RSI oversold, EMA crossovers, Supertrend signals, and custom filter combinations.
By marketcalls · 493 installs
npx skills add marketcalls/openalgo-indicator-skills --skill indicator-scanner
Source repository · Upstream listing
Create a multi symbol indicator scanner that screens stocks by technical conditions.
Arguments
Parse $ARGUMENTS as: scan type watchlist
$0 = scan type (e.g., rsi oversold, rsi overbought, ema crossover, supertrend buy, supertrend sell, macd crossover, adx trending, custom). Default: rsi oversold
$1 = watchlist (e.g., nifty50, banknifty, custom). Default: nifty50
If no arguments, ask the user what they want to scan for.
Instructions
1. Read the indicator expert rules for reference
2. Create scanners/{scan type}/ directory (on demand)
3. Create {scan type} scanner.py
4. The script must:
Load .env from project root
Define the watchlist (predefined or custom)
Fetch data for each symbol via client.history()
Compute indicator(s) using openalgo.ta
Check the scan condition
Print results as a formatted table
Save results to CSV
Optionally get real time LTP via client.quotes() for current values
Scan Logic Pattern
Predefined Scan Types
Scan Type Condition Indicator
rsi oversold RSI(14) < 30 RSI
rsi overbought RSI(14) 70 RSI
ema crossover EMA(10) crossed above EMA(20) in last 3 bars EMA
ema crossunder EMA(10) crossed below EMA(20) in last 3 bars EMA
supertrend buy Supertrend direction changed to 1 (uptrend) Supertrend
supertrend sell Supertrend direction changed to 1 (downtrend) Supertrend
macd crossover MACD crossed above Signal in last 3 bars MACD
adx trending ADX 25 (strong trend) ADX
bb squeeze Bollinger Width at 20 bar low (volatility squeeze) Bollinger
volume spike Volume 2x 20 day average Volume
custom Ask user for conditions Any
Predefined Watchlists
NIFTY 50 (nifty50)
Bank NIFTY (banknifty)
Output Format
Example Usage
/indicator scanner rsi oversold nifty50
/indicator scanner ema crossover banknifty
/indicator scanner supertrend buy nifty50
/indicator scanner volume spike nifty50
/indicator scanner custom