This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

Help with IBANDS


Back to topics list
avatar
1
seunaw 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





Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets