Tool Full control Source-code configs

FuturesBot configure

FuturesBot is a tool — not a black box. You get all configuration files as plain-text Python files. This page shows with concrete examples what you can adjust and what it does. The default settings are a starting point (not a recommendation) — check every change thoroughly in paper mode first.

💬

You don't have to memorize anything. Our AI chat (bottom right on every page) knows all parameters and files. Ask it questions such as “How do I disable Mean Reversion?" or “Where do I set the minimum score?" — you get immediate answers with code examples. The AI chat explains operation and parameters; it gives no recommendations on capital, leverage, symbols or settings.

1. Which config files do you get?

After the purchase you receive a ZIP file with the software. In the folder config/ are all the customizable files:

.env
Global settings: exchange selection, API keys, leverage defaults, paper trading switch, symbol risk levels.
strategies.py
14 strategies individually configurable: long/short on/off, minimum score, 4 presets (off by default), maximum holding time per strategy.
risk.py
Leverage limits, position sizing, margin limits, loss pauses, leverage caps per market phase (automatic adjustment by volatility off by default).
protection.py
Smart Profit Protection or trailing stages (23 in the standard tables). Stop distances, profit zones, wick protection.
flipper.py
Position flipping (AFSM, on by default): on a trend change, first closing via reduce-only order, then a new position in the opposite direction. Limits such as flips per hour, waiting time and minimum score are adjustable.
paper_trading.py
Paper trading settings: starting capital (initial_balance), fee and slippage simulation. Optionally an A/B comparison of the SMART and TRAILING protection modes in paper mode; funding is not booked in paper mode.
claude_config.py
Optional Claude AI integration: API key, model selection, scoring thresholds, prompt templates.
tradingview_config.py
TradingView settings: signal check (validator), multi-symbol mode, holding times per timeframe. On/off and port are in the .env.
Tip: All files are plain-text files (.env and Python) — you can open them with any editor (Notepad++, VS Code, even Windows Notepad). The comments are in German and English.

2. Enable / disable strategies

Do you only want to trade trend following and no mean reversion? Set the flags per strategy 'enabled_long' and 'enabled_short':

File: config/strategies.py

STRATEGY_DEFAULTS = {
    # Beispiel — die ausgelieferten Werte stehen in deiner config
    'TREND_FOLLOWING': {
        'enabled_long': True,
        'enabled_short': True,
        'min_score': 50,                  # Beispielwert
    },
    'MEAN_REVERSION': {
        'enabled_long': False,             # <- ausgeschaltet
        'enabled_short': False,            # <- ausgeschaltet
    },
    # ... weitere Strategien (BREAKOUT, JH_EMA_MOMENTUM, JH_RSI_MACD, ...)
}

# Presets (z. B. trend_conservative) aktivierst du separat
# in STRATEGY_PRESETS mit 'enabled': True
Effect: The bot ignores deactivated strategies completely — no signals, no trades. You can switch at any time and activate with a bot restart.

3. Minimum score: MIN_TRADE_SCORE

Every signal is rated per strategy type on a scale of 0–100 (50 = balanced). With the score threshold you control how many signals be traded:

File: config/strategies.py

# Mindest-Score für ALLE Strategien (0-100).
# Höher = weniger Signale werden gehandelt, niedriger = mehr.
# Wirkung aufs Ergebnis nicht vorhersagbar — im Paper-Modus prüfen.
# Beispielwert zur Illustration — die ausgelieferten
# Defaults findest du in deiner config
MIN_TRADE_SCORE = 50

# Mindest-Marktqualitaet (0-10).
# Höher = nur bei klaren Marktbedingungen traden.
MIN_MARKET_QUALITY = 5.0  # Beispielwert

# Pro Symbol lockern oder strenger machen
# Negativer Wert = lockerer, mehr Trades (Beispielwerte)
SYMBOL_SCORE_OFFSET = {
    'BTC/USD':  -5,    # lockerer
    'ETH/USD':  0,     # neutral
    # ... pro Symbol frei einstellbar
}

