Hello,
I have been using the MACD that was supplied via Quantopian but it never seemed to plot the data correctly. I trade with Think or Swim from TD Ameritrade and I use the MACD all the time. The MACD I use is (13, 21, 8, EXPONENTIAL) on a 5 minute aggregation period and I used the 13, 21, 8 settings with the MACD supplied on the Quantopian API, but the lines it plotted were so sharp and seemingly inaccurate. I tried to correspond them to the MACD on my trading platform and scratched my head. The lines should have more curvature to them. So I thought I would make my own MACD from scratch to try to rectify the problems at hand. I used this guide for the math.
It isn't working correctly and I would appreciate some help. Its a mix of my code and I think my math. Anyone know how I fix it?