我正在尝试打印 mondayAll 的值,因为它是一系列整数,所以我采用最新的值(mondayAll[0])。尽管如此,还是会发生此错误:
Cannot call 'string' with 'x'=series[integer]. The argument should be of type: const string;
var int mondayLong = 0
var int mondayAll = 0
// ---------------------------
if(dayofweek == dayofweek.monday)
mondayAll := mondayAll + 1
if(close > open)
mondayLong := mondayLong + 1
val = mondayAll[0]
text1 = "Monday All: " + string(val)
l1 = label.new(bar_index,high[0],text=text1)
label.delete(l1[1])
知道如何解决这个问题吗?