Modify existing Range Breakout EA

MQL5 Asesores Expertos

Tarea técnica

I have a quite simple EA which trades Breakouts with a SL, TP and TSL. I would have 2 requirements for a modification:


1.: The EA has a hard coded period where is looks back to define highs and lows for the range. I want this period (in this case 50) soft coded, means I want to define the period into change in the settings of the EA (like TP, SL,...). 

Current code for finding high:

double findHigh(){

   double highestHigh = 0;

   for(int i = 0; i < 50; i++){

      double high = iHigh(_Symbol,Timeframe,i);

      if(i > BarsN && iHighest(_Symbol,Timeframe,MODE_HIGH,BarsN*2+1,i-BarsN) == i){

         if(high > highestHigh){

            return high;}


2. I would like to have an additional function that losing trades are covered by an new order once a new regular signal is issued by the indicator / EA again.

- If an EA issues a trade and it is negative, once the EA issues a new regular signal, the new position should be doubled, regardless if it goes into a different direction (buy/sell).

- Once the TP is met, both positions should be closed.

- If the first position recovers and hits its original TP, the second position is now the "first" position and the game continues.

- The EA needs to be adjusted in that way that it can open a 2nd trade like described above. 


More than happy to work with you. Just let me know if you have additional questions.


 

Han respondido

1
Desarrollador 1
Evaluación
(74)
Proyectos
121
43%
Arbitraje
12
33% / 50%
Caducado
17
14%
Libre
2
Desarrollador 2
Evaluación
(89)
Proyectos
112
24%
Arbitraje
12
42% / 17%
Caducado
8
7%
Trabaja
3
Desarrollador 3
Evaluación
(97)
Proyectos
135
52%
Arbitraje
4
50% / 50%
Caducado
0
Trabaja
4
Desarrollador 4
Evaluación
(1135)
Proyectos
1438
62%
Arbitraje
21
57% / 10%
Caducado
43
3%
Libre
5
Desarrollador 5
Evaluación
(298)
Proyectos
427
26%
Arbitraje
18
61% / 33%
Caducado
26
6%
Libre
6
Desarrollador 6
Evaluación
(156)
Proyectos
234
59%
Arbitraje
3
100% / 0%
Caducado
49
21%
Trabaja
7
Desarrollador 7
Evaluación
(300)
Proyectos
450
65%
Arbitraje
5
40% / 0%
Caducado
4
1%
Trabajando
8
Desarrollador 8
Evaluación
(72)
Proyectos
80
10%
Arbitraje
36
8% / 53%
Caducado
6
8%
Trabaja
9
Desarrollador 9
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
10
Desarrollador 10
Evaluación
(49)
Proyectos
57
51%
Arbitraje
1
0% / 100%
Caducado
1
2%
Trabajando
11
Desarrollador 11
Evaluación
(2449)
Proyectos
3086
66%
Arbitraje
77
48% / 14%
Caducado
340
11%
Libre
12
Desarrollador 12
Evaluación
(568)
Proyectos
641
41%
Arbitraje
22
55% / 32%
Caducado
47
7%
Trabaja
13
Desarrollador 13
Evaluación
(1)
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
14
Desarrollador 14
Evaluación
(67)
Proyectos
144
34%
Arbitraje
10
10% / 60%
Caducado
26
18%
Libre
Solicitudes similares
Hello Investors, I'm selling a profitable and stable expert advisor trading on the Gold (XAUUSD) pair using a cutting-edge scalping strategy. The EA is able to generate a stable monthly income without using martingale strategy, and with an optional cut loss in place. Particularly the average monthly gain can go from 2-3% (at a relatively low risk, with an historical max DD of 6%) to 20-30% (with an aggressive style
Hello, I have a strategy and I need a very good programmer who will create me an exprt or make me an indicator that will open positions for buy/sell limit (see picture below). The indicator/Expert will have to open positions (buy/sell limit) regarding the strategy and indicators (I will explain it more in collaboration). Below I will give pictures of what I mean. I will send a link to the telegram group where it
Atomic Analyst Indicator to EA. I have an mt4 indicator called Atomic Analyst. The indicator gives buy/sell signals as shown in the screenshot. I want to know if you can take this indicator, and create an EA that automatically takes the signals. The indicator puts in the SL and TP1, TP2, TP3, TP4, TP5 automatically. I would like the option to put in my lot size parameter and I would also like an automatic trail stop
can you help me with Ctrader i need modification on the linkhttps://docs.google.com/document/d/1fggk49xWbnwahtfOlE-U7G6muZB1FT8eWmftGiY7R-s/edit?usp=sharing can you assist with cTrader modifications to enhance functionality and improve performance. do text me if you a professional on it i will be looking forward to your response best regards
MT4 Expert Advisor 30 - 120 USD
EA sittings The EA utilises the concept of grid and hedging by creating a zone for recovering losing trades It is a continues trading EA without any stop loss. The EA initially aims to trade continually without the need to hedge. The EA enter the first trade following the direction of the moving average (when price is above or below the moving average), and only hedge when, the trade goes against the trend and reach
Would I honestly need is someone who can make a profitable EA for me that can at least make me around $80 a day starting with $50 and the EA must be able to work with exness the EA should automat trades 24/7. Broker = Exness Pairs = USD/JPY XAU/USD and etc Chart time frames = M1 M15 History = last month till last 6 months. Lot size 0.10 take profit at $2 stop
Hello i am seeking a skilled MetaTrader 5 (MQL5) developer to modify an existing Telegram signal copier. The goal is to enhance the copier's functionality, reliability, and user experience. kindly bid this job to get started immediately
Hello, I’m looking for assistance with creating or customizing a TradingView indicator to suit my trading needs. If you have experience in this area, please reach out. Your help would be greatly appreciated. Thanks
# MT4 Expert Advisor Development Rules ## Time Period Definition 1. Allow user to define a specific time period (e.g., 10:00 to 15:00). 2. Identify and store the high and low prices within this period. ## Price Breakout Detection 3. Monitor current price for breakouts above the period high or below the period low. ## Signal Confirmation (signals will be taken on m5 timeframe) 4. After a breakout, wait for a signal
HI Recently purchased VPS, But now i am getting Following message "failed to get list of virtual hosts [404]", I need one help to fix this isues and make sure my EA working on VPS, when my computer off Thank you

Información sobre el proyecto

Presupuesto
50+ USD
IVA (19%): 9.5 USD
Total: 59.5 USD
Para el ejecutor
45 USD
Plazo límite de ejecución
a 5 día(s)