Of course you don't know that in advance. His question was how many day's opened up and stayed up, past data.
Think OP might have meant to say how many days that closed green that may have at one point been red - early after the open or at any time thereafter? Maybe he'll clarify? ES has plenty of days where the opening tick was also the lowest tick of the session, same in reverse on certain days opening tick = high tick.
But that ain't what the OP wanted (see below). What he's looking for is OPEN > CLOSE[1] && CLOSE > OPEN && OPEN = LOW Edit: kinda glanced over "without going red and closed up", which I would think means OPEN = LOW.
I think you are asking, what percentage of days where today's open is higher than yesterday's close ("opened up") and the low of today was still higher than the close of yesterday ("stayed up, without going red and closed up). "Without going red" has to mean compared to the close of yesterday. Since red and green is always compared to yesterday's close.
No, that is what the ignorant media has conditioned retailers to think. Those of us who've been around a year or 2 or 25+ in my case, know to compare where price is at during the day - and where it closes - to where it opened that day. News overnight and before the open affects what will happen that day, negating and/or minimizing what transpired the day before. And just the fact it is a new day, "yesterday is history".
Yea like schizo posted too, opening on the low. Of course, this isn't really what anyone cares about. If the next bar after the open is 1 tick lower and the low of the day then it violates the rule and filtered out even though we really would want to keep that in practice. Then what about 2 ticks lower? What about 2 ticks down on the second bar from the open as the low? 5 ticks but not 6? On and on until you end up making a type of expert system that just doesn't work for what you want because there are too many possibilities to handle with if statements and there is always going to be some kind of arbitrary point of demarcation. 30 minute open range breakout even though 30 minutes is completely arbitrary compared to 28, 29, 31, 32, 33, 33.5 minutes on and on. Same problem with all chart patterns too.