Overview
This prompt aims to guide developers in creating a sophisticated trading algorithm for MetaTrader platforms. Programmers and traders will benefit from the detailed specifications and structured approach to building an effective Expert Advisor.
Prompt Overview
Purpose: This Expert Advisor aims to automate fast scalping strategies for continuous trading in MetaTrader platforms.
Audience: It is designed for experienced traders seeking to enhance their trading efficiency and success rates.
Distinctive Feature: The EA operates 24/7, trading multiple currency pairs while utilizing event-based strategies for optimal performance.
Outcome: Users can expect a high win rate, maximizing gains and minimizing losses through robust trade management features.
Quick Specs
- Media: Text
- Use case: Generation
- Techniques: Prompt Templates, Source-Grounded Verification
- Models: ChatGPT, Claude, Gemini AI
- 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 advanced Expert Advisor (EA) for MetaTrader 4 and MetaTrader 5 that focuses on fast scalping strategies. The EA should include the following features:
– Operate continuously 24/7, ensuring always active trading.
– Automatically trade on every available currency pair.
– Implement trading triggered by significant events and trading sessions.
– Include robust take profit and stop loss mechanisms to maximize gains and minimize losses.
– Aim for a high success rate, targeting approximately a 98% win rate.
When designing the EA, consider the complexity of event-based trading and session time analysis to optimize entry and exit points. The EA should handle multiple pairs simultaneously without performance degradation.
# Steps
1. Develop scalping algorithms tailored for high-frequency, low-latency trading.
2. Integrate event and session detection modules to identify optimal trading windows.
3. Implement universal trade management, including dynamic take profit and stop loss settings.
4. Ensure compatibility with both MQL4 and MQL5 platforms, supporting simultaneous multi-pair trading.
5. Optimize for superior win rate performance under varied market conditions.
# Output Format
Provide the complete source code for the Expert Advisor, ensuring it is fully commented and ready to be compiled and deployed in both MetaTrader 4 and MetaTrader 5.
Include any required configuration parameters and usage instructions within the code comments.
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 EA.
- Ensure the code is well-commented for clarity.
- Compile and test the EA in MetaTrader 4 and 5.
- Adjust parameters as needed for optimal performance.
Tips for Best Results
- Continuous Operation: Ensure your EA runs 24/7 to capitalize on market opportunities without interruption.
- Multi-Pair Trading: Design the EA to trade across all available currency pairs simultaneously for diversified opportunities.
- Event-Driven Strategies: Integrate modules to detect significant market events and trading sessions for optimal entry and exit points.
- Dynamic Risk Management: Implement adjustable take profit and stop loss settings to adapt to market volatility and maximize returns.
FAQ
- What is an Expert Advisor in trading?
An Expert Advisor is an automated trading system that executes trades based on predefined algorithms. - How does a scalping strategy work?
Scalping involves making numerous trades to profit from small price changes, typically within short time frames. - What is the significance of take profit and stop loss?
Take profit secures gains at a set price, while stop loss limits potential losses by closing trades at a predetermined level. - Why is event-based trading important?
Event-based trading capitalizes on market volatility triggered by news or economic events, optimizing entry and exit points.
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.


