Check to make sure the parameters are correct. I noticed when I converted the code snippet that dwalls wrote that the parameters were backwards. What I did earlier was just to convert the posted code, which does not match the defaults for MACDBBLines.
You probably want MACD(12,26,5) which would match the defaults of the MACDBBLines indicator.
Comment