Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
How is MACD calculated?

i am new to quantopian and python, but have had trading experience in the past. I just started looking into utilizing MACD as an indicator. How is this calculated on a intraday basis. Say i was looking at the minute to minute data of a stock. Is the 26 window for MACD 26 minutes back or 26 days back? I'd really appreciate the help!

1 response

it depends,what type of candle you want calculate.its candle bar not 26 min(if you take 1 min bar then 26 min is correct).