market-screener
Skill3 starsChanged 11 days agoMITView on GitHub
Scan the whole crypto futures market in one call and test what a setup did historically, using TraderSpy's screener and backtest. "Which coins are oversold on the 4h", "what is above its 200 EMA with rising volume", "show me Bollinger squeezes", "biggest losers today with RSI under 30", "find me setups / a watchlist", side-by-side comparison tables ("compare BTC, ETH and SOL"), and event studies ("how did ETH do after RSI dropped below 30", "is a golden cross on BTC daily actually bullish", "what usually follows a −5% day on SOL"). Use this whenever the user wants to find, filter, rank or compare several coins by technical conditions, or asks what happened after a condition in the past. Never answer these by calling get_technical_indicators coin by coin. For a deep read of ONE coin use technical-analysis.
In this repository5 other files it gives its agents.
- market-briefingSkill
- position-checkSkill
- smart-moneySkill
- technical-analysisSkill
- trading-signalsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
Every result row carries the metric values under their labels (values["RSI(14)"]), plus price, change24hPct, volume24hUsd, bias, trend, …
- Distinctive: line 138
Never turn "70% win rate on 12 samples" into a forecast.
- Distinctive: line 140
If asked to execute, say so plainly.
- Distinctive: line 143
When a specific trade idea is under discussion, end with one plain sentence that crypto derivatives are high-risk and this is market …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Two tools, one vocabulary. screen_symbols evaluates up to three AND-ed conditions across the
most-traded pairs (or a list you give it) on one timeframe, in ONE quota unit. backtest_condition
takes the same conditions, one symbol and one timeframe, and reports what price did after every
past occurrence — with the unconditional baseline so the edge is separated from the tape's drift.
Together they answer the two questions traders actually ask: "what fits this pattern right now?" and "has this pattern meant anything before?"
The condition vocabulary
A condition is { metric, op, value, period?, period2? }. op is lt / gt (latest value) or
crossAbove / crossBelow (a one-bar event: the previous bar was on the other side).
| Metric | Default period | Unit / meaning |
rsi | 14 | 0–100 |
stochastic | 14, %D 3 | slow %K, 0–100 |
cci | 20 | Commodity Channel Index (±100 typical bands) |
mfi | 14 | 0–100, volume-weighted RSI |
williamsR | 14 | −100…0 (−80 oversold, −20 overbought) |
adx | 14 | trend strength; > 25 strong, < 20 absent |
roc | 12 | rate of change, % |
macdHistogram | 12, 26 (signal 9) | histogram in price units; crossAbove 0 = bullish MACD cross |
atrPct | 14 | ATR as % of price — volatility |
volumeRatio | 20 | bar volume ÷ average of the previous N bars |
bbPercentB | 20 (2σ) | 0 = lower band, 1 = upper band; < 0 or > 1 = outside |
bbWidthPct | 20 | band width as % of the middle — small = squeeze |
priceVsEma | 50 | % distance of close from EMA(period); > 0 above |
emaSpread | 50, 200 | % of EMA(period) over EMA(period2); crossAbove 0 = golden cross |
supertrend | 10 (×3) | +1 up-trend, −1 down-trend |
changePct | 24 | % change of close over the last N BARS (on 1h, 24 = one day) |
price | — | close |
Periods clamp to 2–200. Conditions are AND-ed; there is no OR — run two scans for an OR and merge.
Unknown metrics are rejected, so stick to the table (the full recipe list is in
references/condition-cookbook.md).
Screening (screen_symbols)
Arguments: interval (default 4h), conditions (≤ 3), universe (5–100 most-traded by 24h
volume, default 50) OR symbols (≤ 100, explicit), limit (≤ 50 rows), sortBy volume /
change24h / metric, sortOrder.
Choose the timeframe from the user's horizon: intraday → 1h (or 15m), swing → 4h, position →
1d. Widen universe to 100 when the user wants small caps or the first scan matched little.
Every result row carries the metric values under their labels (values["RSI(14)"]), plus price,
change24hPct, volume24hUsd, bias, trend, rsi14, adx14, atrPct, volumeRatio,
squeeze. When matched > returned, say so and offer to raise limit.
Comparison mode: symbols with no conditions returns every listed symbol as a table — this is
how you answer "compare BTC, ETH and SOL" or "how do my five coins look on the daily".
Translate intent to conditions before calling, and say what you translated it to:
- "oversold" →
rsi lt 30(or 35 for a wider net); "deeply oversold" addbbPercentB lt 0 - "overbought" →
rsi gt 70 - "in an uptrend" →
priceVsEma gt 0 period 200+supertrend gt 0 - "with rising volume" →
volumeRatio gt 1.5 - "squeezing" →
bbWidthPct lt 4on 4h (lower on 1h) — then sort by metric ascending - "dumped today" →
changePct lt -5 period 24on 1h, orperiod 6on 4h - "golden cross" →
emaSpread crossAbove 0 period 50 period2 200on 1d
Backtesting (backtest_condition)
Arguments: symbol, interval, conditions (same vocabulary), horizons in bars (≤ 4; defaults
≈ 4h / 1d / 3d: 1h → [4, 24, 72], 4h → [6, 18, 42], 1d → [1, 3, 7]).
The study runs over the whole stored tape — up to 1000 candles, so roughly 41 days on 1h, 166
days on 4h, 3 years on 1d. An "occurrence" is the FIRST bar of each run where the condition held
(ten consecutive oversold bars are one episode). For each horizon you get samples,
avgReturnPct, medianReturnPct, winRatePct, avgMaxUpPct / avgMaxDownPct (average best and
worst excursion, wick-accurate), bestPct / worstPct, baselineAvgReturnPct (every bar on the
same tape) and edgePct = average − baseline. Also activeNow, currentValues, lastOccurrence,
and recent[] with the last five episodes and their realised returns.
How to read it honestly:
- Edge and sample size travel together.
edgePct +1.8 on 27 samplesis a statement;+6 on 4 samplesis an anecdote, and the tool says so inwarnings. Never quote the edge alone. - Median vs average: a positive average with a negative median means a few big winners carried it. Say which.
- Excursions are the risk picture:
avgMaxDownPct −5.1on a "bullish" setup means the average episode went 5% against you before the horizon ended. That belongs next to the win rate. - Horizons that disagree (positive at 1d, negative at 3d) usually mean a bounce that fades — report the shape, do not pick the flattering horizon.
- Recent episodes newer than a horizon are excluded from that horizon (
nullinrecent), never counted as zero. - Coverage limits what the study can see: 41 days of 1h data contains one market regime. A 1d study is the only one that spans cycles.
Workflows
"What's oversold right now?" → one screen_symbols. Present the table, then (optional, one more
call) backtest_condition the same condition on the top match so the answer carries "and here is
what that has meant on this coin before".
Screen, then dig in → a screener row already carries bias, trend, RSI, ADX and ATR% on one
timeframe. When the user wants more on the best matches (levels, VWAP, the 1h/4h/1d picture), pass
the top three as symbols to ONE get_technical_indicators call (technical-analysis) — never one
call per coin.
"Find me setups" / "watchlist" → decide the archetype with the user in one line (mean-reversion vs trend-continuation vs breakout), run one scan per archetype (2–3 calls), and present each list with the conditions it was built from. Do not promise an outcome for any row.
"Is X actually bullish?" → one backtest_condition on the coin and timeframe in question;
if the user names no coin, BTC on 1d is the most meaningful default and say why (longest tape).
"Compare A, B, C" → screen_symbols with symbols, no conditions, on the timeframe they care
about. Add get_derivatives (technical-analysis) only if the question includes funding or
positioning.
Presenting
Screen: state the conditions in words and in the tool's labels, the timeframe, and the universe ("50 most-traded pairs"), then one row per symbol:
| Symbol | Price | 24h % | <metric labels…> | Bias | Trend | ADX | ATR% |
Backtest: one header line (symbol, timeframe, condition, occurrences, coverage), a horizon table —
| Horizon | Samples | Avg % | Median % | Win % | Avg best % | Avg worst % | Baseline % | Edge % |
— then the last episodes and whether the condition is active now. Close with the sample-size caveat in your own words.
Conduct
- A screen is a list of things that are true about the chart right now; a backtest is a sample of what followed in the past. Neither is a recommendation. Present the evidence, note what would invalidate the setup, and leave the trade — and the sizing — to the user.
- Never turn "70% win rate on 12 samples" into a forecast; historical stats describe their sample.
- Nothing in this connector trades — no order, close, transfer or withdrawal tool exists by design. If asked to execute, say so plainly; the decision and the trade stay with the user.
- Quote only what the tools returned; when a symbol is missing from the universe say it was not scanned rather than implying it failed the filter.
- When a specific trade idea is under discussion, end with one plain sentence that crypto derivatives are high-risk and this is market information, not financial advice.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

