Pine Script How Can I Write This Statement In Pinescript Stack

Pine Script How Can I Write This Statement In Pinescript Stack