New Members: Be sure to confirm your email address by clicking on the link that was sent to your email inbox. You will not be able to post messages until you click that link.

macd ema

How do I write a scan for a Macd histogram crossing it's ema line? i.e. the Macd crossed above it's ema(20). TIA

Comments

  • If I'm understanding you correctly, this should do it:


    and [MACD Hist(12,26,9) x ema(20, MACD Hist(12,26,9))]

    So if the Hist bars in the MACD Hist indicator (not the MACD) are below zero, they cross above the ema by getting shorter. If the Hist bars are above zero, the cross the ema by getting taller.

    Is that what you want?
  • Yes, perfect. Thank you so much.
Sign In or Register to comment.