agentleFS
SKE-LabsSKE-Labs/agent-trading-skills/skills/technical-strategies/rsi-divergence/SKILL.md

rsi-divergence

Skill17 starsChanged 4 months agoApache-2.0View on GitHub

Define and test RSI divergence at confirmed price pivots. Use when aligning exact pivot timestamps, spacing, equality tolerances, oscillator zones, closed-bar entry, and invalidation.

3 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are 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.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Treat the setup as a testable hypothesis, not a prediction.

    line 75
  2. Distinctive:

    Test timeframe interactions.

    line 85
  3. Distinctive:

    Do not convert correlated price/structure features into a high-probability claim without calibration.

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

RSI Divergence Trading

RSI divergence is a geometric relationship between confirmed price pivots and RSI values at the same timestamps. It is a candidate feature, not a reversal signal by itself.

Divergence Types

Regular (Reversal)

TypePrice ActionRSI ActionSignal
BullishLower LowHigher LowCandidate bullish regular divergence
BearishHigher HighLower HighCandidate bearish regular divergence

Hidden (Continuation)

TypePrice ActionRSI ActionSignal
BullishHigher LowLower LowTrend continues up
BearishLower HighHigher HighTrend continues down

RSI Zones

LevelInterpretation
High percentile/bandContext for bearish candidates; calibrate
Low percentile/bandContext for bullish candidates; calibrate
Mid-rangeDescriptive only; test rather than discard universally

Workflow

  1. Get RSI:
    get_indicators(indicator_code="rsi", symbol=<symbol>, exchange=<exchange>, interval=<interval>)
  2. Identify confirmed pivots with fixed left/right bars or an ATR-reversal rule; exclude the unconfirmed right edge
  3. Compare exact timestamps: sample RSI at the two price pivots and apply predeclared price/RSI equality tolerances and pivot-spacing limits.
  4. Get candles for chart marking:
    get_candles_around_date(symbol=<symbol>, exchange=<exchange>, interval=<interval>, date=<date>)
  5. Mark divergence:
    draw_chart_analysis(action="create", drawing={
        "type": "trend",
        "points": [
            {"time": <first_swing_time>, "price": <first_swing_price>},
            {"time": <second_swing_time>, "price": <second_swing_price>}
        ],
        "options": {"text": "Bullish RSI Divergence"}
    })
  6. Wait for confirmation candle (engulfing, hammer, pin bar) at divergence zone before entry

Entry

  • Bullish: enter above confirmation candle at support; stop below swing low; target previous resistance
  • Bearish: enter below confirmation candle at resistance; stop above swing high; target previous support

Evidence and Validation

  • Treat the setup as a testable hypothesis, not a prediction. Define thresholds, entry, invalidation, and exit before evaluating outcomes.
  • Calibrate on the same instrument, venue, session, and timeframe. Use closed candles and a held-out or walk-forward sample; record every variant tried.
  • Include spread, fees, slippage, borrow or funding, partial fills, and latency. Reject the setup when net expectancy is not positive or depends on one narrow parameter.
  • Return observed inputs, missing data, cost assumptions, entry, invalidation, exit, and a valid, watch, or no-trade status.
  • Research basis: The technical-rule evidence shows oscillator results vary materially across markets and often weaken after costs; RSI extremes and divergence spacing require calibration.

Key Rules

  • Define any support/resistance and entry trigger objectively before evaluation.
  • Enter only from the specified closed-bar trigger; divergence alone is watch.
  • Test timeframe interactions; no 1H minimum is universally reliable.
  • Calibrate optional RSI zones and pivot spacing by instrument/regime.
  • Do not convert correlated price/structure features into a high-probability claim without calibration.

Related Skills

  • divergence-trading — extends RSI divergence with multi-indicator scoring (MACD, Stochastic, OBV)
  • macd-trading — MACD divergence combined with RSI divergence strengthens reversal signals

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.