Average prices

MQL5 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 4 saat
Müşteri tarafından geri bildirim
Professional, fast, does exactly what I want. I will definitely deal with him again.
Geliştirici tarafından geri bildirim
Всё отлично, чёткое задание, всегда на связи!

İş Gereklilikleri

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.


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(21)
Projeler
23
0%
Arabuluculuk
6
17% / 83%
Süresi dolmuş
2
9%
Serbest
2
Geliştirici 2
Derecelendirme
(61)
Projeler
61
51%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
2%
Serbest
3
Geliştirici 3
Derecelendirme
(338)
Projeler
398
34%
Arabuluculuk
2
100% / 0%
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(69)
Projeler
104
54%
Arabuluculuk
3
0% / 67%
Süresi dolmuş
9
9%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(37)
Projeler
59
27%
Arabuluculuk
25
20% / 52%
Süresi dolmuş
10
17%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(243)
Projeler
430
34%
Arabuluculuk
54
37% / 39%
Süresi dolmuş
157
37%
Yüklendi
7
Geliştirici 7
Derecelendirme
(30)
Projeler
55
22%
Arabuluculuk
12
67% / 8%
Süresi dolmuş
2
4%
Serbest
8
Geliştirici 8
Derecelendirme
(79)
Projeler
111
37%
Arabuluculuk
0
Süresi dolmuş
4
4%
Serbest
9
Geliştirici 9
Derecelendirme
(257)
Projeler
341
58%
Arabuluculuk
7
14% / 71%
Süresi dolmuş
9
3%
Serbest
10
Geliştirici 10
Derecelendirme
(2)
Projeler
1
0%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
1
100%
Serbest
11
Geliştirici 11
Derecelendirme
(298)
Projeler
443
64%
Arabuluculuk
5
40% / 0%
Süresi dolmuş
4
1%
Çalışıyor
12
Geliştirici 12
Derecelendirme
(512)
Projeler
773
63%
Arabuluculuk
33
27% / 45%
Süresi dolmuş
23
3%
Serbest
13
Geliştirici 13
Derecelendirme
(61)
Projeler
186
73%
Arabuluculuk
4
100% / 0%
Süresi dolmuş
1
1%
Serbest
14
Geliştirici 14
Derecelendirme
(4)
Projeler
9
11%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
0
Serbest
15
Geliştirici 15
Derecelendirme
(8)
Projeler
11
0%
Arabuluculuk
11
18% / 73%
Süresi dolmuş
2
18%
Serbest
16
Geliştirici 16
Derecelendirme
(356)
Projeler
632
26%
Arabuluculuk
89
73% / 13%
Süresi dolmuş
12
2%
Serbest
17
Geliştirici 17
Derecelendirme
(54)
Projeler
53
17%
Arabuluculuk
7
0% / 100%
Süresi dolmuş
5
9%
Serbest
18
Geliştirici 18
Derecelendirme
(356)
Projeler
590
70%
Arabuluculuk
14
43% / 7%
Süresi dolmuş
28
5%
Serbest
19
Geliştirici 19
Derecelendirme
(568)
Projeler
641
41%
Arabuluculuk
21
57% / 29%
Süresi dolmuş
47
7%
Çalışıyor
20
Geliştirici 20
Derecelendirme
(298)
Projeler
427
26%
Arabuluculuk
18
61% / 33%
Süresi dolmuş
26
6%
Serbest
Benzer siparişler
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

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
to 1 gün