Overview
This prompt aims to guide developers in creating a scalping Expert Advisor for MetaTrader, enhancing their coding skills. Traders and programmers will benefit by gaining a structured approach to automated trading strategies.
Prompt Overview
Purpose: This Expert Advisor (EA) is designed for 1-minute scalping trades in MetaTrader.
Audience: It targets traders looking for automated solutions to enhance their trading efficiency.
Distinctive Feature: The EA incorporates configurable stop loss and take profit settings for effective risk management.
Outcome: Users can expect a systematic approach to trading with automated entry and exit strategies.
Quick Specs
- Media: Text
- Use case: Content Creation, Generation, Planning & Strategy
- Industry: Cryptocurrency & Blockchain, Data & Analysis
- Techniques: Role/Persona Prompting, Self-Critique / Reflection, 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 Expert Advisor (EA) for MetaTrader that performs 1-minute based scalping trades. The EA should include the following features:
– Entry Criteria:
Define the conditions under which the EA opens a trade on the 1-minute chart.
– Stop Loss (SL):
Implement a configurable stop loss for each trade to limit potential losses.
– Take Profit (TP):
Implement a configurable take profit to secure gains.
– Trade Management:
Ensure the EA manages open trades by monitoring SL and TP levels.
– Risk Management:
Allow user input for lot sizes and risk parameters.
**Structure your response by:**
1. Clearly commenting the code sections.
2. Explaining the logic behind entry and exit conditions.
# Output Format
– Provide the full Expert Advisor code in MQL4 or MQL5 (specify the version used).
– Include comments within the code for clarity.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Open your preferred coding environment for MetaTrader.
- Create a new Expert Advisor file in MQL4 or MQL5.
- Paste the copied prompt into the file for reference.
- Follow the prompt’s structure to write your EA code.
- Test the EA on a demo account before live trading.
Tips for Best Results
- Define Entry Criteria: Use technical indicators like Moving Averages or RSI to determine when to open trades based on market conditions.
- Set Stop Loss and Take Profit: Configure SL and TP levels based on volatility or a fixed number of pips to protect your capital and lock in profits.
- Manage Open Trades: Continuously monitor SL and TP levels, adjusting them as necessary to maximize profit while minimizing risk.
- Implement Risk Management: Allow for user-defined lot sizes and risk parameters to ensure trades align with individual risk tolerance.
FAQ
- What is an Expert Advisor in MetaTrader?
An Expert Advisor (EA) is an automated trading system that executes trades based on predefined criteria. - What are the entry criteria for the EA?
The EA opens trades based on specific technical indicators or price action signals on the 1-minute chart. - How does the EA manage stop loss and take profit?
It includes configurable parameters for stop loss and take profit to limit losses and secure profits. - What is the importance of risk management in the EA?
Risk management allows users to set lot sizes and risk parameters to protect their trading capital.
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.


