MQL5 - Bollinger Buffers displaying same values
bbHandle = iBands(Symbol(),PERIOD_CURRENT,20,2,0,PRICE_CLOSE);
Check your parameters.
Check your parameters.
Check your parameters.
I have encountered another issue with this today, I have tried for hours to get it right but I just cannot seem to diagnose the issue, nor find any help online and it's so frustrating!
double Open[]; double iOpen(string symbol(),ENUM_TIMEFRAMES timeframe, int index) { double open=0; ArraySetAsSeries(Open,true); int copied=CopyOpen(symbol(),timeframe,0,Bars(symbol(),timeframe),Open); if(copied>0 && index<copied) open=Open[index]; return(open); } double previous_open = iOpen(Symbol(),PERIOD_CURRENT,1);
The following error messages are being displayed:
Thank you in advance and apologies for being so dense
double _Open[]; double iOpen(string symbol,ENUM_TIMEFRAMES timeframe, int index) { double open=0; ArraySetAsSeries(_Open,true); int copied=CopyOpen(symbol,timeframe,0,Bars(symbol,timeframe),_Open); if(copied>0 && index<copied) open=_Open[index]; return(open); }
Why do you have a iOpen() function? It's been built in since
New MetaTrader 5 Platform build 1860: MQL5 functions for operations with bars and Strategy Tester improvements - MQL5 programming forum 2018.06.14

Hello,
I have lurked on a lot of posts but this is my first actual post so hi!
I'm learning to code MQL5 and I have tried to use buffers to copy the last values of the Bollinger bands to arrays, from which the values are then commented. For some reason the comment displays the same data 3 times:
I can't get my head around it, it's not important I'm doing it purely for the purposes of learning but it is driving me nuts! I have checked the documentation on iBands and Buffers but for someone inexperienced like myself this often leaves me more confused than I was before.
Thank you in advance,
Adam