tinklefund
|
8b4ce279da
|
feat: Add powerful flexible strategy system
Strategy Builder:
- Create strategies from natural language
- Grid trading strategy
- DCA (Dollar Cost Averaging) strategy
- Trend following (EMA crossover) strategy
- Custom rule-based strategies
Strategy Components:
- Entry/exit rules with indicators (RSI, EMA, MACD, etc.)
- Position sizing (fixed, percent, risk-based, kelly)
- Risk management (max drawdown, daily loss limit, cooldown)
- Leverage config (fixed, dynamic, per-symbol, per-volatility)
- Time-based rules (trading hours, hold time limits)
- AI enhancement (confidence threshold, personality)
11 New Tools:
- create_strategy - Natural language strategy creation
- create_grid_strategy - Grid trading setup
- create_dca_strategy - DCA setup
- create_trend_strategy - Trend following setup
- list_smart_strategies - List all strategies
- get_strategy_details - Strategy details
- update_strategy - Modify strategy settings
- activate_strategy - Start trading
- deactivate_strategy - Stop trading
- delete_strategy - Remove strategy
- get_strategy_templates - Show available templates
Total tools now: 24 (13 trading + 11 strategy)
|
2026-01-30 03:45:10 +08:00 |
|
tinklefund
|
f9d8318869
|
feat: Add smart trading assistant with context awareness
- Add SmartAgent with automatic context injection
- Real-time portfolio/position data in every prompt
- AI knows current state before responding
- Add TradingContext builder
- Aggregates balance, positions, P&L across all traders
- Auto-generates alerts (liquidation risk, large loss, etc.)
- Add background Monitor
- Proactive position monitoring every 30s
- Detects new positions, closed positions
- Forwards alerts to Telegram
- Enhanced system prompts
- Professional trading assistant persona
- Risk assessment guidelines
- Clear response formatting rules
Features:
✅ Context-aware responses
✅ Proactive risk alerts
✅ Background monitoring
✅ Alert broadcasting to Telegram
|
2026-01-30 03:40:14 +08:00 |
|
tinklefund
|
01ba348841
|
feat: Add Telegram AI Assistant (moltbot-nofx integration)
- Add assistant package with AI Agent runtime
- agent.go: Core agent loop with tool calling
- session.go: Conversation memory management
- tool.go: Tool interface and base implementation
- trading_tools.go: Trading-specific tools (13 tools)
- prompts.go: Trading expert system prompts (EN/ZH)
- Add telegram package for Telegram bot integration
- bot.go: Telegram bot with rate limiting & access control
- config.go: Environment-based configuration
- Update main.go to initialize Telegram bot on startup
- Update .env.example with new configuration options
- Add gopkg.in/telebot.v3 dependency
Trading tools available:
- Query: get_balance, get_positions, list_traders, get_trader_status
- Control: start_trader, stop_trader
- Trading: get_market_price, open_long, open_short, close_position
- Config: list_strategies, list_exchanges, list_ai_models
|
2026-01-30 03:29:22 +08:00 |
|