AI Agent Hub
Back to skills
Connors RSI Dual-Strategy Trading Bot icon

Connors RSI Dual-Strategy Trading Bot

Professional Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Follow https://skillhub.cn/install/skillhub.md to install @user_3601a2f8/zhancheconnors.

About this skill

Problem

This skill targets automated OKX perpetual trading, where manual monitoring, inconsistent signal execution, and fragmented risk control are common pain points. It puts two strategy families into one execution framework: Strategy A trend resonance for trending markets, using 1H/4H/1D alignment, pullback entries, and trailing stops; Strategy B Connors RSI for range markets, using RSI(2) extreme readings and ADX(14) filters to avoid fading strong trends.

How It Works

The implementation is organized around scanning, risk control, order execution, and backtesting:

  • bot.py is the Strategy A entry point for market scanning, signal scoring, multi-filter validation, and automated execution.
  • rsi2_bot.py is the Strategy B entry point for mean-reversion signals such as long entries on RSI(2) < 10 and short entries on RSI(2) > 90.
  • risk_manager.py handles daily loss limits, exposure caps, position counts, and cooldown rules after consecutive losses.
  • trade_executor.py manages entries, stop-loss, take-profit, and trailing-stop logic.
  • backtest_rsi2.py supports historical validation of the RSI-based strategy.

A typical workflow is to configure the API key and risk parameters in scripts/config.ini, choose a strategy to start, then verify connectivity and monitor status. The documentation stresses that the API key must have perpetual-trading permission and recommends running in demo mode first.

Boundaries and Caveats

This is best treated as an engineering scaffold for a trading bot, not a guaranteed return system. The two strategies maintain independent risk budgets, so simultaneous runs still require manual oversight of total exposure. High leverage amplifies slippage, latency, and tail-risk exposure. Before live use, verify API permissions, spend limits, stop logic, and whether the backtest coverage matches the intended instruments.

Use Cases

  • Configure the API key and risk limits in OKX perpetual trading, then start a demo run to verify connectivity.
  • Run Strategy A in trending markets, scan the top 20 contracts using 1H/4H/1D resonance, and place orders automatically.
  • Run the Connors strategy in range-bound markets, using RSI(2) extremes and ADX filters to execute mean-reversion trades.
  • Before live trading, run `backtest_rsi2.py` to validate RSI(2) results, drawdown, and timeout-based exits.

Best For

  • Crypto quant engineers who want to consolidate OKX perpetual order execution, risk control, and backtesting in one codebase.
  • Individual OKX API traders who need to validate Connors RSI(2) mean-reversion rules in demo trading first.
  • Developers researching trend-following strategies who want to extend a bot around 1H/4H/1D resonance and trailing stops.
  • Bot-ops teams that need to audit API permissions, spending limits, daily loss caps, and total position exposure.