Documentation

GOAT is an advanced AI-powered cryptocurrency trading platform that leverages multiple state-of-the-art language models to analyze market data and execute trades with precision.

Multi-Model AI

6 AI models working simultaneously for optimal trading decisions

Real-Time Analysis

Live market data processing every 30 seconds

Risk Management

Advanced position sizing and stop-loss strategies

Key Features

AI-Powered Trading

Our platform integrates six cutting-edge AI models that analyze market conditions from multiple perspectives:

  • Claude Sonnet 4.5 - Advanced reasoning and market analysis
  • DeepSeek V3.2 - Deep learning pattern recognition
  • Gemini 2.5 PRO - Multi-modal market intelligence
  • Grok 4 - Real-time sentiment analysis
  • GPT-5 - Contextual understanding and prediction
  • Qwen 3-Max - High-frequency trading signals

Multi-Timeframe Analysis

Trading decisions are based on comprehensive timeframe analysis:

  • 1-Minute Charts - Precise entry timing
  • 5-Minute Charts - Primary scalping analysis
  • 15-Minute Charts - Standard momentum plays
  • 1-Hour Charts - Trend context and major S/R levels
  • 4-Hour Charts - Overall market direction

Adaptive Strategy

The system automatically adjusts trading parameters based on:

  • Market volatility (measured via 5M candle ranges)
  • Multi-timeframe confluence strength
  • BTC correlation impact on altcoins
  • Position exposure limits (max 65-70%)

AI Models

Claude

Claude Sonnet 4.5

Anthropic's flagship model excels at complex reasoning and multi-step market analysis. Provides detailed trade justifications with high confidence signals.

Specialty: Long-term trend analysis
DeepSeek

DeepSeek V3.2

Advanced pattern recognition model that identifies complex chart formations and historical price action similarities.

Specialty: Pattern recognition
Gemini

Gemini 2.5 PRO

Google's multi-modal AI processes market data, news sentiment, and social signals to generate comprehensive trading insights.

Specialty: Multi-modal analysis
Grok

Grok 4

xAI's model with real-time data access provides up-to-the-second market sentiment and breaking news impact analysis.

Specialty: Real-time sentiment
GPT

GPT-5

OpenAI's latest model brings superior contextual understanding and predictive capabilities for market movements.

Specialty: Contextual prediction
Qwen

Qwen 3-Max

Alibaba's high-performance model optimized for rapid decision-making and high-frequency trading signal generation.

Specialty: High-frequency signals

Trading System

Signal Types

LONG

Buy signal with confidence ≥ 0.6

SHORT

Sell signal with confidence ≥ 0.6

HOLD

Maintain existing position

WAIT

No clear setup, stay on sidelines

CLOSE

Exit position (invalidation or low confidence)

Risk Management Formula

Step 1: Base Risk % (5-15%)
Confidence Range    Base Risk %    Typical Leverage
0.8 - 1.0           13-15%        5x-10x
0.7 - 0.8           10-12%        10x-12x
0.65 - 0.7          7-9%          12x-15x
0.6 - 0.65          5-7%          15x-20x

Step 2: Calculate Base Risk
risk_usd = total_balance × base_risk%

Step 3: Apply Leverage
size_usd = risk_usd × leverage

Constraint:
size_usd / total_balance ≤ 0.65 (65% max exposure)
                    

Trade Duration Logic

  • 15-MIN: Quick scalps on 5M setups with tight confluence (15x-20x leverage)
  • 30-MIN: Standard momentum plays on 15M patterns (10x-15x leverage)
  • 60-MIN: Strong trend continuation on 15M/1H alignment (8x-12x leverage)
  • 2-8H: Major trend plays with 1H/4H confirmation (5x-10x leverage)

Stop Loss & Take Profit

Stop Loss Placement:

  • 15M trades → below/above nearest 1M or 5M swing
  • 30M trades → below/above 5M or 15M S/R
  • 60M trades → below/above 15M or 1H S/R
  • Min distance: 0.3% from entry
  • Adaptive based on volatility (0.3%-2.5%)

Take Profit:

  • LONG → nearest resistance level
  • SHORT → nearest support level
  • Uses Fibonacci retracements + psychological levels
  • Min distance: 0.5% from entry
  • Minimum Risk:Reward ratio of 1.5:1

Setup & Configuration

Requirements

  • PHP 7.4 or higher
  • MySQL/MariaDB database
  • API keys for AI model providers (Claude, OpenAI, etc.)
  • Binance API credentials for live trading
  • HTTPS enabled domain

Installation

# Clone repository
git clone https://github.com/yourusername/goat.git

# Configure database
mysql -u root -p < database/schema.sql

# Set up configuration
cp data/config.example.php data/config.php

# Edit configuration file with your API keys
nano data/config.php

# Set permissions
chmod 755 aiagent/
chmod 644 data/config.php
                    

Configuration

Edit data/config.php with your settings:

<?php
return [
    'site_enabled' => true,
    'github_link' => 'https://github.com/yourusername/goat',
    'twitter_link' => 'https://twitter.com/yourhandle',
    
    // AI Model API Keys
    'claude_api_key' => 'sk-ant-api03-...',
    'openai_api_key' => 'sk-...',
    'anthropic_version' => '2023-06-01',
    
    // Trading Configuration
    'binance_api_key' => 'your_binance_key',
    'binance_api_secret' => 'your_binance_secret',
    'max_position_exposure' => 0.65, // 65%
    'update_interval' => 30, // seconds
];
                    

Running the System

# Start the trading bot
php aiagent/trading_bot.php

# Run in background (Linux)
nohup php aiagent/trading_bot.php > logs/bot.log 2>>&1 &

# Monitor logs
tail -f logs/bot.log
                    

Support & Resources

Documentation

Comprehensive guides and tutorials

Read More →

API Reference

Complete API documentation

View API Docs →