Expert advisor basierend auf eine EMA / MA Crossover Strategie

MQL5 Эксперты

Работа завершена

Время выполнения 4 минуты
Отзыв от заказчика
Very compentent and friendly developper. Help me with some understandings and was highly supportive!
Отзыв от исполнителя
Toller Kunde und guter Mensch! Schön zu arbeiten! Vielen Dank für die Bestellung!

Техническое задание

1. The idea of the trading system is as follows: The strategy is based on the crossing of exponential moving averages (EMA) and a simple moving average (SMA) to make trading decisions. It considers both bullish and bearish market conditions to open both long and short positions.


2. The trend is determined as follows: The trend is determined based on the relationship of two EMAs (14 and 185 periods) and an SMA (50 periods):
Bullish Trend: When the 14-period EMA and the 50-period SMA are both above the 185-period EMA.

Bearish Trend: When the 14-period EMA and the 50-period SMA are both below the 185-period EMA.


3. Trading signals:
Buy Signal: A buy signal is generated when the 14-period EMA crosses above the 50-period SMA and market conditions are bullish. 

Sell Signal: A sell signal is generated when the 14-period EMA crosses below the 50-period SMA and market conditions are bearish.  


4. Positions are closed as follows:
Through Take-Profit or Stop-Loss: Positions are closed based on the set stop-loss and take-profit values.

Through Crossover: If the exit strategy is set to "Crossover," long positions are closed when a sell signal is generated, and short positions are closed when a buy signal is generated.


5. Positions are opened as follows:
Long positions are opened when a buy signal is generated and market conditions are bullish.

Short positions are opened when a sell signal is generated and market conditions are bearish.


6. Additional filters for opening a position:

Positions are only opened if the market conditions (bullish or bearish) match the trade direction signals.


7. Additional filters for closing a position:

There are no additional filters for closing positions other than the conditions set in the exit strategy and the stop-loss/take-profit settings.


8. Closing through Take-Profit:

Positions are closed through take-profit when the price reaches the set target based on the stop-loss value and the risk-reward ratio.


9. Position management:
The strategy uses a percentage of equity for each position (default is 1%).
Positions are managed through set stop-loss and take-profit values to minimize risk and secure profits.

If no stop-loss and take-profit values are used, positions are managed by closing and reversing them on new trade signals.



Additional Comments

Plotting Moving Averages:

The strategy plots the EMAs and SMA on the chart with different colors for visualization. Colors can be changed in the settings:

short-period EMA (blue) = EMA 14

mid-period SMA (red) = SMA 50 

long-period EMA (green) = EMA 185

Labels are also added to indicate the periods of the moving averages.

The EMA and SMA length can be adjusted in the settings. 


Timeframe Configuration:

The configuration should allow the strategy to work in any timeframe. In the settings, the current timeframe for execution should be entered. By default this value is 15-min. 


Market Conditions Visualization:

The strategy uses background color changes to indicate market conditions:

Light green background for bullish conditions.

Light red background for bearish conditions.

No color if the condition for a bullish or bearish market does not apply (e.g. 185EMA is in between the 14EMA and the 50SMA)


Entry and Exit Labels:

Labels are created at the bar index for entry and exit signals, ensuring clear visual representation of trade signals on the chart. (This is done by default by MT5)


Flexibility in Trade Direction:

The strategy provides the option to trade in only one direction (long or short) or both directions, as per the user's choice.


Stop-Loss and Take-Profit Customization:

Users can enable or disable the use of stop-loss and take-profit values and customize these values through inputs, offering flexibility in risk management.

It should also be possible to activate a trailing stop loss. 

If the use is disabled, the trade lasts until the next signal appears. 


Risk-Reward Ratio:

The strategy allows setting a risk-reward ratio, which is used to calculate the take-profit level based on the defined stop-loss value.



Откликнулись

1
Разработчик 1
Оценка
(75)
Проекты
127
53%
Арбитраж
5
20% / 60%
Просрочено
20
16%
Работает
2
Разработчик 2
Оценка
(18)
Проекты
27
0%
Арбитраж
1
0% / 0%
Просрочено
0
Работает
3
Разработчик 3
Оценка
(488)
Проекты
554
32%
Арбитраж
27
44% / 44%
Просрочено
8
1%
Занят
4
Разработчик 4
Оценка
(1100)
Проекты
1457
46%
Арбитраж
49
73% / 12%
Просрочено
36
2%
Свободен
5
Разработчик 5
Оценка
(2102)
Проекты
2674
62%
Арбитраж
114
46% / 25%
Просрочено
421
16%
Загружен
6
Разработчик 6
Оценка
(355)
Проекты
484
51%
Арбитраж
24
54% / 25%
Просрочено
5
1%
Загружен
7
Разработчик 7
Оценка
(564)
Проекты
933
47%
Арбитраж
302
59% / 25%
Просрочено
125
13%
Загружен

Информация о проекте

Бюджет
50+ USD
VAT (19%): 9.5 USD
Итого: 59.5 USD
Исполнителю
45 USD