Download MetaTrader 5

Help with IBANDS

To add comments, please log in or register
All activity at MQL5.community is clearly visible. Have a look at the Wall!
Forex Trader
114257
Forex Trader 2010.02.20 05:32 

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.


Thanks


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:

Period: 20

Shift: 0

Deviation: 2

Apply 2: clos

To add comments, please log in or register