Advanced config fields
๐ฆ AthenaAI is an AI-powered ensemble machine-learning trading bot for PocketOption, built on BinaryOptionsToolsV2 โ Get it on GitLab
๐ฌ Need help? Join the Chipa Discord ยท โก Go no-code with ChipaEditor
BotConfig (src/config.py) is a dataclass holding every tuneable knob of the bot. Most commonly-tuned fields can be set through environment variables (see the environment variable reference), but the fields below have no environment variable: build_config() in main.py never reads them, so they always take their dataclass defaults unless you change the code.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
kelly_fraction | float | 0.50 | Fraction of the Kelly-criterion stake used when sizing trades |
max_concurrent_trades | int | 1 | Maximum simultaneously open (unresolved) trades |
warmup_candles | int | 60 | Candles loaded/required before the first trade (floor of 60 enforced) |
retrain_every | int | 10 | Resolved trades between incremental partial_fit() model updates |
lookback | int | 200 | Max candles kept in the live buffer and per training sample |
feature_window | int | 20 | Rolling window (candles) for feature-engine statistics |
signal_confirmations | int | 1 | Consecutive agreeing candles required before trading (1 = instant) |
skip_volatile_regime | bool | False | Hard-skip trading while the regime is volatile |
min_wait_between_trades | int | 60 | Minimum seconds between trade entries |
trading_hours | tuple | (0,1,2,3,4,16,17,19,20,21,22,23) | Whitelisted UTC hours; empty tuple = all hours |
max_consec_losses | int | 3 | Consecutive losses that trigger a cooldown |
cooldown_seconds | int | 300 | Length (seconds) of the loss-streak cooldown |
regime_window | int | 30 | Candles analyzed for regime detection |
db_path | str | "trade_journal.db" | SQLite trade-journal file path |
poll_interval | float | 2.0 | Seconds between trade-loop decision cycles |
How to change these
There are two ways, both requiring a code change:
-
Edit the defaults in
src/config.py:# src/config.py kelly_fraction: float = 0.25 trading_hours: tuple = ()Every entry point that builds a
BotConfig(includingmain.py) then picks up the new defaults. -
Construct
BotConfigyourself instead of (or on top of)main.pyโsbuild_config():import asyncio from src.config import BotConfig from src.bot import AITradingBot cfg = BotConfig( ssid="your-pocketoption-ssid", kelly_fraction=0.25, signal_confirmations=2, trading_hours=(), # trade all UTC hours ) asyncio.run(AITradingBot(cfg).start())
For fields that are settable via environment variables (ssid, asset, stakes, confidence bounds, dataset and brain paths, and more), see the environment variable reference.
See also
Level Up Your AthenaAI Setup
- ๐ฆ Get AthenaAI on GitLab โ โ clone the source, open issues, and contribute improvements.
- ๐ฌ Join the Chipa Discord โ โ get real-time support, share your results, and swap strategy ideas with other AthenaAI users.
- โก Try ChipaEditor โ โ build, backtest, and deploy trading strategies without writing a line of code, with our AI-powered strategy editor.