MQL5 EA Function to Calculate number of bars and the highest price between 2 points

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 6 horas
Comentario del Cliente
Job well done. Developer available to address all issues that arose during demonstration. Great professionalism as well. Thanks for the service.

Tarea técnica

EMA Crossing

Any one to assist with the function at a minimum fee (See the attached pics)

Point A- Fast EMA crosses Slow EMA

Point B- The highest price before the Ask price retreats back to Slow EMA.

Point C-Ask price touches/crosses below Slow EMA.

What is required is a function that will

  • 1   Calculate the number of bars between Point A and Point C,
  • 2.   After calculating the number of bars, compares  if # of Bars > 3 and # of Bars < 25.
  • 3   If point 2 above is satisfied, then get the highest price between point C and point A i.e. point B
  • 4   Calculate the difference between Ask Price and the Highest Price B.

All these have to happen only if Fast EMA is greater than Slow EMA. You can use Fast EMA at 21 and Slow EMA at 50 but it should allow for different time setting. The function is to be integrated into a code that is being developed. I am still at a learning stage and battling with this function and need to get over it and get it done.

Please let me know how much you will charge and how long it will take. I will need test results to be sure if it is working.

Regards


Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(22)
Proyectos
21
10%
Arbitraje
4
25% / 75%
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(278)
Proyectos
373
72%
Arbitraje
19
32% / 47%
Caducado
14
4%
Libre
Ha publicado: 14 ejemplos
3
Desarrollador 3
Evaluación
(328)
Proyectos
510
19%
Arbitraje
33
45% / 30%
Caducado
34
7%
Trabajando
4
Desarrollador 4
Evaluación
(156)
Proyectos
194
58%
Arbitraje
10
80% / 0%
Caducado
0
Trabaja
Ha publicado: 1 ejemplo
5
Desarrollador 5
Evaluación
(11)
Proyectos
15
20%
Arbitraje
6
0% / 100%
Caducado
3
20%
Libre
6
Desarrollador 6
Evaluación
(253)
Proyectos
316
29%
Arbitraje
34
26% / 65%
Caducado
10
3%
Libre
7
Desarrollador 7
Evaluación
(560)
Proyectos
648
33%
Arbitraje
41
41% / 46%
Caducado
11
2%
Ocupado
8
Desarrollador 8
Evaluación
(16)
Proyectos
35
23%
Arbitraje
4
0% / 50%
Caducado
2
6%
Trabaja
9
Desarrollador 9
Evaluación
(45)
Proyectos
46
24%
Arbitraje
34
9% / 85%
Caducado
10
22%
Libre
10
Desarrollador 10
Evaluación
Proyectos
1
0%
Arbitraje
0
Caducado
0
Libre
11
Desarrollador 11
Evaluación
(2)
Proyectos
2
0%
Arbitraje
0
Caducado
0
Libre
12
Desarrollador 12
Evaluación
(171)
Proyectos
195
42%
Arbitraje
13
8% / 54%
Caducado
9
5%
Libre
Ha publicado: 3 ejemplos
13
Desarrollador 13
Evaluación
(77)
Proyectos
243
74%
Arbitraje
7
100% / 0%
Caducado
1
0%
Libre
Ha publicado: 1 artículo
14
Desarrollador 14
Evaluación
(102)
Proyectos
105
60%
Arbitraje
0
Caducado
0
Libre
15
Desarrollador 15
Evaluación
(72)
Proyectos
80
10%
Arbitraje
38
8% / 58%
Caducado
6
8%
Libre
16
Desarrollador 16
Evaluación
(2)
Proyectos
2
50%
Arbitraje
0
Caducado
0
Libre
17
Desarrollador 17
Evaluación
(538)
Proyectos
814
62%
Arbitraje
33
27% / 45%
Caducado
23
3%
Libre
Ha publicado: 1 ejemplo
18
Desarrollador 18
Evaluación
(52)
Proyectos
67
43%
Arbitraje
8
0% / 100%
Caducado
3
4%
Libre
Solicitudes similares
Max amount grid 30+ USD
max amount grid step for magic number do keep deleting .only when it is in negative floating .but when it is profit allow to go over the max and replays to grid step
Apply with a screen of your work . Symbol Specific Logic . Live Chart Optimization Check the Core logic . [back tests as well] Change points to pips . Create buffer for the zone
I will pay 3000+ USD (negotiable) for an EA for existing MT5 that generates a minimum of 15-20% or higher a month consistently (provide source code after final deal) Looking for a highly profitable EA Please send demo version directly subject (Buying profitable EA Budget up to $ 3000 USD), past results and optimal settings so I can test, if it performs in a strategy tester i will also need option to forward test it
EA fx 30+ USD
Hello, I need an already developed EA similar to the one trading XAUUSD, with consistent entries and good risk management. Before we proceed, I would like to verify its performance. Please provide a live or demo account login along with the investor (read-only) password so I can monitor the trading results. I am looking for stable performance, controlled drawdown, and consistent profit on gold (XAUUSD). Once I
The strategy records the highest and lowest prices within a specified duration (default 15 minutes) after the New York market opens, forming the opening range. Post-Formation Breakout: When the price breaks above or below the opening range after its formation, it may indicate the direction of the day’s price movement. Trend Confirmation: The strategy uses two EMAs (default 20-period and 50-period) as trend filters to
Tengo una estrategia basada en divergencia para el oro sobre todo en tf m1 Basado en divergencia con stoch .. confirmando la entrada con ciertos parameteos de entrada Es mejor conversarlo para dar mejor los detalles Cuando entrar, porque o todas las divergencias se debe tomar para entrar en compras o ventas He adjuntado un ejemplo La confrmacion más exacta es el cruce de esos parámetros de stoch edebajo de level de
BUY ALERT 1. Supertrend turns Bullish 2. On this candle , or during the last time Supertrend was Bearish, price was < or = MA1 3. On this candle , or during the last time Supertrend was Bearish , BBStops is Bearish 4. STEP MA1 and STEP MA 2 are both Bullish SELL ALERT 1. Supertrend turns Bearish 2. On this candle , or during the last time Supertrend was Bullish, price was
Rsi divergence 30+ USD
You need to create an EA that executes buy and sell based on the signals of an rsi divergence indicator in trading view. The indicator is not in MT5 and must be added separately. pine script availabel
I WANT A TRADING ROBOT WITH GOLD STRATEGY THAT COULD TAKE ME TO 1MILLION$ TODAY,PLEASE KINDLY GENERATE THE BOT, DEBUGG COMPILE AND THEN GIVE ME WHEN EVER YOU ARE READY, ILL BE WAITING THANK YOU

Información sobre el proyecto

Presupuesto
30 - 45 USD
Plazo límite de ejecución
a 5 día(s)