EMA crossed below over at least once since market open

L

luicius

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.
Code:
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.

 
Thread starter Similar threads Forum Replies Date
NoahJay3 Super Trend + 9 ema + VWAP Questions 3
bspratt22 MACD and Stochastic with 3/8 ema Questions 25
N Adding arrow on chart for CCI and EMA combination Questions 5
B EMA Today Plots only Questions 3
D Decreasing EMA Questions 4

Similar threads

Top