๐Ÿค–๐Ÿ“‰ Mean Reversion Bot

What is the Mean Reversion Bot?

The Mean Reversion Bot is an automated futures trading strategy that profits from price bounces. When a coin's price drops too far below its average (oversold), the bot opens a long position expecting a bounce back up. When price rises too far above its average (overbought), it opens a short position expecting a pullback.

Think of it like a rubber band โ€” the further you stretch it, the harder it snaps back. The bot finds coins that are "stretched" too far from their normal price and trades the snap-back.

In simple terms: Buy low, sell high โ€” but automated, across 50+ coins, 24/7.


How Does It Work?

The Scanning Cycle

Every 15 minutes (configurable), the bot runs through this cycle:

1. Fetch the top 50 coins by market cap
2. Remove stablecoins and your blacklisted symbols
3. For each remaining coin:
   a. Download the latest price candles from your exchange
   b. Calculate 4 technical indicators
   c. Check if enough conditions are met for entry
4. Rank valid opportunities
5. Open positions (respecting your limits)
6. Wait 15 minutes, repeat

What the Bot Looks For

The bot calculates four indicators on each coin and checks if enough of them signal an entry. You can configure how many must agree (default: 2 out of 4).

For a Long (Buy) Entry:

Indicator
What It Checks
Condition

RSI

Is the coin oversold?

RSI below 30

Bollinger Bands

Has price dropped below normal range?

Price below the lower band

Stochastic

Is selling momentum exhausted?

Stochastic below 20

EMA Filter

Is the broader trend supportive?

Price relative to the moving average

For a Short (Sell) Entry:

Indicator
What It Checks
Condition

RSI

Is the coin overbought?

RSI above 70

Bollinger Bands

Has price risen above normal range?

Price above the upper band

Stochastic

Is buying momentum exhausted?

Stochastic above 80

EMA Filter

Is the broader trend supportive?

Price relative to the moving average

You don't need to understand these indicators. The bot handles the math. But if you want to tune them, every threshold is adjustable in the Config tab.


Position Lifecycle

How Exits Work

Once a position is open, the bot monitors it every second and closes it when any of these conditions are met:

Exit Type
When It Triggers
What Happens

Take Profit

Price reaches your target (default +20%)

Position closed at profit. Cooldown does NOT apply.

Stop Loss

Price hits your stop (default -10%)

Position closed at loss. Symbol enters 48-hour cooldown.

Timeout

Position held longer than max days (default 14)

Position closed at current price, win or lose.

Manual Close

You click "Close" on a position

Position closed immediately at market price.

Kill Switch

You activate the emergency button

ALL positions closed + bot stopped.

Why Cooldowns Exist

After a stop loss, the bot avoids re-entering the same coin for 48 hours (configurable). This prevents the bot from repeatedly buying into a coin that's in a genuine downtrend rather than a temporary dip.

Cooldowns only activate after stop-loss exits. Take-profit and timeout exits do NOT trigger cooldowns.


Position Limits

The bot enforces strict limits to manage risk:

Limit
Value
Why

Max total positions

6

Diversification โ€” never all-in on one setup

Max long positions

3

Balanced exposure

Max short positions

3

Balanced exposure

Min trade size

$10

Below this, exchange fees eat the profit

Delta-Neutral Priority

The bot tries to keep your long and short positions balanced. If you have 2 longs and 0 shorts, it will prioritize short entries to reduce directional risk.


Default Settings

These are the values the bot uses when you first start it. All are adjustable in the Config tab.

Trade Settings

Setting
Default
What It Does

Exchange

Bybit

Which exchange to trade on

Leverage

1ร—

Futures leverage (1ร— = no leverage)

Margin Mode

Isolated

Each position has its own margin

Order Type

Limit

Uses limit orders (not market) for better fills

Capital per Trade

15%

Each position uses 15% of your free balance

Capital Mode

Dynamic

Percentage of your current balance (adjusts as you trade)

Risk Settings

Setting
Default
What It Does

Take Profit

20%

Close at 10% profit

Stop Loss

10%

Close at 5% loss

Max Holding Days

14

Auto-close after 14 days

Cooldown

48 hours

