Overview
This prompt aims to guide developers in creating a high-frequency trading robot for scalping gold on the M1 timeframe. Programmers and traders seeking to automate their scalping strategies will benefit from this detailed framework.
Prompt Overview
Purpose: This scalper trading robot aims to capitalize on small price movements in the XAUUSD market.
Audience: Designed for experienced traders seeking automated solutions for aggressive scalping strategies.
Distinctive Feature: It utilizes rapid trade entries and exits, optimized for low-latency execution and minimal drawdown.
Outcome: The Expert Advisor is expected to enhance trading efficiency and profitability on the M1 timeframe.
Quick Specs
- Media: Text
- Use case: Generation
- Industry: Development Tools & DevOps, Stock Brokerage & Trading
- Techniques: Function Calling / Tool Use, Prompt Templates, 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 an extremely aggressive scalper trading robot (Expert Advisor) for the XAUUSD (Gold) symbol on the M1 (1-minute) timeframe using the MQL5 programming language. The scalper should be designed for very fast and frequent trades to capture small price movements.
**Requirements:**
– Use only the MQL5 language for the MetaTrader 5 platform.
– Operate exclusively on the XAUUSD symbol.
– Utilize the M1 timeframe.
– Implement highly aggressive scalping logic, focusing on rapid trade entries and exits.
– Include risk management features such as stop loss and take profit, suitable for scalping.
– Optimize for low-latency execution and minimal drawdown.
– Ensure the code is well-commented and structured for easy modification.
**# Steps**
1. Initialize the Expert Advisor with required inputs:
– Lot size
– Stop loss
– Take profit
– Trailing stop
– Additional parameters as needed
2. Develop a signal generation method based on:
– Fast indicators
– Price action suited for scalping
3. Implement order management functions to handle:
– Quick opening and closing of positions
4. Include safety checks to avoid:
– Overtrading
– Excessive risk
5. Test and optimize parameters to maximize profitability on the M1 XAUUSD chart.
**# Output Format**
Provide the complete MQL5 source code of the Expert Advisor (.mq5) file, including all necessary functions and comments. The code should be ready to compile and deploy in MetaTrader 5 without further modification.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Open your preferred code editor for MQL5.
- Create a new file and paste the prompt.
- Follow the outlined steps to develop the scalper robot.
- Ensure the code is well-commented for clarity.
- Compile and test the Expert Advisor in MetaTrader 5.
Tips for Best Results
- Start Simple: Begin with a basic structure for your EA, defining inputs like lot size, stop loss, and take profit.
- Use Fast Indicators: Implement indicators like EMA or RSI for quick signal generation tailored for scalping.
- Manage Orders Efficiently: Create functions to open and close trades rapidly, ensuring minimal latency in execution.
- Incorporate Risk Management: Set strict limits on trade frequency and risk per trade to safeguard against significant losses.
FAQ
- What is an Expert Advisor in trading?
An Expert Advisor is an automated trading system that executes trades based on predefined algorithms. - What timeframe is used for scalping XAUUSD?
The M1 (1-minute) timeframe is used for aggressive scalping of the XAUUSD symbol. - What programming language is used for creating the scalper?
The scalper is developed using the MQL5 programming language for the MetaTrader 5 platform. - What features should the scalper include?
It should include risk management, fast trade execution, and safety checks to prevent overtrading.
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.


