Skip to content

reddygopalkrishna/trading-skills / skills/trading-scanner

trading-scanner

Verified

Screen any list of stocks, ETFs, crypto or FX pairs with plain-English ideas turned into precise rules (or 14 ready presets like trend-template, momentum-leaders, breakout-volume, oversold-in-uptrend, squeeze, golden-cross), then rank the matches with key columns. Use when the user asks to find, filter or scan for stocks, "which of these are near highs", "show oversold names in an uptrend", wants a watchlist built from criteria, or describes conditions to search for.

FileKindSize
SKILL.mdskill md2.6 KB
assets/watchlists/crypto-majors.txtmarkdown112 B
assets/watchlists/global-index-etfs.txtmarkdown106 B
assets/watchlists/global-large-caps.txtmarkdown306 B
assets/watchlists/india-large-caps.txtmarkdown291 B
assets/watchlists/us-mega-caps.txtmarkdown173 B
assets/watchlists/world-indices.txtmarkdown104 B
references/rule-language.mdmarkdown2.9 KB
scripts/_vendor/tradekit/__init__.pyscript516 B
scripts/_vendor/tradekit/alerts.pyscript7.5 KB
scripts/_vendor/tradekit/analysis.pyscript10.3 KB
scripts/_vendor/tradekit/backtest.pyscript17.8 KB
scripts/_vendor/tradekit/brokers/__init__.pyscript1022 B
scripts/_vendor/tradekit/brokers/_rest.pyscript2.7 KB
scripts/_vendor/tradekit/brokers/base.pyscript3.5 KB
scripts/_vendor/tradekit/brokers/dhan.pyscript6.8 KB
scripts/_vendor/tradekit/brokers/fyers.pyscript7.1 KB
scripts/_vendor/tradekit/brokers/groww.pyscript7.7 KB
scripts/_vendor/tradekit/brokers/kite.pyscript14.5 KB
scripts/_vendor/tradekit/brokers/paper.pyscript12.7 KB
scripts/_vendor/tradekit/brokers/upstox.pyscript7.8 KB
scripts/_vendor/tradekit/cli.pyscript2.4 KB
scripts/_vendor/tradekit/config.pyscript6.0 KB
scripts/_vendor/tradekit/data.pyscript18.5 KB
scripts/_vendor/tradekit/disclosures.pyscript17.4 KB
scripts/_vendor/tradekit/expr.pyscript19.0 KB
scripts/_vendor/tradekit/feeds.pyscript9.4 KB
scripts/_vendor/tradekit/frame.pyscript8.9 KB
scripts/_vendor/tradekit/fundamentals.pyscript6.1 KB
scripts/_vendor/tradekit/gate.pyscript8.1 KB
scripts/_vendor/tradekit/http.pyscript4.3 KB
scripts/_vendor/tradekit/indicators.pyscript13.1 KB
scripts/_vendor/tradekit/journal.pyscript11.1 KB
scripts/_vendor/tradekit/metrics.pyscript6.2 KB
scripts/_vendor/tradekit/montecarlo.pyscript7.8 KB
scripts/_vendor/tradekit/options.pyscript24.4 KB
scripts/_vendor/tradekit/patterns.pyscript12.9 KB
scripts/_vendor/tradekit/report.pyscript8.4 KB
scripts/_vendor/tradekit/risk.pyscript4.7 KB
scripts/_vendor/tradekit/sec.pyscript12.0 KB
scripts/_vendor/tradekit/session.pyscript9.4 KB
scripts/screen.pyscript8.5 KB

references/rule-language.md

View on GitHub
# Rule language

Shared by trading-scanner, trading-backtest and trading-chart `--eval`. A rule is one expression
evaluated on every bar. Comparisons give true/false; arithmetic gives numbers.

## Fields

`open high low close volume hl2 hlc3 ohlc4 bar_index`

## Operators

`+ - * / % **`  `> >= < <= == !=`  `and or not` (also `&&`, `||`, `AND`, `OR`)

## Functions

Arguments are positional. `[src,]` means the source series is optional (defaults to `close`).

| function | meaning |
|---|---|
| `sma([src,] n)` `ema` `wma` `rma` | moving averages (rma = Wilder) |
| `stdev([src,] n)` `zscore([src,] n)` | dispersion |
| `rsi([src,] n=14)` | Wilder RSI |
| `roc([src,] n)` `pct_change([src,] n=1)` `change([src,] n=1)` | momentum (% / % / absolute) |
| `slope([src,] n)` | regression slope, % per bar |
| `atr(n=14)` `atr_pct(n=14)` | average true range (absolute / % of close) |
| `bb_upper([src,] n=20, k=2)` `bb_lower` `bb_mid` `bb_width` | Bollinger Bands (`bb_width` in % of mid) |
| `kc_upper(n=20, mult=1.5)` `kc_lower` `kc_mid` | Keltner channel |
| `macd(fast, slow, signal)` `macd_signal(...)` `macd_hist(...)` | MACD (defaults 12, 26, 9) |
| `adx(n=14)` `plus_di(n)` `minus_di(n)` | trend strength / direction |
| `stoch_k(n=14, k=3, d=3)` `stoch_d(...)` | stochastic |
| `cci(n=20)` `mfi(n=14)` | CCI, money flow index |
| `supertrend(n=10, mult=3)` `supertrend_dir(n, mult)` | Supertrend line / direction (+1/-1) |
| `vwap()` `obv()` | session VWAP (intraday) / on-balance volume |
| `highest([src,] n)` `lowest([src,] n)` | rolling max (default `high`) / min (default `low`) |
| `shift(src, n=1)` `ref(src, n)` | value n bars ago |
| `cross_above(a, b)` `cross_below(a, b)` | crossed this bar |
| `rising([src,] n=3)` `falling([src,] n=3)` | strictly rising/falling for n bars |
| `rel_volume(n=50)` | volume / average of the prior n bars |
| `pct_from_high(n=252)` `pct_from_low(n=252)` | % from n-bar high (<= 0) / low (>= 0) |
| `realized_vol(n=20)` | annualized volatility % |
| `percentile(src, n)` | rank of the current value within the last n (0-100) |
| `abs(x)` `sqrt(x)` `log(x)` `max(a, b, ...)` `min(a, b, ...)` | math |

## Examples

```text
close > sma(200) and rsi(2) < 10                         # pullback in uptrend
cross_above(ema(20), ema(50))                            # EMA crossover today
close > shift(highest(high, 20), 1) and rel_volume(50) > 1.5   # 20-day breakout on volume
percentile(bb_width(20), 120) <= 10                      # volatility squeeze
pct_from_high(252) >= -5 and adx(14) > 25                # strong trend near highs
close < bb_lower(20, 2) and rsi(14) < 30                 # stretched below the band
sma(close * volume, 50) > 10000000                       # liquidity filter
```

Notes:
- `highest(high, 20)` includes the current bar; use `shift(highest(high, 20), 1)` for "prior 20-bar high".
- During indicator warm-up values are empty and comparisons are false.
- Validate a rule without data: `python3 scripts/screen.py --check "RULE"`.
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall