Range Bar Plugin

MQL4 Indicators Scripts

Specification

Can anyone please code this indicator. Range bar has the following properties:-
1. Each bar is the same height because the range is constant.
2. The close of a bar is always at the high or low of the bar.
3. The open of a bar is always one tick or pip below or above the close of the preceding bar.
4. The time period covered by each bar varies since time is irrelevant to range bars.

The varying parameter which has to be inputted by us externally would be bar height which would be different for each scrip.

Example:- Suppose a stock is at 100 right now and we define a bar height of 5 points. So the indicator should keep a watch on price movement and next bar shall be wither from 99.95 to 95 OR 100.05 to 105 (5 points). So the indicator should plot next bar till 105 or 95 (irrespective of time, if the price remains from 100.05 to 105 for whole day, it wud plot only one bar for the day) and next bar would only start at 105.05 or 94.95 on other side.

And we would use these bars in inside an EA which handles multiple scrips at a time.


Regards


Responded

1
Developer 1
Rating
(182)
Projects
342
42%
Arbitration
118
12% / 73%
Overdue
104
30%
Free
Published: 4 codes
2
Developer 2
Rating
(73)
Projects
257
53%
Arbitration
16
50% / 38%
Overdue
83
32%
Free
3
Developer 3
Rating
(2)
Projects
5
20%
Arbitration
2
50% / 0%
Overdue
0
Free
4
Developer 4
Rating
(9)
Projects
16
19%
Arbitration
1
0% / 100%
Overdue
5
31%
Free
5
Developer 5
Rating
(3)
Projects
5
60%
Arbitration
3
0% / 67%
Overdue
0
Free
6
Developer 6
Rating
(164)
Projects
218
50%
Arbitration
6
17% / 67%
Overdue
11
5%
Free

Project information

Budget
Deadline
to 3 day(s)