Simple EA- 20 minutes work

Asesores Expertos

Trabajo finalizado

Plazo de ejecución 3 días

Tarea técnica

Simple EA needs to be coded in mql4: only 1 position open at the same time, works on all charts & time frames, no position sizing or anything. Based on 1 indicator: if both lengths are up, go long, vice versa for short, if 1 of the 2 lengths is no longer the same sign, close, or use ATR-based trailing stop: whichever hits first, so you have 3 external variables: Length1, Length2 and ATRmultiple.                                                

Different lengths are used so you get 2 criteria for entry:

If there is no open position:  at the close of the bar:

Entry long: if IndicatorLength1[i] > IndicatorLength1[i+1] && IndicatorLength2[i] > IndicatorLength2[i+1] // so both are going up

Exit Long: if both of them are no longer going up: so if IndicatorLength1[i] < IndicatorLength1[i+1] || IndicatorLength2[i] < IndicatorLength2[i+1] 

Entry short: if IndicatorLength1[i] < IndicatorLength1[i+1] && IndicatorLength2[i] < IndicatorLength2[i+1] // so both are going down

Exit short: if both of them are no longer going down: so if IndicatorLength1[i] > IndicatorLength1[i+1] || IndicatorLength2[i] > IndicatorLength2[i+1] 

********************* 

If there is an open position: at the close of the bar: reverse it only if both have the same sign that is opposite to the previous direction, else you close the open position:

so if you are long, if 1 of the 2 is no longer going up: close it,                                                                                                                                                                                                                        if at the close of the bar, both of them are going down, close long and open short position.

If you are short, if 1 of the 2 is no longer going down: cover the short position,                                                                                                                                                                                               if at the close of the bar, both of them are going up, cover the short and open a long position. 

*********************

to protect profitable positions I want a trailing stop that is a multiple of the ATR: Average True Range, basic indicator. Standard setting could be a 1.5*ATR(10). So this 1.5 should be changeable. The trailing stop needs to be updated every tick. Off course a trailing stop starts out as a classic stop loss: at the opening of the position, the stop is there, so if the position only goes against me, the EA will exit the trade at the entry level +/- 1.5*ATR(10).

 *********************

I prefer not to share the indicator, so please work with code that would enable me to replace wit iCustom: you can use a simple moving average as example code:

for(int i=0; i<limit; i++)

   {  

   ExtMapBuffer0[i]=iMA(0,0,Length1,0,0,0,i);

   } 


Han respondido

1
Desarrollador 1
Evaluación
(41)
Proyectos
124
34%
Arbitraje
32
13% / 75%
Caducado
53
43%
Libre
2
Desarrollador 2
Evaluación
(647)
Proyectos
1295
67%
Arbitraje
84
26% / 49%
Caducado
338
26%
Libre
Solicitudes similares
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: function (A) Add Transform combine the 4 Expert Advisors into just 1 Expert Advisor, maintaining the individuality of each one Leave in extern (false) or (true)
Description: I am seeking an experienced MQL5 developer to create a custom Expert Advisor (EA) for MetaTrader 5 based on a specific trend-following strategy. The strategy includes precise risk management, advanced trade management features, and additional risk management tools. The EA should be adaptable to any timeframe on which it is attached. Below are the detailed requirements and parameters for the EA: Strategy
I need an EA trading frequently (HFT or something like), and it sould have some features below: 1、Have a clear trading logic 2、Have a good backtest result 3、Have a demonstrated benefitable result in a live account trading 4、Can avoid the news time period or not sensitive to news
Tenho um EA mql4 que está com funcionalidades funcionando e outras com funcionalidades sem funcionar. Tenho um vídeo do EA funcionando como deve funcionar perfeitamente. O meu não consegue seguir o mesmo programa pois quando coloca os pontos de parada e retirada são bem diferentes. Não tenho pressa para tempo, só queria que conseguisse renovar o EA. O arquivo do grafico anexo é como ele se encontra agora. O certo é
New york session based strategy 9:30 open Price takes out buy side or sell side liquidity Usually using 15min high and lows 5m entry Price takes out that high/low and price must close strongly back into the zone Is price is above price we have a sell bias vis versa for buys Sl is at the high or low with option for “offset” for cushion Tp is usually the opposite High or low. Would like the option for set pips-points &
Hello, I am looking for a skilled developer to create an Expert Advisor (EA) for MT4. The EA should close an open trade automatically when a Golden or Death Cross occurs in the Alligator Indicator. Please let me know if you have experience with similar projects and how we can discuss the details further
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details
I want have the possibility to increase lotsize not alone by Lot-multiplier rather I want add a fix-lot increase for excample for 0,05 lot. I want have this for buy / sell and hedge-buy and hedge sell
I need someone to build an EA for me based on Trend and Pivot levels from custom Pivot and Trend indicators. I will provide more information to the selected programmer
Hello there! I have a ATAS bot that would be discussed properly with you once you bid to this project, But majorly what i need is either: An update to my bot that allows it to watch one chart and trade on another within ATAS. Or an add on of some kind that allows it to watch one ATAS chart and then communicate with a bot that can execute trades in MT4/5. Bid now for more proper details

Información sobre el proyecto

Presupuesto
20 - 30 USD
IVA (21%): 4.2 - 6.3 USD
Total: 24.2 - 36.3 USD
Para el ejecutor
18 - 27 USD
Plazo límite de ejecución
1 día(s)