Download MetaTrader 5

array out of range with Indicator

To add comments, please log in or register
Dan
31
Dan  

Hey folks,

I simply wanna do the following thing:

if the bollinger bands (upper and lower band) spread out, there should be an arrow on the upper and lower Band be drawn.

For the upper band is it working, but for the lower band I'll get the array out of range error.

May one specialist here can teach me right.

Big thanks in advance!

Greez Dan 

Files:
Sergey Eremin
4425
Sergey Eremin  
hilfx:

Hey folks,

I simply wanna do the following thing:

if the bollinger bands (upper and lower band) spread out, there should be an arrow on the upper and lower Band be drawn.

For the upper band is it working, but for the lower band I'll get the array out of range error.

May one specialist here can teach me right.

Big thanks in advance!

Greez Dan 

Hello!

Try add  string "#property indicator_buffers 2" into code:

 

#property copyright "me"
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
#property indicator_chart_window
#property indicator_buffers 2
extern int Bollinger_Open = 5;

...
...
Dan
31
Dan  
ENSED:

Hello!

Try add  string "#property indicator_buffers 2" into code:

 

Thanks a lot!
To add comments, please log in or register