Testing
π€ RussBot is a free, open-source binary options trading bot for PocketOption, built on BinaryOptionsToolsV2 β Get it on GitLab
π¬ Need help? Join the Chipa Discord Β· β‘ Go no-code with ChipaEditor
RussBot ships with three test scripts. Run them before trading real money β they verify the indicator math, your API connection, and historical data loading independently of the trading loop.
test_indicators.py β Indicator Math
python test_indicators.py
Tests the EMA, CCI, and MACD calculations against sample data. It works without BinaryOptionsToolsV2 installed β if the library is missing it degrades to pure indicator testing:
β οΈ BinaryOptionsToolsV2 not available - testing indicators only
Use this to:
- Confirm the indicator implementations produce sane values after you modify them
- Sanity-check custom periods before putting them in
config.json - Debug NaN issues in indicator output
test_history.py β Historical Data Loading
python test_history.py
Requires your SSID. Verifies the full data pipeline the bot depends on at startup:
- Connects to PocketOption and prints your balance
- Fetches historical candles for
EURUSD_otcacross multiple periods (30 min, 1 h, 2 h) - Shows the raw candle structure so you can confirm the API format matches what the bot expects
π§ͺ Testing historical data loading for EURUSD_otc
β
API connection established
π° Account balance: 10000.0
π Loading historical candles...
Run this whenever:
- Youβre setting up on a new machine or network
- The bot reports
β οΈ No historical data received - You suspect your SSID has expired
test_simple_history.py β Minimal History Check
python test_simple_history.py
A stripped-down version of the history test β one API call, minimal output. Fastest way to answer βis my SSID valid and can I fetch candles?β
debug_indicators.py β Live Debugging
python debug_indicators.py
Combines a live connection with verbose indicator output, useful when the bot connects fine but signals look wrong.
Recommended Pre-Flight Checklist
Before any live session:
- β
python test_indicators.pyβ indicator math is sound - β
python test_simple_history.pyβ SSID valid, candles flowing - β
python payout_checker.pyβ enough assets above your payout threshold (details) - β Run the bot on a demo account SSID and watch a few signals fire
- β Only then switch to a real-account SSID with a small amount
Paper Trading
Want to evaluate the strategy without any execution risk? Comment out the two await self.api.buy(...) / await self.api.sell(...) calls in the bot and replace them with prints. The full analysis pipeline still runs, and the logs (logs.log) give you a record of every signal to evaluate after 24β48 hours.
Related Pages
- Getting Started β SSID extraction
- Indicators Reference β what the indicator tests validate
- Troubleshooting β what to do when a test fails
π¬ A test failing and you canβt tell why? Post the output in the Chipa Discord β someone has almost certainly hit it before. Or skip the plumbing entirely and go no-code with ChipaEditor.