How to plot the result from highest defining the number of bars with barssince
问题 Try to plot the value of the highest bars between current bar and the last cross of ema(50) and ema(200) using barssince(cross(ema50,ema200)) . The function highest() wants an integer and the Barssince gives a series integer . All variants getting the error that pine connot compile with error: line 4: Cannot call `highest` with arguments (series[integer]); available overloads: highest(series, integer) => series; highest(integer) => series Script. //@version=3 study("My Script") o = 0 o :=