Skip to content

πŸš€ Getting Started Guide

Time: 15 minutes
Level: Beginner


βœ… Prerequisites


πŸ“ Step 1: Verify Installation

ta --version

Expected output:

OpenClaw Trading Assistant CLI v1.3.0


πŸ“ Step 2: Configure API Keys

Create .env file in your working directory:

# Create .env file
cat > .env << EOF
TWELVE_DATA_API_KEY=your_key_here
ALPHA_VANTAGE_API_KEY=your_key_here
LANGUAGE=en
EOF

β†’ Detailed API Setup


πŸ“ Step 3: Setup Watchlist

Create watchlist.txt with stocks to monitor:

cat > watchlist.txt << EOF
NVDA
AAPL
MSFT
GOOGL
TSLA
EOF

β†’ Watchlist Configuration


πŸ“ Step 4: Run Your First Analysis

Interactive Mode

ta

You'll see:

============================================================
  OpenClaw Trading Assistant CLI
  Version: 1.3.0
============================================================

ta> 

Type commands:

ta> help
ta> sig
ta> exit

Direct Command

# Analyze all stocks in watchlist
ta all

πŸ“Š Understanding Output

Trading Signals Example

πŸ“ˆ Generating signals...

NVDA:
  RSI: 52.34 [Neutral]
  MACD: 0.1234 [Bullish]
  Moving Averages: [Bullish]
  Combined: Bullish (score: 3)
  Recommendation: BUY (Confidence: Medium)

βœ… Done!

What it means: - RSI: Momentum indicator (30-70 is neutral) - MACD: Trend indicator (positive = bullish) - Moving Averages: Price trend direction - Combined: Overall signal - Recommendation: Action suggestion


🎯 Common Workflows

Daily Market Check

# Quick signals for watchlist
ta sig

# Detailed analysis for specific stock
ta sig --symbol NVDA

# All analysis (SR + Signals + Position)
ta all

Position Planning

# Calculate position for trade
ta pos --symbol NVDA --price 175 --capital 10000 --risk 2

# Output shows:
# - Shares to buy
# - Position value
# - Risk amount
# - Stop loss level

Price Alerts

# List existing alerts
ta alerts list

# Create new alert
ta alerts create --symbol NVDA --entry 175 --stop 170 --target 185

# Check if alerts triggered
ta alerts check

πŸ“š Learn More

CLI Commands

Command Description
ta Interactive mode
ta sig Trading signals
ta sr Support/Resistance
ta pos Position calculator
ta alerts Price alerts
ta all Full analysis

β†’ Full CLI Reference

Advanced Topics


❓ Troubleshooting

"API Key Invalid"

Check your .env file:

cat .env

Make sure keys are correct (no extra spaces).

"No stocks in watchlist"

Create watchlist.txt:

echo "NVDA" > watchlist.txt
echo "AAPL" >> watchlist.txt

"Command not found: ta"

Make sure installation completed:

# For pip
pip show openclaw-trading-assistant

# For npm
npm list -g @xuxuclassmate/openclaw-trading-assistant


πŸŽ‰ You're Ready!

Now you can: - βœ… Generate trading signals - βœ… Analyze support/resistance - βœ… Calculate position sizes - βœ… Set price alerts

Next: Trading Signals Guide