EMA crossed below over at least once since market open


New member
Hi ThinkScripters,

I took a stab at this but now I am asking for some assistance.
After searching online and throughout this forum, I couldn’t find anything solid.
What I am looking to accomplish is run a scan where the close crosses below the 9 EMA at least once since market open.
This is what I have so far but I am unsure how to get it since market open.
def EMA = ExpAverage(close, 9);
def closeXBelowEMA = close crosses below EMA;

plot scan = closeXBelowEMA;

What’s difficult to achieve, due to my limited knowledge, is how to have the code remain true once the close crossing below the 9 EMA event has occurred.


Similar threads