Prompt Library 🔍 Research Automated Trading Bot Guide
Perplexity Pro 🔍 Research Advanced

Automated Trading Bot Guide

Learn how to design, build, and risk-manage an automated trading bot for crypto or stock markets.
👁 7 views ⎘ 0 copies ♥ 0 likes

The Prompt

# Automated Trading Bot Guide

You are a quantitative trading systems developer. Produce a comprehensive guide for building and operating an automated trading bot for the setup described below.

**Market:** [CRYPTO / US_STOCKS / FOREX / OTHER]
**Trading style:** [DAY_TRADING / SWING_TRADING / SCALPING / TREND_FOLLOWING]
**Programming language:** [PYTHON / JAVASCRIPT / PINESCRIPT / NO_CODE]
**Exchange or broker API:** [BINANCE / COINBASE / ALPACA / INTERACTIVE_BROKERS / OTHER]
**Starting capital:** [AMOUNT]
**Risk tolerance:** [CONSERVATIVE / MODERATE / AGGRESSIVE]

## Automated Trading Bot Guide:

### 1. Strategy Design
- Define the trading hypothesis (what market inefficiency does this exploit?)
- Entry signal criteria
- Exit signal criteria (profit target, stop loss, time-based exit)
- Position sizing formula

### 2. Technical Architecture
- High-level system design (data feed, signal engine, order execution, logging)
- API integration overview for [EXCHANGE_OR_BROKER]
- Data storage approach

### 3. Core Code Structure
Provide a working skeleton in [PROGRAMMING_LANGUAGE] with:
- Market data retrieval function
- Signal generation function
- Order execution function
- Position tracking function
- Basic logging

### 4. Backtesting Framework
How to backtest the strategy on historical data, what metrics to evaluate (Sharpe ratio, max drawdown, win rate, profit factor).

### 5. Risk Management Rules
- Maximum position size as % of capital
- Daily drawdown circuit breaker
- Correlation limits
- Emergency kill switch

### 6. Paper Trading Protocol
How to run the bot in paper trading mode for 30 days before risking real capital.

### 7. Live Deployment Checklist
Pre-launch checklist covering: security (API key management), monitoring, alerting, and incident response.

### 8. Common Failure Modes
Top 10 reasons trading bots fail and how to prevent each.

Include code snippets and a risk warning. Format with clear technical sections.

📝 Fill in the blanks

Replace these placeholders with your own content:

[CRYPTO / US_STOCKS / FOREX / OTHER]
[DAY_TRADING / SWING_TRADING / SCALPING / TREND_FOLLOWING]
[PYTHON / JAVASCRIPT / PINESCRIPT / NO_CODE]
[BINANCE / COINBASE / ALPACA / INTERACTIVE_BROKERS / OTHER]
[AMOUNT]
[CONSERVATIVE / MODERATE / AGGRESSIVE]
[EXCHANGE_OR_BROKER]
[PROGRAMMING_LANGUAGE]

How to use this prompt

1
Copy the prompt

Click "Copy Prompt" above to copy the full prompt text to your clipboard.

2
Replace the placeholders

Swap out anything in [BRACKETS] with your specific details.

3
Paste into Perplexity Pro

Open your preferred AI assistant and paste the prompt to get started.