1. version that supports high length values.
2. error's with high length values, but maps initial range(bar_index=0 to length).
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.
I was using highest(high,barssince(xyz>0)) but that doesn’t work because it’s two series. Is there a way to use the above to do the same thing? I only need it for the last 100 bars. If xyz>0 more than 100 bars ago then I don’t care what the high was. I can’t use highest(high,100) because xyz>0 could occur 3 bars ago but the high in the last 100 was 90 bars ago. Anyway any help appreciated
Cannot call 'cci' with arguments (series, series); available overloads: cci(series, integer) => series
Cannot call 'dev' with arguments (series, series); available overloads: dev(series, integer) => series
thanks in advance!