I need an all Monthly high low exploration.
It could be interpreted in 2 ways.
My understanding of the above stated requirement is
Case 1
I need an "all" Monthly high low exploration for the past 12 months.
Explore all the monthly highs/lows if a stock makes new monthly high it should put 1 else 0.
And
Case 2
It is different if the stated requirement is
to explore
I need an "all Monthly(all time) high low "" exploration.
ie all the stocks that are making new all time highs month on month with in the past 12 months.
Similarly for Lows.
And my code is intended for the first.
.
It could be interpreted in 2 ways.
My understanding of the above stated requirement is
Case 1
I need an "all" Monthly high low exploration for the past 12 months.
Explore all the monthly highs/lows if a stock makes new monthly high it should put 1 else 0.
And
Case 2
It is different if the stated requirement is
to explore
I need an "all Monthly(all time) high low "" exploration.
ie all the stocks that are making new all time highs month on month with in the past 12 months.
Similarly for Lows.
And my code is intended for the first.
.
Apologise if I did not state the requirement correctly.
Now your well explained Case:2 fulfills my requirement.