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?
//---- initial zero
for(i=0; i<limit; i++)
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.