작업 종료됨
명시
Expert Advisor (EA) Development Summary UPGRADE
Trading Modes
- Auto Mode: Automatically trades based on strategy and indicators.
- Manual Mode: Allows manual "Buy" or "Sell" trades with input for Stop Loss (SL) and Take Profit (TP) in price.
Global Take Profit and Stop Loss
- Global TP/SL Settings: Set and modify a global TP and SL for all trades.
- Resume Trade: Resume trading the same day or the next day after hitting global TP or SL.
Trade Management Features
-
Initial Lot Size Reset: Start with the initial lot size for the next trade after a trade closes.
- Implement a feature to reset the lot size based on a percentage of the previous trade's profit.
- Ensure compatibility with equity protection mechanisms.
-
Close EA: Option to close the EA entirely.
Trade Closure Conditions
- Selective Trade Closure: Close trades based on specific magic numbers without affecting others.
- Close Profitable Trades Only: Option to close only trades that are in profit.
Technical Specifications
- Global Take Profit and Stop Loss: Applies to all trades.
- Manual Trading: Execute "Buy" and "Sell" trades with SL and TP input fields.
- Auto Trading: Automatically trades based on strategy and indicators.
- Trade Closure Control: Options to close trades based on magic numbers or profit status.
Indicator Integration
-
MA Integration:
- Utilize three types of Moving Averages (MAs): Fast, Medium, and Slow.
- Each MA can be set as either Exponential Moving Average (EMA) or Simple Moving Average (SMA).
- Customizable parameters for MAs including method (EMA/SMA) and timeframe.
- Implement combinations of fast, medium, and slow MAs for buy/sell signals.
- Support trend-following and counter-trend modes based on MA configurations.
-
RSI Filter:
- Activate RSI filter with configurable settings.
- Define RSI timeframe and period for accurate signal generation.
- Set RSI upper and lower limits for entry conditions based on trend or counter-trend directions.
- Implement reverse logic for RSI conditions to execute trades in the opposite direction when criteria are met.
-
Entry Management:
- MA Entry Delay: Implement entry delay logic to avoid over-exposure in a single direction.
- Allow only one trade direction (buy/sell) until the opposite criteria are met first.
-
News Filtering:
- Integrate news filtering based on an economic calendar (e.g., Forex Factory).
- Disable trading during high-impact news events based on configurable time intervals before and after news releases.
-
Customization Options:
- Support multiple currency pairs with individualized TSL (Trailing Stop Loss) start and stop values.
- Include features like maximum charts to control concurrent trades across different pairs.
- Enable order comments for trade identification and management.
Development Considerations
- Ensure easy parameter adjustment for different trading styles.
- Implement functions to reset the initial lot size based on a percentage of profit from the previous trade, considering equity protection mechanisms.
- Provide clear input fields for global TP and SL.
- Include options for selective trade closure.
Summary for Developer
This comprehensive summary outlines the necessary features and specifications for developing an Expert Advisor (EA) that integrates various indicators, manages trade entries and exits, and includes robust trade management and customization options. The EA should support both auto and manual trading modes, utilize Moving Averages and RSI filters for signal generation, manage risk with global TP/SL settings, and allow for selective trade closure. Special attention should be given to the feature of resetting the initial lot size based on a percentage of the previous trade's profit, ensuring compatibility with equity protection mechanisms.
After the upgrade the code must be summited at the end of the project.