array out of range with Indicator

Back to topics list To post a new topic, please log in or register
avatar
11
hilfx 2015.01.08 16:44
 

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 

Attached files:
  bollinger.txt  (2.01 KB)
avatar
15
ENSED 2015.01.08 18:50 #
 
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;

...
...
avatar
11
hilfx 2015.01.08 19:19 #
 
ENSED:

Hello!

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

 

Thanks a lot!
Back to topics list  

To add comments, please log in or register