Indicator that shows support & resistance with dot

MQL4 Indicadores Scripts

Termos de Referência

Write an indicator/script that output the following variable:

1. PriceHighBox = #Price_level

2. PriceLowBox = #Price_level

3. PriceBoxDirection = up or down

4. Draw red and blue dots to indicate support and resistance

I'll need the script for this indicator. 

User input:

1. Y pips to define peaks and support,

2. X pips for clearance rule 

Valid scenario A:

A peak has to rise up and down in price by Y amount of pips (user input). Vice versa for support.

[A: The highest price of 3 peaks (for uptrend; 3 peaks cannot be consecutively higher) with [B: one identified support or resistance] that has a [C: clearance more than X pips]. Draw [D: blue dot (below low)] and [E: red dot (above high)] on chart. (see graphic below)

S_A 

 Valid scenario B:

[A: The Lowest price of 3 supports (for downtrend; 3 supports cannot be consecutively lower) with [B: one identified peak] that has a [C: clearance more than X pips]. Draw [D: blue dot (below low)] and [E: red dot (above high)] on chart. (see graphic below)

 SB

 Valid scenario C:

[A: The highest price of 3 peaks (for downtrend; 3 peaks cannot be consecutively lower) with [B: one identified support] that has a [C: clearance more than X pips]. Draw [D: blue dot (below low)] and [E: red dot (above high)] on chart. (see graphic below)

SC

 Valid scenario D:

[A: The Lowest price of 3 supports (for uptrend; 3 supports cannot be consecutively higher) with [B: one identified peak] that has a [C: clearance more than X pips]. Draw [D: blue dot (below low)] and [E: red dot (above high)] on chart. (see graphic below)

 SD

 

 

 

 

Respondido

1
Desenvolvedor 1
Classificação
(94)
Projetos
162
40%
Arbitragem
20
15% / 75%
Expirado
73
45%
Livre
Publicou: 3 códigos
2
Desenvolvedor 2
Classificação
(195)
Projetos
395
28%
Arbitragem
155
20% / 52%
Expirado
112
28%
Livre
3
Desenvolvedor 3
Classificação
(804)
Projetos
1124
43%
Arbitragem
47
49% / 23%
Expirado
84
7%
Livre
4
Desenvolvedor 4
Classificação
(46)
Projetos
73
16%
Arbitragem
13
8% / 92%
Expirado
37
51%
Livre
5
Desenvolvedor 5
Classificação
(64)
Projetos
144
46%
Arbitragem
20
40% / 15%
Expirado
32
22%
Trabalhando

Informações sobre o projeto

Orçamento
10 - 20 USD
Prazo
de 1 para 2 dias