Average prices

MQL5 Experts

Tâche terminée

Temps d'exécution 4 heures
Commentaires du client
Professional, fast, does exactly what I want. I will definitely deal with him again.
Commentaires de l'employé
Всё отлично, чёткое задание, всегда на связи!

Spécifications

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.


Répondu

1
Développeur 1
Évaluation
(21)
Projets
23
0%
Arbitrage
6
17% / 83%
En retard
2
9%
Gratuit
2
Développeur 2
Évaluation
(61)
Projets
61
51%
Arbitrage
1
0% / 100%
En retard
1
2%
Gratuit
3
Développeur 3
Évaluation
(338)
Projets
398
34%
Arbitrage
2
100% / 0%
En retard
0
Gratuit
4
Développeur 4
Évaluation
(69)
Projets
104
54%
Arbitrage
3
0% / 67%
En retard
9
9%
Travail
5
Développeur 5
Évaluation
(37)
Projets
59
27%
Arbitrage
25
20% / 52%
En retard
10
17%
Travail
6
Développeur 6
Évaluation
(243)
Projets
430
34%
Arbitrage
54
37% / 39%
En retard
157
37%
Chargé
7
Développeur 7
Évaluation
(30)
Projets
55
22%
Arbitrage
12
67% / 8%
En retard
2
4%
Gratuit
8
Développeur 8
Évaluation
(79)
Projets
111
37%
Arbitrage
0
En retard
4
4%
Gratuit
9
Développeur 9
Évaluation
(257)
Projets
341
58%
Arbitrage
7
14% / 71%
En retard
9
3%
Gratuit
10
Développeur 10
Évaluation
(2)
Projets
1
0%
Arbitrage
1
0% / 100%
En retard
1
100%
Gratuit
11
Développeur 11
Évaluation
(298)
Projets
443
64%
Arbitrage
5
40% / 0%
En retard
4
1%
Travail
12
Développeur 12
Évaluation
(512)
Projets
773
63%
Arbitrage
33
27% / 45%
En retard
23
3%
Gratuit
13
Développeur 13
Évaluation
(61)
Projets
186
73%
Arbitrage
4
100% / 0%
En retard
1
1%
Gratuit
14
Développeur 14
Évaluation
(4)
Projets
9
11%
Arbitrage
2
50% / 50%
En retard
0
Gratuit
15
Développeur 15
Évaluation
(8)
Projets
11
0%
Arbitrage
11
18% / 73%
En retard
2
18%
Gratuit
16
Développeur 16
Évaluation
(356)
Projets
632
26%
Arbitrage
89
73% / 13%
En retard
12
2%
Gratuit
17
Développeur 17
Évaluation
(54)
Projets
53
17%
Arbitrage
7
0% / 100%
En retard
5
9%
Gratuit
18
Développeur 18
Évaluation
(356)
Projets
590
70%
Arbitrage
14
43% / 7%
En retard
28
5%
Gratuit
19
Développeur 19
Évaluation
(568)
Projets
641
41%
Arbitrage
21
57% / 29%
En retard
47
7%
Travail
20
Développeur 20
Évaluation
(298)
Projets
427
26%
Arbitrage
18
61% / 33%
En retard
26
6%
Gratuit
Commandes similaires
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

Informations sur le projet

Budget
30+ USD
Pour le développeur
27 USD
Délais
à 1 jour(s)