Files
biggfish/verify.sh
T
sami7777 82c68fa8b0 Scalping strategy overhaul: bidirectional trading, oil/JPY focus
- Switch to oil stocks (USO, XLE, OXY, CVX, XOM, SLB, HAL, DVN, MPC, VLO)
- Add JPY/USD forex pairs for Japan targeting
- 7-action RL space: long, short, close (was 5 long-only actions)
- Bollinger Band mean-reversion scalp entries both directions
- 5-minute candles with 60-second cycles for scalping
- 35 features (added VWAP, fast RSI, fast ROC for scalping)
- Short position support in backtest, executor, and RL environment
- GA tuned for scalping: tighter SL/TP, shorter hold times

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 16:45:19 -07:00

115 lines
3.0 KiB
Bash

#!/bin/bash
# BIGGFISH Installation Verification Script
echo "🐟 BIGGFISH Installation Verification"
echo "======================================"
echo ""
# Check Python version
echo "📍 Checking Python version..."
python3 --version
if [ $? -ne 0 ]; then
echo "❌ Python 3 not found. Please install Python 3.9+"
exit 1
fi
echo "✅ Python OK"
echo ""
# Check directory structure
echo "📍 Checking directory structure..."
required_dirs=(
"src/trading"
"src/research"
"src/strategies"
"src/reporting"
"config"
"data/stocks"
"data/reports"
"data/trades"
"logs"
"tests"
)
all_good=true
for dir in "${required_dirs[@]}"; do
if [ -d "$dir" ]; then
echo "$dir"
else
echo "$dir - MISSING"
all_good=false
fi
done
if [ "$all_good" = false ]; then
echo "❌ Some directories are missing"
exit 1
fi
echo "✅ Directory structure OK"
echo ""
# Check config file
echo "📍 Checking configuration..."
if [ ! -f "config/config.json" ]; then
echo "⚠️ config/config.json not found"
echo " Run: cp config/config.example.json config/config.json"
echo " Then add your Alpaca API keys"
else
echo "✅ config.json exists"
# Check if keys are set
if grep -q "YOUR_ALPACA" config/config.json; then
echo "⚠️ Please update config.json with your Alpaca API keys"
else
echo "✅ API keys appear to be configured"
fi
fi
echo ""
# Check Python packages
echo "📍 Checking Python dependencies..."
if pip list | grep -q alpaca-py; then
echo "✅ alpaca-py installed"
else
echo "❌ alpaca-py not installed"
echo " Run: pip install -r requirements.txt"
fi
if pip list | grep -q yfinance; then
echo "✅ yfinance installed"
else
echo "❌ yfinance not installed"
echo " Run: pip install -r requirements.txt"
fi
if pip list | grep -q loguru; then
echo "✅ loguru installed"
else
echo "❌ loguru not installed"
echo " Run: pip install -r requirements.txt"
fi
echo ""
# Final status
echo "======================================"
echo "🎯 Next Steps:"
echo ""
if [ ! -f "config/config.json" ]; then
echo "1. Copy config: cp config/config.example.json config/config.json"
echo "2. Edit config.json and add your Alpaca paper trading API keys"
echo "3. Install packages: pip install -r requirements.txt"
echo "4. Test connection: python src/cli.py market"
elif grep -q "YOUR_ALPACA" config/config.json 2>/dev/null; then
echo "1. Edit config.json and add your Alpaca paper trading API keys"
echo "2. Test connection: python src/cli.py market"
echo "3. Run your first scan: python src/cli.py scan"
else
echo "✅ You're ready to go!"
echo ""
echo "Try these commands:"
echo " python src/cli.py market # Check market status"
echo " python src/cli.py scan # Scan for opportunities"
echo " python src/cli.py status # Check portfolio"
echo " python src/main.py # Start the trading system"
fi
echo ""