A professional full-stack cryptocurrency breakout scanner with real-time monitoring, TradingView integration, and dynamic top coins detection. This application provides comprehensive breakout pattern detection across 330+ cryptocurrency pairs with configurable scanning modes and alert systems.
- Features
- Prerequisites
- Installation
- Configuration
- Running the Application
- API Documentation
- Features Overview
- Architecture
- Troubleshooting
- Contributing
- Real-time Breakout Detection - Monitors 330+ cryptocurrency pairs
- Multiple Scan Modes - FAST (1.3%), MEDIUM (1.8%), SLOW (2.4%) threshold modes
- Dynamic Top Coins - Automatically fetches top-performing coins based on volatility and liquidity
- Volume Spike Detection - Configurable volume ratio thresholds
- TradingView Integration - Generate Pine Script indicators for direct TradingView use
- Flexible Configuration - Customizable breakout parameters and thresholds
- Alert System - Visual alerts with optional sound notifications
- Discord Integration - Send breakout alerts to Discord channels
- Pine Script Generation - Dynamic indicator code creation
- Professional UI - TradingView-style dark theme interface
- Real-time Charts - Dynamic candlestick charts with breakout overlays
- Volume Analysis - Volume histogram and spike detection
- Performance Metrics - Scan statistics and breakout tracking
- Top Coins Ranking - Dynamic coin selection based on market performance
Before installing the Resonance.ai Breakout Scanner, ensure you have the following installed:
- Node.js (v18.0.0 or higher)
- Download from: https://nodejs.org/
- Verify installation:
node --version
- npm (comes with Node.js)
- Verify installation:
npm --version
- Verify installation:
- PostgreSQL (v13 or higher)
- Download from: https://www.postgresql.org/download/
- Or use a cloud service like Neon, Supabase, or AWS RDS
- Operating System: Windows 10+, macOS 10.15+, or Linux
- RAM: Minimum 4GB (8GB recommended)
- Disk Space: 500MB free space
- Internet Connection: Required for real-time cryptocurrency data
- Download the
resonance-scanner-v12.5.zipfile - Extract to your desired directory:
unzip resonance-scanner-v12.5.zip cd resonance-breakout-scanner
# Install all required packages
npm install
# Verify installation
npm list --depth=0-
Create a new database:
CREATE DATABASE resonance_scanner; CREATE USER scanner_user WITH PASSWORD 'your_secure_password'; GRANT ALL PRIVILEGES ON DATABASE resonance_scanner TO scanner_user;
-
Set your database URL in environment variables (see Configuration section)
- Sign up for a free account at Neon or Supabase
- Create a new PostgreSQL database
- Copy the connection string provided
-
Create a
.envfile in the project root:cp .env.example .env
-
Edit
.envwith your configuration:# Database Configuration DATABASE_URL="postgresql://username:password@host:port/database" # Application Settings NODE_ENV=production PORT=5000 # Optional: Discord Integration DISCORD_WEBHOOK_URL="your_discord_webhook_url" # Optional: Email Alerts SMTP_HOST="smtp.gmail.com" SMTP_PORT=587 SMTP_USER="your_email@gmail.com" SMTP_PASS="your_app_password"
# Push the database schema
npm run db:push
# If you encounter issues, force the push
npm run db:push --force| Variable | Description | Required | Default |
|---|---|---|---|
DATABASE_URL |
PostgreSQL connection string | Yes | - |
NODE_ENV |
Environment mode | No | development |
PORT |
Server port | No | 5000 |
DISCORD_WEBHOOK_URL |
Discord webhook for alerts | No | - |
SMTP_HOST |
Email server host | No | - |
SMTP_PORT |
Email server port | No | 587 |
SMTP_USER |
Email username | No | - |
SMTP_PASS |
Email password | No | - |
The application includes a configuration panel where you can adjust:
- Scan Modes: FAST, MEDIUM, or SLOW
- Breakout Thresholds: Custom percentage thresholds
- Volume Ratios: Minimum volume spike ratios
- Alert Settings: Sound, Discord, email notifications
- Visual Settings: Chart colors and indicators
# Start in development mode with hot reload
npm run dev
# The application will be available at:
# http://localhost:5000# Build the application
npm run build
# Start the production server
npm start
# The application will be available at:
# http://localhost:5000# Build Docker image
docker build -t resonance-scanner .
# Run with Docker Compose
docker-compose up -dRetrieve all scanner configurations
{
"configurations": [
{
"id": "1",
"scanMode": "fast",
"priceChangeThreshold": 1.3,
"volumeRatio": 2.0,
"alertsEnabled": true
}
]
}Create a new configuration
{
"scanMode": "fast",
"priceChangeThreshold": 1.3,
"volumeRatio": 2.0,
"alertsEnabled": true
}Retrieve breakout alerts
{
"alerts": [
{
"id": "1",
"pair": "BTC-USD",
"priceChange": 2.5,
"volume": 1500000,
"timestamp": "2024-01-01T12:00:00Z"
}
]
}Fetch top performing coins
{
"coins": [
{
"product_id": "BTC-USD",
"score": 10.5,
"metrics": {
"avg_usd_per_min": 50000,
"last_close": 45000,
"ret_stdev": 0.02
}
}
],
"count": 50,
"timestamp": "2024-01-01T12:00:00Z"
}Refresh top coins with custom parameters
{
"topN": 50,
"minUsdPerMin": 2000,
"maxSpreadPct": 0.005
}Generate TradingView Pine Script code
{
"code": "// Generated Pine Script code...",
"version": "5",
"timestamp": "2024-01-01T12:00:00Z"
}- Real-time Status: Live scanning status indicator
- Scan Statistics: Current pair, scan count, breakout count
- Configuration Panel: Adjust all scanner parameters
- Alert History: View recent breakout detections
- Dynamic Ranking: Real-time top 50 coin ranking
- Filtering Options: Volume, spread, and price filters
- Performance Metrics: Volatility scores and liquidity data
- Scanner Integration: Apply top coins to scanner automatically
- Candlestick Charts: Real-time price data visualization
- Breakout Overlays: Visual breakout signal indicators
- Volume Analysis: Volume histogram and spike detection
- Multiple Timeframes: 1m, 5m, 15m, 1h chart intervals
- Visual Alerts: In-app breakout notifications
- Sound Notifications: Audio alerts for breakouts
- Discord Integration: Send alerts to Discord channels
- Email Notifications: Email alert delivery
- Framework: React 18 with TypeScript
- UI Library: shadcn/ui components with Radix UI
- Styling: Tailwind CSS with dark theme
- State Management: TanStack Query for server state
- Routing: Wouter for client-side routing
- Runtime: Node.js with Express.js
- Language: TypeScript with ES modules
- Database: PostgreSQL with Drizzle ORM
- Real-time Data: Coinbase Advanced API integration
-- Breakout Configurations
CREATE TABLE breakout_configurations (
id SERIAL PRIMARY KEY,
scan_mode VARCHAR(20),
price_change_threshold DECIMAL,
volume_ratio DECIMAL,
alerts_enabled BOOLEAN
);
-- Breakout Alerts
CREATE TABLE breakout_alerts (
id SERIAL PRIMARY KEY,
pair VARCHAR(20),
price_change DECIMAL,
volume BIGINT,
timestamp TIMESTAMP
);
-- Pine Script Code
CREATE TABLE pine_script_code (
id SERIAL PRIMARY KEY,
code TEXT,
configuration_id INTEGER,
created_at TIMESTAMP
);# Check database URL format
echo $DATABASE_URL
# Test database connection
npm run db:push
# Force schema update if needed
npm run db:push --force# Find process using port 5000
lsof -i :5000
# Kill the process
kill -9 <PID>
# Or use a different port
PORT=3000 npm run dev# Clear npm cache
npm cache clean --force
# Delete node_modules and reinstall
rm -rf node_modules package-lock.json
npm installIf you encounter rate limiting from Coinbase:
- Reduce scanning frequency in configuration
- Implement request caching
- Consider using multiple API keys
-- Add indexes for better query performance
CREATE INDEX idx_alerts_timestamp ON breakout_alerts(timestamp);
CREATE INDEX idx_alerts_pair ON breakout_alerts(pair);- Monitor memory usage with
npm run stats - Reduce scan frequency for lower memory usage
- Implement data cleanup for old alerts
# View application logs
npm run logs
# Enable debug mode
DEBUG=* npm run dev
# Database query logging
DATABASE_LOGGING=true npm run dev- Fork the repository
- Create a feature branch:
git checkout -b feature/new-feature - Install dependencies:
npm install - Start development server:
npm run dev - Make your changes and test
- Submit a pull request
- Use TypeScript for all new code
- Follow ESLint configuration
- Use Prettier for code formatting
- Add tests for new features
# Run unit tests
npm test
# Run integration tests
npm run test:integration
# Run all tests with coverage
npm run test:coverageThis project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
- Create an issue on GitHub
- Join our Discord community
- Email: support@resonance.ai
- Coinbase Advanced Trade API for real-time data
- TradingView for Pine Script inspiration
- React and TypeScript communities
- All contributors and users
Happy Trading! ππ
Resonance.ai Breakout Scanner v12.5 - Professional Cryptocurrency Breakout Detection