Script to draw box on main chart

MQL4 Indicatori Script

Lavoro terminato

Tempo di esecuzione 1 giorno
Feedback del dipendente
Great customer, highly recommended.
Feedback del cliente
I am very please to work with him! Number1!

Specifiche

Hi,

I have 1 original indicator and 1 Higher TimeFrame for this indicator.

This indicator draw value when bar closed.

This indicator take value +/-5, 4, 3, 1.5, 0.1

In the picture, I put:

- H4 for Higher Time Frame on M15 for current time frame à 16 bar

- Value to draw: 5

Any time the HTF indicator turn to value 5 or -5, I want to draw a box that cover the High and Low for bar[i+1] to bar[i+16]. 16 is because H4 on M15 has 16 bar.

 

So the script(?) I need allow me to:

1.       Put HTF of any window (D1, H4…) into any lower time frame. If D1 put on H1, the script will draw box based on 24 bar of H1.

2.       Change the value to draw. If value to draw is 3, the script will draw anytime HTF indicator3, 4,5 or -3, -4, -5

The logic can be found in the draft below. Might be it helpful.

Thank you.

HHC


Input Value_to_draw=5;

 

If( MathAbs(HTF_indicator(i)) >= Value_to_draw && HTF_indicator(i+1) != HTF_indicator(i))   

{              for( int j=i+1; j<=i+16; j++)

                {              get_highest=

                                get_lowest =

                }

}

Based on highest and lowest, draw box from bar[i+1] to bar[i+16]


Con risposta

1
Sviluppatore 1
Valutazioni
(28)
Progetti
30
63%
Arbitraggio
0
In ritardo
4
13%
Gratuito
Pubblicati: 1 codice
2
Sviluppatore 2
Valutazioni
(365)
Progetti
507
40%
Arbitraggio
159
17% / 74%
In ritardo
99
20%
Caricato
3
Sviluppatore 3
Valutazioni
(195)
Progetti
395
28%
Arbitraggio
155
20% / 52%
In ritardo
112
28%
Gratuito
4
Sviluppatore 4
Valutazioni
(803)
Progetti
1123
43%
Arbitraggio
47
49% / 23%
In ritardo
84
7%
Gratuito

Informazioni sul progetto

Budget
50+ USD
Scadenze
da 1 a 2 giorno(i)