Hello Group... I was looking around for an indicator that would display Bollinger Bands Width and also sound an alert when a certain minimum width would be hit. I thought I found exactly what I needed when I came upon this:
https://www.forexfactory.com/showthread.php?t=412582 (specifically the later version provided in Post #4, provided generously by Mr. Hanover...)
But alas, it does not update/refresh itself automatically on the chart. In the code itself, it wouldn't immediately compile for me (using MT4 Build 1090) as some variable names had periods in the middle of them like "BWI.Buffer", so I just took the periods out and it then compiled OK. But as I mentioned, not working right.
I tried adding a "RefreshRates()" at the beginning of the "Start()" routine but it did no good. The "mqh" include files provided with the indicator are also a mystery to me, as I can't see where they are called within the indicator code.
Would anyone have any suggestions for this please?
There is a mistake in the program, so a runtime error has occurred.
Please correct lines 53 and 54 as follows.
if (counted_bars == 0 )
limit = Bars - period;
limit= Bars -counted_bars;
That did it! Thank you so much Naguisa... much obliged!!