Hi guys I'm trying to add a moving average to an adaptive macd code but I'm having some troubles. In particular the MA is showing but not like if I add it with navigator function (I need to implement a moving average in the MACD code to do another edit). I post a pic to show you the difference between what I want and what I actually have, the original macd adaptive mq4 and its code edited by me. I hope somebody could help me saying where I'm wrong. Thank you.
At your example that histogram is osma (not macd)
You should use osma as a buffer for iMAOnaArray() not macd if you want it to be the same but then you have to add one more value displayed (since you have to have signal buffer or else you are not going to have data to calculate the osma)
Actually I edited it as follow.. What's wrong o what miss ? Thank you mladen
Your indicator can display 6 buffers
Your sma buffer is buffer number 9 (8 in the MQL numbering). Change the buffer numbers for buffer 5 and buffer 8 in the init (make the buffer 5 to be buffer 8 and make the buffer 8 to be buffer 5)
PS: please do not paste the code as you do. Simply attach the file (if the code is long) or, if the code is short, paste it using the source tool. This way nobody can read those posts