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

stochastic-trading

Skill17 starsChanged 4 months agoApache-2.0View on GitHub

Define and test Stochastic percent-K/percent-D states, crosses, and divergence. Use when calibrating oscillator bands, trend interactions, closed-bar entries, exits, and turnover.

1 other project uses 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

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
  1. Distinctive:

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

    line 71
  2. Distinctive:

    Never trade from an extreme label alone.

    line 79
  3. Distinctive:

    Test with/against-trend variants rather than assuming the filter adds edge.

    line 81
  4. Very specific:

    Treat 14/3/3 as a conventional baseline.

    line 82

≈ “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

Stochastic Oscillator Trading

Stochastic measures momentum by comparing closing price to the price range over a period.

Components

LineDescriptionUse
%KMain line (fast)Primary signal
%DSignal line (3-SMA of %K)Confirmation

Signals

Overbought/Oversold Reversals

  • Define low/high bands from training data or use 20/80 only as conventional seeds; a cross creates a candidate trigger, not an automatic trade

%K/%D Crossover

  • %K crosses above %D → bullish feature; test interaction with oscillator zone
  • %K crosses below %D → bearish

Divergence

  • Price new high + Stochastic lower high → bearish
  • Price new low + Stochastic higher low → bullish

Momentum

  • %K above 50 and rising → bullish momentum
  • %K below 50 and falling → bearish momentum

Market-Specific Strategies

Ranging Markets

  • Apply calibrated low/high exit-cross rules
  • Target: opposite zone

Trending Markets

  • Define trend objectively and test trend-direction filters; persistent extremes are possible

Workflow

  1. Get Stochastic:
    get_indicators(indicator_code="stoch", symbol=<symbol>, exchange=<exchange>, interval=<interval>)
  2. Determine market type (trending vs ranging) to select strategy
  3. Check for %K/%D cross in OB/OS zone
  4. Confirm with candle data:
    get_candles_around_date(symbol=<symbol>, exchange=<exchange>, interval=<interval>, date=<date>)
  5. Enter with confirmation candle; stop beyond recent swing

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 finds stochastic-rule performance differs across markets and is not reliably positive after transaction costs.

Key Rules

  • Never trade from an extreme label alone; require the predeclared closed-bar rule.
  • Calibrate divergence pivots, spacing, and oscillator bands.
  • Test with/against-trend variants rather than assuming the filter adds edge.
  • Treat 14/3/3 as a conventional baseline; record all parameter variants and turnover.

Related Skills

  • rsi-divergence — Stochastic divergence + RSI divergence together strengthens reversal signals
  • bollinger-bands — test stochastic state at volatility-envelope extremes as a combined feature

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.