Skip to main content

🚀 MeridianAlgo Smart Trader

Ultra-Accurate AI Stock Analysis with Universal GPU Support

PyPI version Python 3.8+ License: MIT GPU Support

Professional-grade stock analysis powered by ensemble machine learning with universal GPU acceleration. Features advanced volatility spike detection and real-time technical analysis.

✨ Key Features

  • 🎯 Ultra-Accurate Predictions: Ensemble ML models (LSTM + Transformer + XGBoost)
  • 🔥 Universal GPU Support: AMD • Intel • NVIDIA • Apple Silicon
  • ⚡ Volatility Spike Detection: Predict market turbulence before it happens
  • 📊 Real-time Analysis: Live market data with technical indicators
  • 🎨 Clean Output: Simplified, essential information only
  • 🚀 Easy Integration: Simple Python API and CLI

🚀 Quick Start

Installation

pip install meridianalgo-smarttrader

Command Line Usage

# Analyze Apple stock
smart-trader AAPL

# Custom parameters
smart-trader TSLA --days 90 --epochs 15

# Show GPU information
smart-trader --gpu-info

Python API Usage

from meridianalgo import SmartTrader, analyze_stock

# Simple analysis
result = analyze_stock('AAPL')
print(f"Current: ${result['current_price']:.2f}")
print(f"Tomorrow: ${result['predictions'][0]:.2f}")

# Advanced usage
trader = SmartTrader(verbose=True)
analysis = trader.analyze('TSLA', days=60, epochs=10)

# Check volatility spike risk
vol_risk = analysis['volatility_spike']['spike_probability']
if vol_risk > 60:
    print("⚠️ High volatility spike risk detected!")

📊 Sample Output

🚀 AAPL Analysis
Device: CPU (8 threads)

┌────────────┬──────────┬──────────────────┐
│ Metric     │ Value    │ Info             │
├────────────┼──────────┼──────────────────┤
│ Current    │ $213.96  │ Real-time        │
│ Day +1     │ $216.45  │ +1.2%            │
│ Day +2     │ $218.30  │ +2.0%            │
│ Day +3     │ $215.80  │ +0.9%            │
│ Confidence │ 84%      │ Model reliability│
│ Vol Risk   │ 23%      │ ✅ Low risk      │
└────────────┴──────────┴──────────────────┘

🔥 Universal GPU Support

Smart Trader automatically detects and optimizes for your GPU:

Vendor Technology Status
🟢 NVIDIA CUDA ✅ Supported
🔴 AMD ROCm/DirectML ✅ Supported
🔵 Intel XPU ✅ Supported
🍎 Apple MPS ✅ Supported

GPU Setup

# NVIDIA GPU
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

# AMD GPU (Windows)
pip install torch-directml

# Intel GPU
pip install intel-extension-for-pytorch

# Apple Silicon (automatic)
pip install torch torchvision torchaudio

⚡ Volatility Spike Detection

Smart Trader's advanced algorithm analyzes historical volatility patterns to predict future market turbulence:

from meridianalgo import detect_volatility_spikes
import yfinance as yf

# Get stock data
data = yf.Ticker('AAPL').history(period='1y')

# Detect volatility spikes
spike_info = detect_volatility_spikes(data)

print(f"Spike Probability: {spike_info['spike_probability']:.1f}%")
print(f"Expected in: {spike_info['expected_spike_days']} days")
print(f"Risk Level: {spike_info['risk_level']}")

🎯 Advanced Features

Ensemble Models

  • LSTM: Captures long-term dependencies
  • Transformer: Attention-based pattern recognition
  • XGBoost: Gradient boosting for robustness

Technical Indicators

  • RSI (Relative Strength Index)
  • MACD (Moving Average Convergence Divergence)
  • Bollinger Bands
  • Volume analysis

Risk Management

  • Volatility spike prediction
  • Market regime detection
  • Confidence scoring
  • Position sizing recommendations

📈 Performance

Metric CPU GPU
Training Time (10 epochs) ~2-3 seconds ~0.5-1 seconds
Batch Size 32 64+
Memory Usage 2-4 GB RAM GPU VRAM
Accuracy High Higher

🛠️ Development

Local Installation

git clone https://github.com/MeridianAlgo/In-Python.git
cd In-Python
pip install -e .

Running Tests

pytest tests/

Building Package

python setup.py sdist bdist_wheel
twine upload dist/*

📚 Documentation

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Links

🏆 About MeridianAlgo

MeridianAlgo specializes in advanced financial AI solutions. Our mission is to democratize professional-grade trading tools through cutting-edge machine learning and universal GPU acceleration.


Made with ❤️ by MeridianAlgo

Empowering traders with AI-driven insights

Metadata

Release files for meridianalgo-smarttrader 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for meridianalgo-smarttrader 1.0.0
File Size Uploaded
meridianalgo_smarttrader-1.0.0.tar.gz 79.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for meridianalgo-smarttrader 1.0.0
File Interpreter ABI Platform
meridianalgo_smarttrader-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 97.4 kB

Release files / meridianalgo_smarttrader-1.0.0.tar.gz

Download URL meridianalgo_smarttrader-1.0.0.tar.gz
Size 79.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e11db48fe820e5df1b07ee265243f47f267111d2202aebf02a28f1b630bd76fe
BLAKE2b-256 checksum
How to use checksums
f805d8786d225ef41d35c581af9b8cbabfdbe1961eb9aad0e4ed9b4d06c96fbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / meridianalgo_smarttrader-1.0.0-py3-none-any.whl

Download URL meridianalgo_smarttrader-1.0.0-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
636366d625c850844ea5d7f202e0b002429bd01ad540ad9e8103b0db9cb481a6
BLAKE2b-256 checksum
How to use checksums
70587a6cf040d5a8b23f1c2c968c4fc97ea2e84ebd7d181743eaddaaeff02035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page