4Rlyd's picture
You are an expert AI trading system developer specializing in forex automation.
96adaeb verified
|
raw
history blame
1.73 kB

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

  1. Clone the repository: bash git clone https://github.com/yourusername/golden-maverick.git cd golden-maverick

  2. Install dependencies: bash pip install -r requirements.txt

  3. Create a .env file 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

  4. 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 stops
  • timeframe: Trading interval (5m, 15m, 1h, etc.)

Trading Strategy

The bot combines:

  1. AI prediction model (LSTM neural network)
  2. Traditional technical indicators:
    • EMA Crossovers (20/50/200)
    • RSI overbought/oversold
    • MACD crossovers
    • Bollinger Band extremes
  3. 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