Functions
array.some()
Returns true when at least one element of a bool array is true. For an empty array the result is false.
Syntax
array.some(series array id) → series bool
Arguments
id required series array Return Type
series bool Example
//@lipi=2
indicator("array.some Example", overlay=true)
gaps = array.from(open > high[1], open < low[1])
anyGap = array.some(gaps)
bgcolor(anyGap ? color.new(color.orange, 0.2) : na)