I am trying to write a trading system that uses Bollinger Bands as part of my indicators. The problem I am running into is that the IBands results does not match what I see visually on the charts using the MT4 Bollinger Bands indicator.
Could someone please help me know what I need to do to make sure the EA matches what I see on the charts.
double bandsUpper = iBands(NULL,timeFrame,20,2,0,PRICE_CLOSE,MODE_UPPER,0);
double bandsLower = iBands(NULL,timeFrame,20,2,0,PRICE_CLOSE,MODE_LOWER,0);
MT4 Bollinger band indicator parameters are identical:
Apply 2: clos