How does the set value work?

  • Higher value: fewer signals are traded
  • Lower value: more signals are traded
  • Transfer: The bot transfers the setting to the rating of the respective strategy type. The number in the configuration is therefore not directly comparable to the displayed score of a signal.

Higher = fewer signals are traded, lower = more. Whether this improves your result cannot be predicted — first check thoroughly in paper mode.

4. Leverage

Leverage determines your position size relative to your capital. Higher leverage = higher profits AND losses. Shipped: DEFAULT_LEVERAGE=5, MAX_LEVERAGE=5 (technical starting value, not a recommendation). At 5× an adverse move of around 20 % can liquidate, at 10× around 10 %. Your exchange may set lower leverage limits for retail clients (in the EU for crypto underlyings possibly 2:1). The bot cannot use higher leverage than your exchange account allows. Set the leverage yourself and check it thoroughly in paper mode first.

File: config/.env

# Default-Hebel für neue Trades
DEFAULT_LEVERAGE=5

# Grenzen, innerhalb derer der Bot den Hebel setzt
MIN_LEVERAGE=1
MAX_LEVERAGE=5

Leverage by market phase in config/risk.py

# Ab Werk aus: keine automatische Hebel-Anpassung nach Volatilitaet
LEVERAGE_AUTO_ADJUST = False
# Die Tabelle LEVERAGE_BY_VOLATILITY ist vorhanden, wirkt ab Werk aber nicht.
# Wirksam ab Werk: Obergrenzen je Marktphase (senken den Hebel, heben ihn nie an)
REGIME_LEVERAGE_CAP = { ... }

By default only caps per market phase and strategy type apply — they lower the leverage, never raise it. There is no leverage per symbol.

⚠️ Important: Higher leverage multiplies profits AND losses. With 5×, an adverse move of around 20 %, and with 10×, one of around 10 %, can liquidate the position. The value supplied is a technical starting value, not a recommendation — test every leverage change thoroughly in paper mode first.

5. Trailing stop & protection modes

FuturesBot offers two modes for stop trailing (default: SMART). You choose one — neither is a reliable protection against losses (price gaps, slippage, liquidation):

File: config/.env

# Schutz-Modus auswählen:
# SMART = Smart Profit Protection (4-Zonen-System)
# TRAILING = 23-stufiges Trailing-Stop (Stop beim Einstieg = Verlust-Deckel / Hebel, Stufen wie eingestellt)
PROTECTION_MODE=SMART

Stop and trailing parameters in config/protection.py

# Auszug — Namen wie ausgeliefert, Werte koennen sich je Version aendern
INITIAL_STOP_PERCENT = 0.01           # Rückfall-Stop (Preis-%); Stop beim Einstieg: je Strategie in der .env (SMART; in TRAILING: Verlust-Deckel / Hebel)
TRAILING_ACTIVATION_PERCENT = 0.003   # ab dieser Preisbewegung wird nachgezogen (Schutz-Modus SMART; in TRAILING ab „Gewinnsicherung frühestens ab“)
WICK_PROTECTION_ENABLED = True       # Wick-Schutz, ab Werk an (per .env schaltbar)
PROFIT_ZONES = [ ... ]                  # Smart-Profit-Zonen; Teilverkaeufe nur in PROFIT und RUNNER
TRAILING_STOP_LEVELS_BTC = [ ... ]      # Trailing-Stufen je Symbol

6. Switch exchange

A single line in the .env determines which exchange the bot uses:

# Eine Zeile - eine Exchange
EXCHANGE=kraken      # Vorgabe neuer Installationen; oder: bybit, bitget (Testphase)

# Pro Exchange eigene Keys
API_KEY="..."            # Kraken
API_SECRET="..."

BYBIT_API_KEY="..."
BYBIT_API_SECRET="..."