Wait time after stop-loss before re-entering the symbol

Indicator Settings

Setting
Default
What It Does

EMA Period

50

Lookback for the trend filter

Bollinger Period

20

Lookback for the volatility bands

Bollinger Std Dev

2.0

How wide the bands are (higher = fewer signals)

RSI Oversold

30

Below this = oversold (buy signal)

RSI Overbought

70

Above this = overbought (sell signal)

Stochastic Oversold

20

Below this = oversold confirmation

Stochastic Overbought

80

Above this = overbought confirmation

Min Conditions Required

2

How many indicators must agree (out of 4)

Direction Settings

Setting
Default
What It Does

Allow Longs

โœ… On

Bot can open buy positions

Allow Shorts

โœ… On

Bot can open sell positions

Scan Frequency

15 min

How often the bot scans the market


Presets

Don't want to configure everything manually? Choose a preset:

Conservative

Best for: New users, small accounts, risk-averse traders.

Setting
Value

Capital per Trade

10%

Take Profit

5%

Stop Loss

3%

RSI Oversold

25

RSI Overbought

75

Scan Frequency

30 min

Fewer trades, tighter stops, more selective entries.

Moderate (Default)

Best for: Most users. Balanced risk and reward.

Setting
Value

Capital per Trade

15%

Take Profit

20%

Stop Loss

10%

RSI Oversold

30

RSI Overbought

70

Scan Frequency

15 min

Aggressive

Best for: Experienced traders with larger accounts who want more action.

Setting
Value

Capital per Trade

25%

Take Profit

15%

Stop Loss

8%

RSI Oversold

35

RSI Overbought

65

Scan Frequency

5 min

More trades, wider stops, less selective entries.


What Coins Does It Trade?

The bot automatically scans the top 50 cryptocurrencies by market cap that are available as USDT futures on your exchange. This list updates daily from CoinGecko.

The bot automatically excludes:

  • All stablecoins (USDT, USDC, DAI, etc.)

  • Any symbols you've blacklisted

  • Symbols currently in cooldown

  • Symbols where you already have an open position


Supported Exchanges

Exchange
Status
Notes

Bybit

โœ… Fully Supported

Recommended. Best liquidity for futures.

MEXC

โœ… Supported

Swap futures.

Exchange Key Setup

  1. Go to your exchange and create a new API key

  2. Enable Futures Trading permission

  3. Add the API key and secret in Qbots โ†’ Settings โ†’ Exchange Keys

  4. Select the exchange in the bot's Config tab

Important: The bot needs Futures API keys, not Spot keys. If you get "Invalid API key" errors, check that futures permission is enabled.


Risk Disclaimer

  • This bot trades leveraged futures โ€” you can lose more than your initial position size with leverage above 1ร—.

  • Past performance does not guarantee future results.

  • Start with low leverage (1ร—) and the Conservative preset until you understand how the bot behaves.

  • Never allocate money you cannot afford to lose.

  • The Kill Switch is your emergency exit โ€” it stops the bot and closes all positions immediately.


FAQ

Q: How much money do I need to start? The minimum trade size is $10. With the default 15% capital allocation, you'd need at least ~$70 in your futures wallet. We recommend starting with $200+ for meaningful diversification across positions.

Q: Can I run the bot on multiple exchanges? Each bot instance runs on one exchange. You can create up to 5 bots, each on a different exchange.

Q: What happens if I stop the bot? Stopping the bot halts scanning for new trades. Existing positions remain open and continue to be monitored for take-profit, stop-loss, and timeout exits.

Q: What happens if the exchange goes down? The bot retries API calls with exponential backoff. If the exchange is unreachable for an extended period, a circuit breaker activates to prevent error spam. Positions resume monitoring once connectivity is restored.

Q: Can I manually close a position? Yes. Go to the Positions tab and click the โœ• button on any open position. It will be closed at market price immediately.

Q: Why does it say "0 opportunities found"? This is normal. The strategy is selective โ€” it only trades when conditions are strongly met. During calm markets, the bot may scan for hours without finding a valid setup. This is by design.

Q: How do I disable short positions? Go to Config โ†’ turn off "Allow Short Positions". The bot will only open long (buy) positions.

Last updated