MT5: iBandsOnArray ?

 

Hi all, in MT5 what's the corresponding function for iBandsOnArray ?

In MT4 we could calculate the iBands on any given Array, how can I achieve the same result in MT5 ?

Help is appreciated, thanks.

JF.

 
Joao Paulo Ferreira Fortes:

Hi all, in MT5 what's the corresponding function for iBandsOnArray ?

In MT4 we could calculate the iBands on any given Array, how can I achieve the same result in MT5 ?

Help is appreciated, thanks.

JF.

You need to code it. There is no built-in mql function.

Maybe someone already did it, check the Codebase.

 
Really ? Damn it, it's a step backwards.
 
Joao Paulo Ferreira Fortes:
Really ? Damn it, it's a step backwards.

Why. In mql5 no need for it

 
amando:

Why. In mql5 no need for it

What do you mean no need ? How do you implement a Bollinger on a given indicator ?

 
Joao Paulo Ferreira Fortes:

What do you mean no need ? How do you implement a Bollinger on a given indicator ?

On an indicator?

Then you can use iBands on the indicator handle if I remember correctly.

 
Joao Paulo Ferreira Fortes:

What do you mean no need ? How do you implement a Bollinger on a given indicator ?

You didn't ask for an indicator but for an array.

Keith Watford:

On an indicator?

Then you can use iBands on the indicator handle if I remember correctly.

Yes exactly.
 
Keith Watford:

On an indicator?

Then you can use iBands on the indicator handle if I remember correctly.

I've tried it using the handler in MT5, can't get the results.

Let's say, I want to implement the iBands on ADX. The ADX has 3 components (ADX, Di+, Di-) and I want to determine the Upper/Lower Bands on the DI+ and DI -. How can I do it in MT5 ?

On Mt4  I could get the Upper & Lower BB for Di+ this way: 


      iBands_upperBand_DIplus[shift] = iBandsOnArray(ADX_Plus_Array, 0, BB_period, BB_deviation, 0, MODE_UPPER, shift);

      iBands_lowerBand_DIplus[shift] = iBandsOnArray(ADX_Plus_Array, 0, BB_period, BB_deviation, 0, MODE_LOWER, shift);


Has anyone written any code for it in MT5 ? Could not find any in Codebase.

 
Joao Paulo Ferreira Fortes:

I've tried it using the handler in MT5, can't get the results.

Let's say, I want to implement the iBands on ADX. The ADX has 3 components (ADX, Di+, Di-) and I want to determine the Upper/Lower Bands on the DI+ and DI -. How can I do it in MT5 ?

On Mt4  I could get the Upper & Lower BB for Di+ this way: 


      iBands_upperBand_DIplus[shift] = iBandsOnArray(ADX_Plus_Array, 0, BB_period, BB_deviation, 0, MODE_UPPER, shift);

      iBands_lowerBand_DIplus[shift] = iBandsOnArray(ADX_Plus_Array, 0, BB_period, BB_deviation, 0, MODE_LOWER, shift);


Has anyone written any code for it in MT5 ? Could not find any in Codebase.

You don't even need code to do it. It can be done with MT5 directly.

If you want to code in mql5 you have to learn it, there are plenty of topics, articles, and examples in the Codebase. No need for yet an other topic about it.

 
Alain Verleyen:

You don't even need code to do it. It can be done with MT5 directly.

If you want to code in mql5 you have to learn it, there are plenty of topics, articles, and examples in the Codebase. No need for yet an other topic about it.

Can you direct me to any example on the codebase to do it ?