//@version=5 indicator(shorttitle='My SDL', title='My SDL', overlay=true) // functions get(arr, index) => index < array.size(arr) ? array.get(arr, index) : na busted(highs, lows, times, bounces) => array.shift(highs) array.shift(lows) array.shift(times) array.shift(bounces) or true bounced(bounces) ...