Never mind, I just discovered that the iBands does what my old code used to do. The MT4 version of bands did not have a median line, so I had this custom one that did. Now it is standard in iBands. Sorry.
Documentation on MQL5: Standard Constants, Enumerations and Structures / Chart Constants / Types of Chart Events
- www.mql5.com
Standard Constants, Enumerations and Structures / Chart Constants / Types of Chart Events - Documentation on MQL5
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am converting an MT4 indicator for Bollinger Bands to MT5. I started by creating a new indicator in the editor and then going through the wizard to setup inputs and line params. Now I am in the OnCalculate section and I want to make sure I get the MT4 to MT5 right. Here is my code for MT4 start function, can you show me the changes I need to make to make it work for MT5?