Trabalho concluído
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Termos de Referência
hello, having a base in mql5 coding I have difficulty coding an expert which is too complicated for me, I am looking for someone to do it.
the conditions of the expert are as follows;
- can trade forex, indices and metals.
- can trade on the chart in 5 minutes up to 1 hour.
- starts looking for trades at 8:00 a.m. and closes all open positions at 9:59 p.m. (Paris time) do not trade overnight
the expert has 3 indicators; 2 exponential moving averages and an RSI
the purchase conditions are as follows:
- the price is above the 2 EMA
- the RSI has broken its value 80, I insist on "breaking" it and not necessarily above it, it doesn't matter if the RSI value returns below 80 afterwards, as soon as the value 80 has been broken it's good
----> when these conditions are met, a buylimit is placed on the fast EMA with a trailing-stop on the slow EMA (- 1 point), without takeprofit, the trade will be closed by the trailing-stop.
the conditions of sale are as follows:
- the price below the 2 EMA
- the RSI has broken its value 20
----> when these conditions are met, a sell-limit is placed on the fast EMA with a trailing-stop on the slow EMA (+1 point), without takeprofit, the trade will be closed by the trailing-stop .
a final condition would be to be able to choose my risk per trade (between 0.25% and 1% of my capital)
the input variables that I would use for optimization would be;
fastEMA period, fastEMA method, slowEMA period, slowEMA method, RSI coefficient (therefore the "period" between 4 and 15),
here is an example of purchase (reverse of the conditions for a sale):
here is also the article on which I found this expert, he explains the strategy in detail: 87-strategie-ema-cross
I remain at your disposal for any questions, have a good evening.