BITGET_API_KEY="..."
BITGET_API_SECRET="..."
BITGET_PASSPHRASE="..."
Paper trading without registration: New installations are preset to EXCHANGE=kraken ; paper mode (PAPER_TRADING=true) is on by default. Without API keys the bot automatically uses public price data from Bybit and simulates the trades. No account, no real money; nothing is sent to any exchange.
Note: Bybit and Bitget are in a test phase. Please use them with care, test in paper mode first and, if anything looks unusual, inform support via the “Diagnostics” button in the program. Kraken is fully supported.

7. TradingView webhook + your own Pine scripts

Do you have your own trading ideas in Pine Script? Send signals directly from TradingView to the bot:

# In config/.env
TRADINGVIEW_ENABLED=true
TRADINGVIEW_WEBHOOK_PORT=5000
MAX_CONCURRENT_SYMBOLS=3    # ausgeliefert (Profil B); Offen-Budget: Bot + TradingView + Zusatz-Strategien zusammen

The package includes two preconfigured Pine scripts (pine_script_v11_master.pine and pine_script_v12.4_precision_multi.pine), which you can import into TradingView. Check in paper mode first, like any signal source. TradingView sends webhooks only to port 80/443 — for the local port 5000 you need a reverse proxy, tunnel or port forwarding. Optionally, the bot only accepts alerts whose webhook URL contains an access token (TRADINGVIEW_WEBHOOK_TOKEN, empty by default; setup in docs/README_TRADINGVIEW.txt: first switch all alerts over, then set the token). Also protect the endpoint via reverse proxy or firewall. Close signals from TradingView do not close a position — exits are controlled by the bot. Full guide in README_TRADINGVIEW.txt.

8. Optionally enable Claude AI

FuturesBot can use Anthropic Claude for an additional check layer (result APPROVAL/BLOCK according to your rules, not an investment recommendation) — completely optional:

# In config/.env
CLAUDE_API_KEY=sk-ant-...
ENABLE_CLAUDE_VALIDATION=false          # Master-Schalter
ENABLE_CLAUDE_TRADING_EXECUTOR=false    # Trade-Prüfung vor dem Einstieg
ENABLE_CLAUDE_EXIT_VALIDATION=false     # Exit-Prüfung beim Zeit-Ausstieg

# In config/claude_config.py
CLAUDE_MIN_CONFIDENCE = 70              # Mindest-Confidence für die Freigabe (Standard)
Note: The Claude integration is 100% optional. The bot runs without it — the AI is an additional check layer, not protection against losses. Your own Anthropic API key is required (to be obtained separately).

9. Restoring defaults (reset)

Misconfigured something? The factory templates are located in bin/config_template/ — file from there to config/ copy back:

# Beispiel: strategies.py auf Werks-Setting zuruecksetzen
# (Windows / Linux ähnlich)
copy bin\config_template\strategies.py config\strategies.py

# Oder gleich alle Files zuruecksetzen
copy bin\config_template\*.py config\

Plus: in docs/README_CONFIG.txt it states for every file what it controls. A good place to understand which parameter has which effect.

💬

Questions? Our AI chat helps

On every page (bottom right) you will find the FuturesBot AI chat. It knows all config files, all parameters, all strategies. Ask specifically:

  • "How do I disable Mean Reversion only for the short side?"
  • “What does TRAILING_ACTIVATION_PERCENT do?”
  • “What does MIN_TRADE_SCORE do?”
  • “How do I connect my own Pine Script?”

You get answers immediately with a file reference and code example. The AI chat explains operation and parameters; it gives no recommendations on capital, leverage, symbols or settings.

Try it yourself — 14 days free

Features of the full version with few deviations, all config files. Paper mode by default. No credit card needed.

Download trial →
⚠️ Risk notice: FuturesBot is a technical automation tool — not investment advice, not an investment recommendation, not asset management. You set strategies, leverage and stake yourself. Even with careful configuration, crypto futures trading can lead to a total loss; stop-loss and protective functions do not reliably limit losses (price gaps, slippage, liquidation). No guarantee of profit; past or simulated results are no indication of future ones. First check every setting thoroughly in paper mode. Full risk notice →
💬 Questions? Ask me!
F
FuturesBot AI support
AI assistant · replies automatically