Average prices

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 4 horas
Comentario del Cliente
Professional, fast, does exactly what I want. I will definitely deal with him again.
Comentario del Ejecutor
Всё отлично, чёткое задание, всегда на связи!

Tarea técnica

Welcome

In MQL4, I need the code to calculate the average close price of the previous 5 candles

For example:

The closing price of candle number 1 is: 1.90000

The closing price of candle number 2 is: 1.90012

The closing price of candle number 3 is: 1.90065

The closing price of candle number 4 is: 1.90073

The closing price of candle number 5 is: 1.90022

The law is:

 

 

So, the average closing price of the previous five candles is 1.90034

It's simple


Please note:

  1. Add a parameter called (Number), so that I can choose the number of previous candles.

  2. The code should be light, fast, and not cause heaviness in the device, even if I chose a large number of previous candles.

  3. The code will work on all forex pairs.

Hope everything is clear, thank you.


Han respondido

1
Desarrollador 1
Evaluación
(21)
Proyectos
23
0%
Arbitraje
6
17% / 83%
Caducado
2
9%
Libre
2
Desarrollador 2
Evaluación
(61)
Proyectos
61
51%
Arbitraje
1
0% / 100%
Caducado
1
2%
Libre
3
Desarrollador 3
Evaluación
(328)
Proyectos
387
33%
Arbitraje
2
100% / 0%
Caducado
0
Trabaja
4
Desarrollador 4
Evaluación
(69)
Proyectos
104
54%
Arbitraje
3
0% / 67%
Caducado
9
9%
Trabaja
5
Desarrollador 5
Evaluación
(37)
Proyectos
59
27%
Arbitraje
25
20% / 52%
Caducado
10
17%
Trabaja
6
Desarrollador 6
Evaluación
(236)
Proyectos
418
34%
Arbitraje
53
36% / 40%
Caducado
153
37%
Ocupado
7
Desarrollador 7
Evaluación
(30)
Proyectos
55
22%
Arbitraje
12
67% / 8%
Caducado
2
4%
Libre
8
Desarrollador 8
Evaluación
(79)
Proyectos
111
37%
Arbitraje
0
Caducado
4
4%
Libre
9
Desarrollador 9
Evaluación
(257)
Proyectos
341
58%
Arbitraje
7
14% / 71%
Caducado
9
3%
Libre
10
Desarrollador 10
Evaluación
(2)
Proyectos
1
0%
Arbitraje
1
0% / 100%
Caducado
1
100%
Libre
11
Desarrollador 11
Evaluación
(290)
Proyectos
432
64%
Arbitraje
5
40% / 0%
Caducado
4
1%
Trabajando
12
Desarrollador 12
Evaluación
(508)
Proyectos
764
63%
Arbitraje
33
27% / 45%
Caducado
23
3%
Libre
13
Desarrollador 13
Evaluación
(56)
Proyectos
175
71%
Arbitraje
4
100% / 0%
Caducado
1
1%
Libre
14
Desarrollador 14
Evaluación
(4)
Proyectos
9
11%
Arbitraje
2
50% / 50%
Caducado
0
Libre
15
Desarrollador 15
Evaluación
(8)
Proyectos
11
0%
Arbitraje
11
18% / 73%
Caducado
2
18%
Libre
16
Desarrollador 16
Evaluación
(356)
Proyectos
632
26%
Arbitraje
89
73% / 13%
Caducado
12
2%
Libre
17
Desarrollador 17
Evaluación
(54)
Proyectos
53
17%
Arbitraje
7
0% / 100%
Caducado
5
9%
Libre
18
Desarrollador 18
Evaluación
(355)
Proyectos
589
70%
Arbitraje
14
43% / 7%
Caducado
28
5%
Libre
19
Desarrollador 19
Evaluación
(568)
Proyectos
641
41%
Arbitraje
21
57% / 29%
Caducado
47
7%
Trabaja
20
Desarrollador 20
Evaluación
(298)
Proyectos
427
26%
Arbitraje
18
61% / 33%
Caducado
26
6%
Libre
Solicitudes similares
Hi, I have an indicator from my friend, I want to copy it to my own MT5 can you do that for me. Here is the link
I'm looking for someone to help me create an arbitrage trading robot that can trade on any decentralized exchange and forex market. I already have some source code to a strategy but would like to enhance it to make it profitable and automated
I installed the E.A. into the Experts folder in MT4. When I double click on it nothing happens. When I right click and "attach to chart" nothing happens. The E.A. is not grayed out, it simply will not attach. Any help would be greatly Appreciated
I have an EA and want to add few new logic to fetch profit taking factors and other values from an external master data and use it in existing EA
Hello Every one, Good day, I want from someone professional to create an EA is working on Mt5, This EA is working by depend on some indicators, and all those indicators must be working on MACD window, not on the chart, for more details please read my attached pdf file carefully. Many Thanks
I'm looking for an expert MQL5 developer that can create an EA that's based on my price action trading strategy with no indicators. The EA must analyze trades based on my price action rules, enter trades based on my price action rules, manage trades based on my price action rules and exit trades based on my price action rules
hi hi there i have an strategy on tradingview and i want to automate it like metatrader EA so i want the strategy to open and close trade automaticlly on tradingview
We are looking for an experienced Expert Advisor Developer who can build a customized MT5 Expert Advisor for us. The Expert Advisor would use two built-in indicators as entry/exit signals and our own risk management strategy with customizable inputs. The goal is to create a reliable and efficient trading tool that can automate our trading process on the MT5 platform. Skills required: - Strong understanding of
I need stochastic div (hidden &regular ea) that should perform task in all tf's ..divergence is a repaint stly so i want to use it with candlestick flips .. so bet for it
Hello, I have an indicator from a friend and I'd like to replicate it on my own TradingView or MT5 platform. Could you assist me with that?. Here is the link

Información sobre el proyecto

Presupuesto
30+ USD
Para el ejecutor
27 USD
Plazo límite de ejecución
a 1 día(s)