Hi everyone,
I’m wanting to screen for stocks where the MACD line has moved up from the previous close period, and is currently say -0.0007 or 0.0007 under the signal line. Essentially, I don’t mind if the MACD is over or under the zero line, but I want to know that the last close has moved up and the gap between MACD and signal is minimal. That way I can look through a list of stocks that may hit my buy signal and determine if my other indicators align.
Thanks heaps for any assistance!
You can try with this code: (not tested)
trigger = 7 // in pips format
mmacd = exponentialaverage[12]-exponentialaverage[26]
signal = exponentialaverage[9](mmacd)
c1 = abs(mmacd-signal)<trigger*pointsize
c2 = close>close[1]
screener [c1 and c2]