Average prices

MQL5 Experts

Job finished

Execution time 4 hours
Feedback from customer
Professional, fast, does exactly what I want. I will definitely deal with him again.
Feedback from employee
Всё отлично, чёткое задание, всегда на связи!

Specification

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.


Responded

1
Developer 1
Rating
(21)
Projects
23
0%
Arbitration
6
17% / 83%
Overdue
2
9%
Free
2
Developer 2
Rating
(61)
Projects
61
51%
Arbitration
1
0% / 100%
Overdue
1
2%
Free
3
Developer 3
Rating
(328)
Projects
387
33%
Arbitration
2
100% / 0%
Overdue
0
Working
4
Developer 4
Rating
(69)
Projects
104
54%
Arbitration
3
0% / 67%
Overdue
9
9%
Working
5
Developer 5
Rating
(37)
Projects
59
27%
Arbitration
25
20% / 52%
Overdue
10
17%
Working
6
Developer 6
Rating
(236)
Projects
418
34%
Arbitration
53
36% / 40%
Overdue
153
37%
Busy
7
Developer 7
Rating
(30)
Projects
55
22%
Arbitration
12
67% / 8%
Overdue
2
4%
Free
8
Developer 8
Rating
(79)
Projects
111
37%
Arbitration
0
Overdue
4
4%
Free
9
Developer 9
Rating
(257)
Projects
341
58%
Arbitration
7
14% / 71%
Overdue
9
3%
Free
10
Developer 10
Rating
(2)
Projects
1
0%
Arbitration
1
0% / 100%
Overdue
1
100%
Free
11
Developer 11
Rating
(290)
Projects
432
64%
Arbitration
5
40% / 0%
Overdue
4
1%
Loaded
12
Developer 12
Rating
(508)
Projects
764
63%
Arbitration
33
27% / 45%
Overdue
23
3%
Free
13
Developer 13
Rating
(56)
Projects
175
71%
Arbitration
4
100% / 0%
Overdue
1
1%
Free
14
Developer 14
Rating
(4)
Projects
9
11%
Arbitration
2
50% / 50%
Overdue
0
Free
15
Developer 15
Rating
(8)
Projects
11
0%
Arbitration
11
18% / 73%
Overdue
2
18%
Free
16
Developer 16
Rating
(356)
Projects
632
26%
Arbitration
89
73% / 13%
Overdue
12
2%
Free
17
Developer 17
Rating
(54)
Projects
53
17%
Arbitration
7
0% / 100%
Overdue
5
9%
Free
18
Developer 18
Rating
(355)
Projects
589
70%
Arbitration
14
43% / 7%
Overdue
28
5%
Free
19
Developer 19
Rating
(568)
Projects
641
41%
Arbitration
21
57% / 29%
Overdue
47
7%
Working
20
Developer 20
Rating
(298)
Projects
427
26%
Arbitration
18
61% / 33%
Overdue
26
6%
Free
Similar orders
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
so basically I have an EA(mql5), AI script(python), flask server and socket server both on python. Now this is an experimental script as I am trying to learn. However the EA is not entering any trades. How much would it cost for you to troubleshoot this for me? Thank you in advance
NEW FUNCTION 50+ USD
La idea es la siguiente, sería un EA semi automático. Yo como trader opero en zonas. En adelante las vamos a denominar ``zonas calientes´´. El EA debe que necesito debe operar conforme a 4 zonas calientes que yo configure en el mismo. ¿Qué hará el EA en cada una de esas zonas calientes que yo he configurado? En cada una de estas zonas el EA debe realizar hedging (crear un rango en el cual el EA entrara en sell o en
I have the bot just over half made, from another developer who let me down and decided they no longer wished to finish the project, so I have a basic example of the fundamentals of what it could look like, although multiple functions I require do not work, but I can show this to you on request. There are multiple features that I require, so please read the in depth requirement sheet on the attachment. Function: To

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
to 1 day(s)