Trabajo finalizado
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Tarea técnica
Description: This Expert Advisor (EA) is designed to trade on MT5 and is based on the primary indicator, Trend Direction and Force, with the added flexibility of using one or both confirmation indicators, McGinley Dynamic Average and the SuperTrend Indicator. The EA should also allow for the use of confirmation indicators as exit signals and include advanced money management capabilities based on Average True Range (ATR) and a percentage of the account balance or fixed amounts.
Requirements:
-
Primary Indicator: Trend Direction and Force
- The EA should identify trade signals based on the trend direction and force.
- When the Line turns blue and candle closes above the low volatility channel is buy signal
- When the Line turns pink and candle closes below the low volatility channel is a sell signal
-
Confirmation Indicators: McGinley Dynamic Average, SuperTrend Indicator Average True Range indicator
- The EA should allow the user to choose if they want to use one, both of the confirmation indicators.
- The user should be able to toggle the use of each confirmation indicator independently.
- The EA should only enter trades when the confirmation indicators align with the primary indicator's signals.
- McGinley Dynamic Average:
Buy Signal:
- When the price is above the McGinley Dynamic Average, and the average line is sloping upward, it is considered a bullish signal, confirming a potential buy trade , and the line color changes (usually from red to green, depending on the platform and settings). .
Sell Signal:
- Conversely, when the price is below the McGinley Dynamic Average, and the average line is sloping downward, it is considered a bearish signal, confirming a potential sell trade , and the line color changes (usually from green to red).
- SuperTrend Indicator:
Buy Signal:Sell Signal:
- The SuperTrend Indicator generates a buy signal when the price moves above the SuperTrend line, and the line color changes (usually from red to green, depending on the platform and settings).
3. Average True Range
- A sell signal is generated when the price moves below the SuperTrend line, and the line color changes (usually from green to red).
Buy and Sell signals
- The user should be able to input a multiple (X) of the ATR value and if the size of the candle that closes and generates the entry signal is larger than X times the ATR value, the EA should not enter the trade.
3.Limit on Open Positions:
- The user should be able to set a maximum number of open positions at any given time.
- The EA should prevent opening new trades if the maximum number of open positions has been reached.
4.Exit Management:
a) Take Profit:
The user should have the option to set a fixed take profit level.Alternatively, the user can choose to use one of the confirmation indicators as the take profit signal.
b) Stop Loss:
The user should be able to set a fixed stop loss level.Alternatively, the user can choose a stop loss based on X times the ATR value, where X is user-defined.
c) Confirmation Indicators as Exit Signals:
The user should have the option to use the confirmation indicators as exit signals, even if they are not used for trade confirmation.
5.Money Management:
- The EA should consider the selected stop loss type (fixed or ATR-based) when calculating position sizes.
- The user should be able to input the desired percentage of the account balance or fixed amount to be risked per trade.
- The EA should automatically adjust the position size according to the chosen money management settings.
6.Settings and Parameters:
- All indicator settings and parameters should be adjustable by the user.
- Include options for stop loss, take profit, and trailing stop settings, if applicable.
7.Additional Features:
- The EA should be compatible with multiple timeframes and currency pairs.
- Include comprehensive backtesting and optimization capabilities.
- Ensure the EA adheres to standard programming practices for security, efficiency, and maintainability.