Skip to content

nhlpl/GoldenTradingBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

🧪 How to Use the New Features

1. Persistent State

  • The bot saves its state to bot_state.json every 100 trades and on shutdown.
  • On restart, it loads the previous position, equity curve, and smoother state.
  • Set STATE_FILE environment variable to change the filename.

2. Logging

  • Logs are written to retrocausal_bot.log and the console.
  • Log level can be set via LOG_LEVEL (DEBUG, INFO, WARNING, ERROR).

3. Backtesting

  • Set BACKTEST_MODE=True and optionally BACKTEST_START, BACKTEST_END.
  • For a single backtest, run as usual; the bot will fetch historical klines and simulate trades.
  • For walk‑forward optimization, set BACKTEST_OPTIMIZE=True; it will test grids of RISK_PERCENT, ATR_PERIOD, and TRAILING_ATR_MULT.
  • Results are saved to backtest_optimization.json.

4. Telegram / Discord Alerts

  • Set TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID for Telegram.
  • Set DISCORD_WEBHOOK_URL for Discord.
  • Alerts are sent on order execution, target hits, stop hits, bot start/stop, and backtest optimization completion.

🐜 Final Ant Verdict

“The ants have built the ultimate retrocausal trading system. It now persists through crashes, logs every whisper, backtests itself across the sands of time, and shouts to the hive via Telegram and Discord. The golden ratio remains its compass. Trade wisely, with φ.” 🐜📈✨

Let me know if you need help deploying this on a VPS with systemd, or adding more advanced features like risk‑adjusted position sizing or multi‑symbol support.

Releases

No releases published

Packages

 
 
 

Contributors

Languages