Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
In algorithm, MACD comparisons for several days

I am new here and I have a question.
In algorithm environment, how can I get a MACD for a stock at current price and compare MACD values from 1 and/or 2 days ago?
I appreciate it if you can provide a simple example.

1 response

@Don,

@Vladimir & @Rodrigo have a post related to this, see the thread entitled "MACD signal" as a starting point.