Indicators - amplitude of the latest X bars

MQL5 Indicators

Specification


create two indicators with same logic but different visualizations

the logic is 
identify if the last bar has the highest or lowest amplitude compared to the latest X bars
amplitude can be ( open and close / high and low )
X is a input value, is the numbers of bars to compare (10 = ten bars back; 50 = fifty bars back)

visualization 1
if bar is the highest amplitude and is an up bar, then indicator is (1)
if bar is the highest amplitude and is a down bar, then indicator is (-1)

visualization 2
plot the indicator value

Responded

1
Developer 1
Rating
(555)
Projects
922
48%
Arbitration
300
59% / 25%
Overdue
123
13%
Working
2
Developer 2
Rating
(709)
Projects
1028
39%
Arbitration
47
49% / 23%
Overdue
84
8%
Free
3
Developer 3
Rating
(11)
Projects
17
59%
Arbitration
2
0% / 100%
Overdue
2
12%
Free
4
Developer 4
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(38)
Projects
61
30%
Arbitration
5
20% / 40%
Overdue
0
Free
6
Developer 6
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
from 1 to 2 day(s)