1) We want to know the number of days which the high price was higher than the opening price by more than 5% .
The prices in general are about $34. So 5% of $34 is about $1.7. (*)
So what we want is to know
the number of days in when the high price was higher than the opening price by more $1.7.
To be able to make this question quickier, its useful to separate our analisys of white real body candle sticks from black real body.
After doing so (see picture attached) the days that satisfy the constrains are: 11,14 and 17.
2) The day the price of the stock did not go lower than the opening price is ___ <=> candle stick which Lower = open
The first thing to notice here is that for black candle sticks, close<open (this is the definition of black candle sticks), and since lower<=min(close,open) (this is the definition of the "lower" point of the candle sticks), then lower<=min(close,open)=close<open. In other words, we will not find a day which lower = open in the black candle sticks. Lets move on to the whites.
A white candle stick which lower = open don't have the segment below the "real body". There is only one day like this: 14-oct
(*) To be more precise, we can do this because every opening prince is between 33 and 36.1. And 5% of these numbers are $1.65 and $1.8. In practise, "more than $1.5 and less than a $2" is enough to proceed with the analisys.
Attachments

Screenshot from 2024-02-05 11-08-10.png [ 138.94 KiB | Viewed 11585 times ]