Expert advisor basierend auf eine EMA / MA Crossover Strategie

MQL5 Experts

Job finished

Execution time 4 minutes
Feedback from customer
Very compentent and friendly developper. Help me with some understandings and was highly supportive!
Feedback from employee
Toller Kunde und guter Mensch! Schön zu arbeiten! Vielen Dank für die Bestellung!

Specification

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.



Responded

1
Developer 1
Rating
(75)
Projects
127
53%
Arbitration
5
20% / 60%
Overdue
20
16%
Working
2
Developer 2
Rating
(18)
Projects
27
0%
Arbitration
1
0% / 0%
Overdue
0
Working
3
Developer 3
Rating
(488)
Projects
554
32%
Arbitration
27
44% / 44%
Overdue
8
1%
Busy
4
Developer 4
Rating
(1100)
Projects
1457
46%
Arbitration
49
73% / 12%
Overdue
36
2%
Free
5
Developer 5
Rating
(2102)
Projects
2674
62%
Arbitration
114
46% / 25%
Overdue
421
16%
Loaded
6
Developer 6
Rating
(355)
Projects
484
51%
Arbitration
24
54% / 25%
Overdue
5
1%
Loaded
7
Developer 7
Rating
(564)
Projects
933
47%
Arbitration
302
59% / 25%
Overdue
125
13%
Loaded

Project information

Budget
50+ USD
VAT (19%): 9.5 USD
Total: 59.5 USD
For the developer
45 USD