Nija

Quick Start: Profit Optimization on Coinbase & Kraken

🚀 5-Minute Setup

What You’ll Get

Expected Results


Quick Setup

# Run quick start script
python3 scripts/enable_profit_optimization.py

# Add your API keys to .env (edit the file)
# - COINBASE_API_KEY
# - COINBASE_API_SECRET
# - KRAKEN_PLATFORM_API_KEY (optional)
# - KRAKEN_PLATFORM_API_SECRET (optional)

# Restart NIJA
./start.sh

Option 2: Manual

# Copy template
cp .env.profit_optimized .env

# Edit .env and add your API credentials

# Restart NIJA
./start.sh

Verify It’s Working

Check your logs for these confirmations:

✅ Enhanced entry scoring: ENABLED (0-100 weighted scoring)
✅ Regime detection: ENABLED (trending/ranging/volatile)
✅ Stepped profit-taking: ENABLED (partial exits at multiple levels)
✅ Position sizing: 2%-10% (capital efficient)

When you see a trade:

🎯 Entry signal: LONG ETH-USD
   Score: 72/100 (VERY GOOD)    ← 0-100 scoring
   Regime: TRENDING              ← Regime detection
   Position: $120 (6% of capital)

When taking profit:

💰 Partial exit: ETH-USD
   Exit level: 1.5% profit       ← Stepped exits
   Profit: $18 locked in
   Remaining: 90% still running

Key Configuration

All settings in .env:

# Core optimizations
USE_ENHANCED_SCORING=true
USE_REGIME_DETECTION=true
ENABLE_STEPPED_EXITS=true
MIN_ENTRY_SCORE_THRESHOLD=60  # 60/100 minimum

# Position sizing
MAX_POSITION_PCT=0.10  # 10% max (was 20%)

# Multi-exchange
MULTI_BROKER_INDEPENDENT=true
COINBASE_CAPITAL_ALLOCATION=0.50  # 50%
KRAKEN_CAPITAL_ALLOCATION=0.50    # 50%

# Fee optimization (exchange-specific profit targets)
COINBASE_MIN_PROFIT_TARGET=0.016   # 1.6% (covers 1.4% fees)
KRAKEN_MIN_PROFIT_TARGET=0.008     # 0.8% (covers 0.67% fees)

What’s Different

Before (Standard v7.1)

After (Profit Optimized)


Troubleshooting

“Configuration not loading”

“Enhanced scoring not available”

“No trades executing”

“Kraken not routing”


Documentation


Support

Questions? Check:

  1. PROFIT_OPTIMIZATION_GUIDE.md - Comprehensive documentation
  2. README.md - General setup and configuration
  3. GitHub Issues - Community support

Ready? Run the quick start script and start profiting smarter!

python3 scripts/enable_profit_optimization.py