You sure you got that correct? By definition, the OPEN cannot be below the LOW of the session.len(ohlc[ohlc.Open <= ohlc.Low]) / len(ohlc)
it's less than or equal. This is the rocket science I heard being done.You sure you got that correct? By definition, the OPEN cannot be below the LOW of the session.
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 isit's less than or equal. This is the rocket science I heard being done.
...trading days opened up, and stayed up, without going red and closed up
Curious about a stat for, say, SPY. What percentage of trading days opened up, and stayed up, without going red and closed up? Longer time frame the better.
No, that is what the ignorant media has conditioned retailers to think.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.
these are the days. If the open is ever greater than the low doesn't that mean the day went into the red?
Code:Open High Low Close Adj Close Volume Date 2019-11-25 311.980011 313.369995 311.980011 313.369995 290.974365 48647200 2020-08-04 327.859985 330.059998 327.859985 330.059998 311.152649 41917900 2022-03-22 445.859985 450.579987 445.859985 449.589996 434.387634 74650400