Overview
This prompt aims to guide developers in creating a high-frequency trading bot for XAUUSD on the MT5 platform. Programmers and traders seeking to enhance their trading strategies will benefit from this detailed specification and implementation plan.
Prompt Overview
Purpose: The purpose of this document is to outline a comprehensive plan for developing a high-frequency trading bot for XAUUSD.
Audience: This specification is intended for professional trading developers familiar with MetaTrader 5 and algorithmic trading strategies.
Distinctive Feature: The bot will utilize aggressive trading strategies combined with robust risk management to maximize profit potential.
Outcome: The expected outcome is a fully functional trading bot that effectively executes trades while minimizing risks on the MT5 platform.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Property Development, Stock Brokerage & Trading
- Techniques: Decomposition, Plan-Then-Solve, 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 detailed specification and implementation plan for an aggressive trading bot designed for the XAUUSD (Gold vs. US Dollar) pair on the MetaTrader 5 (MT5) platform.
The bot should focus on high-frequency or high-risk trading strategies aimed at achieving rapid profits, while also incorporating risk management features to mitigate large losses.
**Key Requirements:**
– Strategy Description:
Clearly explain the trading strategies used, such as:
– Scalping
– Momentum
– Breakout
– Trend-following
Additionally, detail how aggressiveness is incorporated.
– Technical Indicators:
Include specific indicators or signals used to trigger trades, such as:
– RSI
– MACD
– Moving averages
– Trade Execution:
Describe entry and exit criteria, including:
– Stop loss
– Take profit
– Possible trailing stops
– Risk Management:
Incorporate money management rules, position sizing, and maximum drawdown limits.
– Performance Metrics:
Suggest metrics for evaluating bot performance, including:
– Win rate
– Profit factor
– Maximum drawdown
– MT5 Implementation:
Provide guidance on developing and deploying the bot within MT5, including considerations for the coding language (MQL5).
**Steps:**
1. Define the trading strategy and aggressiveness level.
2. Choose and justify technical indicators.
3. Establish trade entry/exit rules and risk management parameters.
4. Outline backtesting methodology to validate the strategy.
5. Describe a step-by-step implementation approach for MQL5 on MT5.
**Output Format:**
Present the response as a comprehensive, structured document including the following sections:
– Introduction
– Trading Strategy
– Indicators Employed
– Entry and Exit Rules
– Risk Management
– Backtesting Strategy
– MT5 Implementation Plan
– Conclusion
Use clear, specific language suitable for a professional trading developer audience. Include examples or pseudocode snippets where helpful to illustrate concepts.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Paste the prompt into a text editor or document.
- Review the key requirements for clarity and completeness.
- Use the steps to structure your response accordingly.
- Ensure to include examples or pseudocode snippets as needed.
- Format the final document for a professional audience.
Tips for Best Results
- Define Strategy: Focus on scalping and momentum strategies to capitalize on small price movements, incorporating aggressive entry and exit points for rapid trades.
- Select Indicators: Utilize RSI for overbought/oversold signals, MACD for trend confirmation, and moving averages for identifying entry/exit points, ensuring a robust decision-making framework.
- Establish Rules: Set strict entry criteria based on indicator signals, with stop loss at 1% of account balance and take profit at 2%, including trailing stops to lock in profits as trades move favorably.
- Implement Risk Management: Apply a position sizing strategy that limits risk to 1% per trade, with a maximum drawdown limit of 10% to protect capital and ensure longevity of the trading bot.
FAQ
- What is the primary strategy for the trading bot?
The bot will use scalping, momentum, breakout, and trend-following strategies for aggressive trading. - Which technical indicators will the bot utilize?
The bot will utilize RSI, MACD, and moving averages to trigger trades and identify market conditions. - What are the entry and exit criteria for trades?
Entry criteria include indicator signals; exit criteria include stop loss, take profit, and trailing stops. - How will risk management be implemented in the bot?
Risk management will include position sizing, maximum drawdown limits, and strict money management rules.
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.


