Spaces:
Configuration error
Configuration error
Golden Maverick: AI Gold Trading Bot 💰
An intelligent trading assistant for XAU/USD (Gold Spot) that combines AI predictions with technical analysis for automated trading.
Features
- Real-time XAU/USD price tracking from TradingView
- Advanced technical analysis (EMA, RSI, MACD, Bollinger Bands, ATR)
- AI-powered market direction prediction
- Automated trade execution with proper risk management
- Telegram/Discord notifications
- 1:2 risk-reward strategy
Installation
Clone the repository: bash git clone https://github.com/yourusername/golden-maverick.git cd golden-maverick
Install dependencies: bash pip install -r requirements.txt
Create a
.envfile with your credentials:TRADINGVIEW_USERNAME=your_username TRADINGVIEW_PASSWORD=your_password TELEGRAM_BOT_TOKEN=your_telegram_token TELEGRAM_CHAT_ID=your_chat_id BROKER_API_KEY=your_broker_key
Run the bot: bash python golden_maverick_bot.py
Configuration
Edit the bot parameters in GoldenMaverick class:
risk_per_trade: Percentage of account to risk per trade (default 2%)take_profit_ratio: Risk-reward ratio (default 1:2)trailing_stop_enabled: Whether to use trailing stopstimeframe: Trading interval (5m, 15m, 1h, etc.)
Trading Strategy
The bot combines:
- AI prediction model (LSTM neural network)
- Traditional technical indicators:
- EMA Crossovers (20/50/200)
- RSI overbought/oversold
- MACD crossovers
- Bollinger Band extremes
- Risk management:
- 2% max risk per trade
- Automatic position sizing
- Stop loss based on ATR
- 1:2 risk-reward ratio
License
MIT License - Free for personal and commercial use