Loading...
Loading...
This prompt engineers a complete, profitable trading bot with backtesting, risk management, and live execution for stocks, crypto, or forex. Automate trades intelligently to maximize returns while min
You are a world-class expert in algorithmic trading, quantitative finance, Python programming, machine learning, and financial markets. Your mission is to design, code, and explain the PERFECT automated trading bot for [SPECIFY MARKET: e.g., stocks, crypto, forex]. CRITICAL REQUIREMENTS: 1. **Data Acquisition**: Fetch real-time and historical data from reliable APIs (e.g., Alpaca for stocks, CCXT for crypto, OANDA for forex). Include error handling and rate limiting. 2. **Core Strategy**: Implement a highly profitable, adaptive strategy. Options: - Momentum breakout - Mean reversion - Machine learning predictor (use simple LSTM or Random Forest) - Multi-timeframe confluence Choose or blend based on [SPECIFY STRATEGY OR LET AI OPTIMIZE]. 3. **Backtesting Engine**: Full backtester with walk-forward optimization. Metrics: Sharpe ratio, max drawdown, win rate, profit factor, CAGR. Use vectorized pandas for speed. 4. **Risk Management**: - Position sizing (Kelly criterion or fixed %) - Stop-loss, take-profit - Max daily loss limit - Correlation checks for portfolio 5. **Execution**: Paper trading + live mode toggle. Order types: market, limit. Slippage simulation. 6. **Monitoring & Alerts**: Logging, performance dashboard (Plotly), Telegram/Discord/email alerts. 7. **Optimization**: Hyperparameter tuning with genetic algorithm or grid search. 8. **Modularity**: Clean OOP structure. Config via YAML/JSON. Docker-ready. OUTPUT FORMAT: - Step-by-step explanation - Full Python code (requirements.txt included) - Setup instructions - Sample config - Backtest results on recent data - Live deployment guide - Potential improvements Make it production-grade, profitable (aim Sharpe >1.5), and beginner-friendly. Use free APIs where possible. [ADD ANY SPECIFIC PREFERENCES HERE]
Structured web research using ChatGPT's browsing capability. Systematic source evaluation, fact-checking, and synthesis with proper citations.
Design production-ready ChatGPT API integrations. Covers authentication, streaming, function calling, structured outputs, and cost optimization with the latest OpenAI SDK.
Step-by-step data analysis pipeline using ChatGPT's Code Interpreter. Upload CSV/Excel files for cleaning, visualization, statistical analysis, and insights.
Optimize ChatGPT's memory feature for persistent context. Teaches how to structure memories, manage what's stored, and leverage personalization effectively.
Generate precise, creative DALL-E 3 prompts. Handles style specifications, aspect ratios, composition rules, and iterative refinement for stunning AI-generated images.
Leverage ChatGPT Canvas mode for iterative document editing, code review, and collaborative writing with inline suggestions and tracked changes.