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.
I am trying to write a scan based on the following conditions. Can someone help me with the MACD part of it? highlighted in bold below in the strategy. That is where I am getting confused.
// BUY WHEN CLOSE IS ABOVE EMA25
AND CLOSE CROSSES 10SMA OF HIGHS
AND RSI4 GREATER THAN 50
AND MACD current bar > prev bar
This is what I have written so far
// set stock universe
[Country is US]
[type = stock] AND [group is not ETF] and [name not contains "Trust"] and [name not contains "Notes Due"] and [name not contains "Shares"] and [name not contains "Fund"]
[ TODAY CLOSE> EMA (25, CLOSE)] AND
[ TODAY HIFH x SMA(10, HIGH)] AND
[RSI(4) > 50] and
[MACD Line(12,26,9) > MACD Signal(12,26,9)] and
[MACD Line(12,26,9) > 0]