Calculation of the “Highest/Lowest Candle Body point” in different time period

MQL4 Scripts

Job finished

Execution time 3 days

Specification

I need functions to calculate the “Highest/Lowest Candle Body point” of different periods for my own coding, I know it is easy to code the HIGH and LOW point of a candle/period, but it is not what I want, what I want is the point of “highest/lowest candle body”. So the functions should return that number to me. Pls refer the following graphic.

Highest ad Lowest candle body point


I will apply this function in different time chart, including daily, 4 hour, 1 hour, 15min...etc. For 4 hour chat, period is a week, for 1 hour chat or below, period is a day, however, pls note that the “Highest candle point” and “Lowest candle point” may different in 1 hour, 30 min, 15 min, 5 min and 1 min chart. What i need are 3 functions for 5-periods, last period and current period, pls refer the following graphic.

period definition

Finally ,  Since i am a rookie of programming, i hope you can give me simple description on important line of code , and if you can  code some way for me to easier checking your code, for example, if i can put put your code to a 1m chart and run, and there is a messagebox/alert can show me the code is running and keep update the result , then i can pay you faster, and both of us win-wn.

If you have any inquiry, pls let me know.








Responded

1
Developer 1
Rating
(40)
Projects
55
35%
Arbitration
2
0% / 50%
Overdue
0
Free
2
Developer 2
Rating
(15)
Projects
23
9%
Arbitration
7
29% / 57%
Overdue
2
9%
Free
3
Developer 3
Rating
(30)
Projects
35
26%
Arbitration
0
Overdue
4
11%
Free
4
Developer 4
Rating
(4)
Projects
7
29%
Arbitration
3
0% / 33%
Overdue
0
Free
5
Developer 5
Rating
(305)
Projects
546
35%
Arbitration
79
32% / 42%
Overdue
196
36%
Working
6
Developer 6
Rating
(54)
Projects
102
23%
Arbitration
12
25% / 17%
Overdue
13
13%
Free
7
Developer 7
Rating
(58)
Projects
66
8%
Arbitration
39
26% / 56%
Overdue
12
18%
Working
8
Developer 8
Rating
(159)
Projects
215
76%
Arbitration
4
50% / 25%
Overdue
18
8%
Free
Published: 2 articles
9
Developer 9
Rating
(361)
Projects
643
26%
Arbitration
92
72% / 14%
Overdue
12
2%
Working
Published: 1 code

Project information

Budget
30+ USD
Deadline
to 10 day(s)