Custom Indicator doesn't refresh

 

My MT4 - indicator works fine, when I apply it to the chart window, but it doesn't process new ticks / bars.

Dll - import is allowed. Hm. I have no idea why it is not working (See pic below).


Has anybody an idea?

 
May worth to menthion: I generally use RangesBars (in so called "offline-Charts", which are not offline ...). The bug is also visible in normal timeframes, too. 
 
i may have to do with the way the loop is written for the indicator.  if you share the code, you will get help faster.
 
Kaleem Haider:
i may have to do with the way the loop is written for the indicator.  if you share the code, you will get help faster.

Thank you for your reply. Of course I'll share my code. The aim of the indicator is to analyse gradiends (of Bollinger Bands in particular).


Here is the code:

Files:
GA-BB-V1.mq4  8 kb
Reason: