Average prices

MQL5 Experts

Trabalho concluído

Tempo de execução 4 horas
Comentário do cliente
Professional, fast, does exactly what I want. I will definitely deal with him again.
Comentário do desenvolvedor
Всё отлично, чёткое задание, всегда на связи!

Termos de Referência

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.


Respondido

1
Desenvolvedor 1
Classificação
(21)
Projetos
23
0%
Arbitragem
6
17% / 83%
Expirado
2
9%
Livre
2
Desenvolvedor 2
Classificação
(61)
Projetos
61
51%
Arbitragem
1
0% / 100%
Expirado
1
2%
Livre
3
Desenvolvedor 3
Classificação
(338)
Projetos
398
34%
Arbitragem
2
100% / 0%
Expirado
0
Livre
4
Desenvolvedor 4
Classificação
(69)
Projetos
104
54%
Arbitragem
3
0% / 67%
Expirado
9
9%
Trabalhando
5
Desenvolvedor 5
Classificação
(37)
Projetos
59
27%
Arbitragem
25
20% / 52%
Expirado
10
17%
Trabalhando
6
Desenvolvedor 6
Classificação
(243)
Projetos
430
34%
Arbitragem
54
37% / 39%
Expirado
157
37%
Carregado
7
Desenvolvedor 7
Classificação
(30)
Projetos
55
22%
Arbitragem
12
67% / 8%
Expirado
2
4%
Livre
8
Desenvolvedor 8
Classificação
(79)
Projetos
111
37%
Arbitragem
0
Expirado
4
4%
Livre
9
Desenvolvedor 9
Classificação
(257)
Projetos
341
58%
Arbitragem
7
14% / 71%
Expirado
9
3%
Livre
10
Desenvolvedor 10
Classificação
(2)
Projetos
1
0%
Arbitragem
1
0% / 100%
Expirado
1
100%
Livre
11
Desenvolvedor 11
Classificação
(298)
Projetos
443
64%
Arbitragem
5
40% / 0%
Expirado
4
1%
Trabalhando
12
Desenvolvedor 12
Classificação
(512)
Projetos
773
63%
Arbitragem
33
27% / 45%
Expirado
23
3%
Livre
13
Desenvolvedor 13
Classificação
(61)
Projetos
186
73%
Arbitragem
4
100% / 0%
Expirado
1
1%
Livre
14
Desenvolvedor 14
Classificação
(4)
Projetos
9
11%
Arbitragem
2
50% / 50%
Expirado
0
Livre
15
Desenvolvedor 15
Classificação
(8)
Projetos
11
0%
Arbitragem
11
18% / 73%
Expirado
2
18%
Livre
16
Desenvolvedor 16
Classificação
(356)
Projetos
632
26%
Arbitragem
89
73% / 13%
Expirado
12
2%
Livre
17
Desenvolvedor 17
Classificação
(54)
Projetos
53
17%
Arbitragem
7
0% / 100%
Expirado
5
9%
Livre
18
Desenvolvedor 18
Classificação
(356)
Projetos
590
70%
Arbitragem
14
43% / 7%
Expirado
28
5%
Livre
19
Desenvolvedor 19
Classificação
(568)
Projetos
641
41%
Arbitragem
21
57% / 29%
Expirado
47
7%
Trabalhando
20
Desenvolvedor 20
Classificação
(298)
Projetos
427
26%
Arbitragem
18
61% / 33%
Expirado
26
6%
Livre
Pedidos semelhantes
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
I am looking forward to automate my trading strategy where I use renko bars on Tradingview. I really want to use unirenkos too, but unfortunately I couldn't figure out how to use ninjatrader on my MacBook and Tradingview does not offer unirenkos. As far as I see from your offered services you are very familiar with ninjatrader. I wanted to ask you if you could code me an Indicator for unirenkos for Tradingview so I
I am looking forward to automate my trading strategy where I use renko bars on Tradingview. I really want to use unirenkos too, but unfortunately I couldn't figure out how to use ninjatrader on my MacBook and Tradingview does not offer unirenkos. As far as I see from your offered services you are very familiar with ninjatrader. I wanted to ask you if you could code me an Indicator for unirenkos for Tradingview so I
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
Hello, I want to create an EA that can be able to take and optimise trade bids using the trend tracker concept I have developed. The tracker will monitor 2 lines to determine the trend of the market and afterwards take bids towards the correct direction. It will also be able to use a distance between the bids for the direction of the trend and plan a reverse bid when the price of the extreme doesn’t change again. The
Gradient boosting and L2 100 - 200 USD
I am looking for a well experienced programmer to put/implement a gradient boosting algorithm and an L2 to reduce overfitting in my ea which l already have which uses indicators . If you are experienced please adhere
Hello, I'm looking for a developer for repair calendar in EA MT4/MT5 (News Filter - https://ec.forexprostools.com ) for all windows servers. Note: EA MT4/MT5 works with calendar on PC Win 10, 11 but not on all windows servers. I have the source code and will post within the comments section for review. If you are able to do this and quality. Please apply. Thanks
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
SCALP MARTINCALE SPY TIMEFRAME 1MIN CANDLE - SHORT SIDE ONLY 1-SET RISK : A IS A VARIABLE (HOW MUCH $) 2-SET ATR(3) : SET THE TIME AT WHICH THE ATR SHOULD BE TAKEN, IF SET 933AM THEN THE ATR OF THE 1MIN CANDLE AT 933AM CANDLE WILL BE USED (ROUND AT 0.25 UP OR DOWN) *USE NEW YORK TIME 3-SET MAX NUMBER OF ENTRY : B IS A VARIABLE 4-SET RSI(14) / C IS A VARIABLE, IF RSI(14) > C = ORDERS OPEN 5-IF RSI(14) > C IS TRIGGERED
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea

Informações sobre o projeto

Orçamento
30+ USD
Desenvolvedor
27 USD
Prazo
para 1 dias