Question about creation array

Hi experts.
I have question about creation array.Which easy way to generate a new array under the conditions?

For example the following image. i am trying to create a new specific blue zone array by using Valuewhen(Hour() >=9 and Hour() <=22 ,C) ,but not work
thank very much. :heart_eyes:

Your ValueWhen will only return the last value of the Close on the final bar of those hours.

If all you want is to detect the bars during those hours:

BlueZone = Hour() >= 9 AND Hour() <= 22;

should do it.

1 Like