Overview
This prompt aims to guide developers in creating a machine learning trading bot focused on price action and adaptability. Programmers and traders will benefit from the structured approach to building a robust trading system.
Prompt Overview
Purpose: The bot aims to enhance trading performance by leveraging machine learning and price action analysis.
Audience: Designed for traders and developers seeking to automate trading strategies with advanced machine learning techniques.
Distinctive Feature: It integrates multiple trading strategies while continuously learning from market data for improved decision-making.
Outcome: Users will benefit from a robust trading bot that adapts to market conditions and provides clear insights into its operations.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Consulting (Management, Strategy), Fintech & Digital Banking, Machine Learning & Data Science
- Techniques: Decomposition, Self-Consistency, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
Create a robust machine learning trading bot that primarily focuses on price action concepts while adapting multiple trading strategies to optimize performance across various market conditions.
The bot should utilize machine learning techniques to analyze historical price data, detect patterns, and make informed trading decisions. It must incorporate the following capabilities:
– Price Action Focus: Use price action as the fundamental basis, identifying key patterns such as:
– Support and resistance levels
– Candlestick formations
– Breakouts
– Trend continuations
– Multiple Trading Strategies: Integrate various trading strategies, including:
– Trend-following approaches
– Mean-reversion strategies
– Enhance adaptability to market changes
– Continuous Learning: Learn and adapt from new market data to improve accuracy and robustness over time.
– Risk Management Techniques: Implement risk management strategies, including:
– Stop-loss
– Take-profit
– Position sizing
– Drawdown control
– Backtesting and Live Trading: Support both backtesting on historical data and live trading simulations.
– Explainability: Provide insights into the decisions made by the model to enhance user trust and understanding.
# Steps
1. Data Collection: Collect and preprocess historical price data for the target market(s).
2. Feature Engineering: Engineer features focused on price action indicators and other relevant technical metrics.
3. Model Selection: Select and train machine learning models capable of capturing complex market dynamics, such as:
– Ensemble methods
– Deep learning architectures
4. Strategy Integration: Integrate multiple trading strategies and develop a mechanism to adaptively select or combine them based on current market conditions.
5. Risk Management Implementation: Implement risk management rules to guard against excessive losses.
6. Backtesting: Backtest the bot extensively on diverse market scenarios to evaluate performance.
7. Optimization: Optimize and tune the model and strategies based on backtesting results.
8. Deployment: Deploy the bot for live simulation or real trading with monitoring and update capabilities.
# Output Format
Provide the design and code components of the trading bot in a clear, modular, and well-documented manner. The output should include:
– Data collection and preprocessing scripts
– Feature engineering explanations and code
– Machine learning model training and evaluation code
– Trading strategy implementations
– Risk management modules
– Backtesting and simulation framework
– Deployment guidelines and usage instructions
Ensure clarity and comments for all code to facilitate understanding and modification.
# Notes
Prioritize adaptability and robustness in various market environments. Make the bot extensible for incorporating new strategies or improving machine learning models in the future.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Paste it into your preferred coding environment.
- Follow the outlined steps to develop the trading bot.
- Ensure each section is well-documented and modular.
- Test the bot thoroughly using backtesting methods.
- Deploy the bot and monitor its performance continuously.
Tips for Best Results
- Data Collection: Gather and preprocess historical price data for accurate analysis.
- Feature Engineering: Create features based on price action indicators to enhance model performance.
- Model Training: Select and train advanced machine learning models to capture market dynamics effectively.
- Risk Management: Implement robust risk management strategies to minimize potential losses during trading.
FAQ
- What is the primary focus of the trading bot?
The bot primarily focuses on price action concepts, identifying key patterns for trading. - How does the bot adapt to market conditions?
It integrates multiple trading strategies and learns from new market data for adaptability. - What risk management techniques are implemented?
Techniques include stop-loss, take-profit, position sizing, and drawdown control. - What is the purpose of backtesting?
Backtesting evaluates the bot's performance on historical data before live trading.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


